$ wg genkey | tee privatekey | wg pubkey > publickeyRotate your public key via the same logic as in Mullvad's source code:
- Step 1: Obtaining an access token:
$ curl -fsSL -X POST \
-H 'Content-Type: application/json' \$ wg genkey | tee privatekey | wg pubkey > publickey$ curl -fsSL -X POST \
-H 'Content-Type: application/json' \| #!/bin/bash | |
| # NAS IP: 192.168.1.10 in this example | |
| # DHCP scope reservation for macvlan: 192.168.1.210/28 (Details below) | |
| ## Network: 192.168.1.210/28 | |
| ## HostMin: 192.168.1.211 | |
| ## HostMax: 192.168.1.224 | |
| ## Hosts/Net: 14 | |
| # Create a Synology macvlan0 bridge network attached to the physical eth0, and add the ip range scope (sudo) |
| const fs = require('fs') | |
| const path = require('path') | |
| // for CRA-2 un-comment line 5 and comment line 6 | |
| // const assetManifest = require('./build/asset-manifest.json') | |
| const assetManifest = require('./build/asset-manifest.json')[files] | |
| const indexFilePath = path.join(__dirname, 'build/index.html') | |
| const BUILD_PATH = path.join(__dirname, 'build/useful-asset-manifest.json') |
| version: '2.1' | |
| services: | |
| transmission: | |
| container_name: transmission | |
| image: dperson/transmission | |
| restart: unless-stopped | |
| depends_on: | |
| - plex | |
| network_mode: host | |
| environment: |
| using System.Runtime.InteropServices; | |
| namespace PInvokeSamples { | |
| public static class Program { | |
| // Import the libc and define the method corresponding to the native function. | |
| [DllImport("libc.so.6")] | |
| private static extern int getpid(); | |
| public static void Main(string[] args){ |
| import { mountWithIntl } from 'helpers/intl-enzyme-test-helper.js'; | |
| const wrapper = mountWithIntl( | |
| <CustomComponent /> | |
| ); | |
| expect(wrapper.state('foo')).to.equal('bar'); // OK | |
| expect(wrapper.text()).to.equal('Hello World!'); // OK |
| #!/bin/bash | |
| # Batch convert videos with HandBrake CLI | |
| # By Ralph Crisostomo - 2016.04.17 | |
| # | |
| # Usage : | |
| # 'sudo ./handbrake.sh /source /destination' | |
| # | |
| # Reference : | |
| # https://forum.handbrake.fr/viewtopic.php?f=6&t=19426 | |
| # https://gist.github.com/czj/1263872 |