sudo su
brctl addbr br0
ip addr add 192.168.3.100/24 dev br0
ip link set br0 up
[ -d /etc/qemu ] || mkdir /etc/qemu
touch /etc/qemu/bridge.conf
echo "allow br0" >> /etc/qemu/bridge.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(){ | |
var fs = require("fs"); | |
var nodeExternal = {}; | |
var pkg = JSON.parse(fs.readFileSync('package.json', { encoding: 'utf-8' })); | |
Object.keys(pkg.dependencies).forEach(function (name) { | |
nodeExternal[name] = "require('" + name + "')"; | |
}); | |
Object.keys(pkg.devDependencies).filter(function (v) { return !v.match(/@types/); }).forEach(function (name) { | |
nodeExternal[name] = "require('" + name + "')"; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Jasmine Standalone testing suite | |
import { GetnadaClient, ListResponse } from "./email-getnada"; | |
(jasmine.getEnv() as any) .configure({random: false, oneFailurePerSpec: true, failFast: true}); | |
let listResponse: ListResponse; | |
describe('Plugins testing getnada api client', () => { | |
const email = '[email protected]'; | |
const api = new GetnadaClient(email); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo qemu-system-i386 \ | |
-m 512 \ | |
-smp 1 \ | |
-enable-kvm \ | |
-drive if=none,id=disk00,format=qcow2,file=tmp/disk1.qcow2 \ | |
-device "ide-hd,drive=disk00,bus=ide.0,serial=00000000000000000001,model=VMware Virtual IDE Hard Drive" \ | |
-nic tap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UDEV RULES | |
ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="92fe", RUN+="/usr/sbin/usb_modeswitch -v 05c6 -p 92fe -K" | |
ACTION=="add", SUBSYSTEM=="tty", KERNEL=="ttyUSB1", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9201", SYMLINK+="modem" | |
# IF No ttyUSBX found | |
sudo modprobe usbserial | |
echo 05c6 9201 | sudo tee /sys/bus/usb-serial/drivers/generic/new_id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/sbin/openrc-run | |
# Gammu SMS Daemon usb_modeswitch helper with Cyborg Mobile Broadband E488 4G LTE USB Stick (Telkomsel Flash) | |
retry="60" | |
pidfile="/var/run/$RC_SVCNAME.pid" | |
command="/usr/bin/gammu-smsd" | |
command_args="-d -p /var/run/$RC_SVCNAME.pid -c /etc/gammurc" | |
#command_background=true | |
#procname="gammu-smsd" | |
depend() { |
certbot certonly --manual --preferred-challenges dns-01 --manual-public-ip-logging-ok \
-m [email protected] -d '*.domain'
certbot renew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IF using cookie, make sure the domain was added in "Cookie" -> Whitelist Domain | |
// Walk cookie | |
const cookie = pm.cookies.jar(); | |
cookie.getAll(pm.request.url, (v1, cookies) => { | |
for (let v of cookies.map()) { | |
if (v.name.length > 32 && v.name.match(/[0-9a-f]/i)) { | |
pm.request.body.urlencoded.add({ | |
key: v.name, | |
value: v.value |