nano /etc/wpa_supplicant/wpa_supplicant-wlo1.conf
ctrl_interface=/run/wpa_supplicant update_config=1 network={ ssid="My SSID" psk=4a11d6d1d48bd83ae9f0dc4f804dddc60a91782653fc883c0b9f23c8a2db72ef }
systemctl enable wpa_supplicant@wlo1.service
nano /etc/wpa_supplicant/wpa_supplicant-wlo1.conf
ctrl_interface=/run/wpa_supplicant update_config=1 network={ ssid="My SSID" psk=4a11d6d1d48bd83ae9f0dc4f804dddc60a91782653fc883c0b9f23c8a2db72ef }
systemctl enable wpa_supplicant@wlo1.service
mv /etc/network/interfaces /etc/network/interfaces.save
systemctl enable systemd-networkd
nano /etc/systemd/network/lan0.network
[Match] Name=enp0s3 [Network] DHCP=yes [DHCP] ClientIdentifier=mac
systemctl start systemd-networkd
Node 8
'use strict'; exports.handler = (event, context, callback) => { // Extract the request from the CloudFront event that is sent to Lambda@Edge var request = event.Records[0].cf.request; // Extract the URI from the request var olduri = request.uri; // Match any '/' that occurs at the end of a URI. Replace it with a default index var newuri = olduri.replace(/\/$/, '\/index.html'); // Log the URI as received by CloudFront and the new URI to be used to fetch from origin console.log("Old URI: " + olduri); console.log("New URI: " + newuri); // Replace the received URI with the URI that includes the index page request.uri = newuri; // Return to CloudFront return callback(null, request); };
Node 8
'use strict'; exports.handler = (event, context, callback) => { //Get contents of response const response = event.Records[0].cf.response; const headers = response.headers; //Set new headers headers['strict-transport-security'] = [{key: 'Strict-Transport-Security', value: 'max-age=63072000; includeSubdomains; preload'}]; headers['content-security-policy'] = [{key: 'Content-Security-Policy', value: "default-src 'self' 'unsafe-inline' 'unsafe-eval'"}]; headers['x-content-type-options'] = [{key: 'X-Content-Type-Options', value: 'nosniff'}]; headers['x-frame-options'] = [{key: 'X-Frame-Options', value: 'DENY'}]; headers['x-xss-protection'] = [{key: 'X-XSS-Protection', value: '1; mode=block'}]; headers['referrer-policy'] = [{key: 'Referrer-Policy', value: 'same-origin'}]; headers['x-custom-header'] = [{key: 'X-Custom-Header', value: 'SH_V1'}]; headers['cache-control'] = [{key: 'Cache-Control', value: 'no-store'}]; headers['feature-policy'] = [{key: 'Feature-Policy', value: "microphone 'self'"}]; headers['expect-ct'] = [{key: 'Expect-CT', value: 'enforce, max-age=30'}]; //Return modified response callback(null, response); };
#!/usr/bin/env python3 from datetime import tzinfo, timedelta, datetime, date, timezone import boto3 cf = boto3.client('cloudfront') timestamp=str(datetime.timestamp(datetime.today())) distributions=cf.list_distributions() if distributions['DistributionList']['Quantity'] > 0: for distribution in distributions['DistributionList']['Items']: print("Distribution Id: " + distribution['Id']) print("Time: " + timestamp) cf.create_invalidation( DistributionId=distribution['Id'], InvalidationBatch={ 'Paths': { 'Quantity': 1, 'Items': [ '/*', ] }, 'CallerReference': timestamp } ) else: print("Error - No CloudFront Distributions Detected.")
cd virtualenvs/pelican/ source bin/activate cd magna make s3_upload ../cf_invalidate
This post is written using the iOS app.
Ok, let’s get this show on the road….
apt install php7.3-curl apt install php7.3-dom apt install php7.3-zip
amavisd-new genrsa /var/lib/dkim/domain.pem 1024 chown amavis:amavis /var/lib/dkim/domain.pem chmod 0400 /var/lib/dkim/domain.pem nano /etc/amavis/conf.d/50-user dkim_key("domain", "dkim", "/var/lib/dkim/domain.pem"); "domain" => { d => "domain", a => 'rsa-sha256', ttl => 10*24*3600 }, systemctl restart amavis amavisd-new showkeys amavisd-new testkeys
Linux vultr.guest 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux
apt-get update apt-get upgrade apt-get install build-essential cd /usr/local/src wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz tar -zxvf asterisk-13-current.tar.gz cd asterisk-13.* contrib/scripts/get_mp3_source.sh contrib/scripts/install_prereq install contrib/scripts/install_prereq install-unpackaged ./configure --with-pjproject-bundled make menuselect make make install make samples mkdir /etc/asterisk/samples/ mv /etc/asterisk/* /etc/asterisk/samples/ make basic-pbx mkdir /etc/asterisk/basic_pbx mv /etc/asterisk/* /etc/asterisk/basic_pbx/ make progdocs make config make install-logrotate systemctl enable asterisk systemctl start asterisk