This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
| // Download a public s3 bucket. | |
| // | |
| // Relies on the directory listing being public. | |
| // | |
| // Example usage: | |
| // s3dl -bucket <bucketName> | |
| // | |
| // -> Will download all files in the "<bucketName>" s3 bucket | |
| // to "<bucketName>" folder. | |
| package main |
| var gulp = require('gulp'), | |
| pkg = require('./package.json'), | |
| path = require('path'), | |
| connect = require('connect'), | |
| http = require('http'), | |
| open = require('open'), | |
| compass = require('gulp-compass'), |
| /* | |
| gulpfile from one of my React applications which has a gulp --production build | |
| set up. | |
| Assumptions: | |
| 1. All your own .js/.jsx modules are somewhere under ./src, have unique | |
| filenames and use Node.js-style requires WITHOUT any path information, just | |
| the name of another module somewhere under ./src |
This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
| package timestamp | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo/bson" | |
| "strconv" | |
| "time" | |
| ) | |
| type Timestamp time.Time |
| import sys | |
| import os | |
| import xml.etree.ElementTree as ET | |
| import logging | |
| import re | |
| from shutil import copyfile | |
| from optparse import OptionParser | |
| ### This file came from the https://github.com/flow123d/flow123d repo they were nice enough to spend time to write this. | |
| ### It is copied here for other people to use on its own. |
| #!/usr/bin/env python | |
| # | |
| # Export network-manager WiFi connection details to a wpa-supplicant | |
| # file. This can be saved to an Android device, so you have all your | |
| # laptop's WiFi connections on your phone right away (root required). | |
| # | |
| # python gen_wpa_sup.py >foo | |
| # adb push foo /sdcard/foo | |
| # adb shell | |
| # su -c 'cat /sdcard/foo >>/data/misc/wifi/wpa_supplicant.conf' |
| #!/bin/sh | |
| # /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh | |
| # INSTALL | |
| # | |
| # > curl -L 'https://gist.github.com/paulfurley/46e0547ce5c5ea7eabeaef50dbacef3f/raw/56ee5dd5f40dec93b8f7438cbdeda5475ea3b5d2/randomize-mac-addresses.sh' |sudo tee /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh | |
| # > sudo chmod +x /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh | |
| # Configure every saved WiFi connection in NetworkManager with a spoofed MAC |
| grammar Jsonnet; | |
| jsonnet | |
| : expr EOF | |
| ; | |
| expr | |
| : value=(NULL | TRUE | FALSE | SELF | DOLLAR | STRING | NUMBER ) # Value | |
| | '(' expr ')' # Parens | |
| | '{' objinside? '}' # Object |