This file contains 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
#!/bin/bash | |
TARGET=$1 | |
mkdir -p $TARGET | |
files=$( | |
dpkg -L ruby | grep '/usr/bin/' | |
dpkg -L ruby1.9.1 | grep '/usr/bin/' | |
echo '/usr/lib/ruby' | |
) |
This file contains 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
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright 2017 Vladislav Mileshkin | |
# Copyright 2015 Bahtiar `kalkin-` Gadimov <bahtiar@gadimov.de> | |
# Copyright 2015 Daniel Gultsch <daniel@cgultsch.de> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
This file contains 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 Main | |
data Direction = North | South | West | East | |
turn : Direction -> Direction | |
turn North = East | |
turn South = West | |
turn West = North | |
turn East = South |
This file contains 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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
Undercover communication | |
It should be obvious by now, that the only way to communicate | |
stealthily and securely is to avoid raising suspicion to the | |
level at which the authorities might consider it worthwhile | |
to put you under active surveillance (e.g., park a van with | |
TEMPEST equipment by your apartment). |
This file contains 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
import cryptography | |
import datetime | |
import pgpy | |
pkalg = pgpy.constants.PubKeyAlgorithm.ECDSA | |
curve = pgpy.constants.EllipticCurveOID.NIST_P384 | |
super_secret_number = 12345 | |
created = 0 # datetime |
This file contains 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
#!/bin/sh | |
qemu-system-x86_64 -enable-kvm -machine q35,accel=kvm \ | |
-cpu host \ | |
-m 4G \ | |
-drive id=disk,file=/home/archie/Documents/Images/win10x64.img,if=none \ | |
-drive file=/home/archie/Downloads/Win10_1709_English_x64.iso,index=3,media=cdrom \ | |
-drive file=/home/archie/Downloads/drivers.iso,index=4,media=cdrom \ | |
-device intel-iommu \ | |
-device ich9-ahci,id=ahci \ | |
-device ide-drive,drive=disk,bus=ahci.0 \ |
This file contains 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 | |
(func $addTwo (param i32 i32) (result i32) | |
(i32.add | |
(get_local 0) | |
(get_local 1))) | |
(export "addTwo" (func $addTwo))) |
This file contains 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
// pre-render d3 charts at server side | |
var d3 = require('d3') | |
, jsdom = require('jsdom') | |
, fs = require('fs') | |
, htmlStub = '<html><head></head><body><div id="dataviz-container"></div><script src="js/d3.v3.min.js"></script></body></html>' | |
jsdom.env({ | |
features : { QuerySelector : true } | |
, html : htmlStub | |
, done : function(errors, window) { |
This file contains 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
# Update at 3am once a week | |
# Make sure the time on the Mikrotik is correct or update will occur "randomly" or never | |
/system scheduler | |
add interval=1w name=Auto-Upgrade on-event="/system package update\r\ | |
\ncheck-for-updates once\r\ | |
\n:delay 1s;\r\ | |
\n:if ( [get status] = \"New version is available\") do={ install }" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=jan/01/2017 start-time=03:00:20 |
This file contains 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
/system scheduler | |
add interval=1w name="Upgrade Router Weekly and Reboot" on-event=\ | |
"/system package update check-for-updates; /system package update download; /system reboot;" policy=\ | |
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=jan/01/2018 start-time=03:00:00 |
OlderNewer