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/bin/sh | |
iptables -t filter -F FORWARD | |
iptables -t nat -F POSTROUTING | |
iptables -t filter -I FORWARD -j ACCEPT | |
iptables -t nat -I POSTROUTING -j MASQUERADE | |
ip rule add from 192.168.43.0/24 lookup 61 | |
ip route add default dev tun0 scope link table 61 | |
ip route add 192.168.43.0/24 dev wlan0 scope link table 61 | |
ip route add broadcast 255.255.255.255 dev wlan0 scope link table 61 |
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 | |
# install lastest virtualbox and extenion pack releases | |
VBOX_LATEST_VERSION=$(curl http://download.virtualbox.org/virtualbox/LATEST.TXT) | |
VBOX_LATEST_FILE_OSX=$(wget -q http://download.virtualbox.org/virtualbox/${VBOX_LATEST_VERSION}/MD5SUMS -O- | grep -i "OSX.dmg" | cut -d"*" -f2) | |
wget -c http://download.virtualbox.org/virtualbox/${VBOX_LATEST_VERSION}/${VBOX_LATEST_FILE_OSX} -O /tmp/${VBOX_LATEST_FILE_OSX} | |
hdiutil mount /tmp/${VBOX_LATEST_FILE_OSX} | |
sudo installer -pkg /Volumes/VirtualBox/VirtualBox.pkg -target / | |
hdiutil unmount /Volumes/VirtualBox |
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 | |
tar -xvf /tmp/build-data/sandbox_sql.tar.gz -C /tmp/build-data | |
while ! ping -c1 expressionengine &>/dev/null; do sleep 2; echo "waiting on expressionengine"; done | |
mysql -hexpressionengine -uroot -proot sandbox_expressionengine < /tmp/build-data/sandbox_expressionengine.sql | |
while ! ping -c1 wowzalicensing &>/dev/null; do sleep 2; echo "waiting on wowzalicensing"; done | |
mysql -hwowzalicensing -uroot -proot sandbox_wowzalicensing < /tmp/build-data/sandbox_wowzalicensing.sql | |
while ! ping -c1 wowzamedia &>/dev/null; do sleep 2; echo "waiting on wowzamedia"; done |
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 bash | |
# Installs GNU Command Line Tools & then some. Requires homebrew. | |
# Most are newer and more powerful that than OSX’s but also solves most OS compatibility issues | |
echo "Installing GNU coreutils and various." | |
export PATH="$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:$PATH" | |
brew install coreutils | |
brew install binutils | |
brew install diffutils | |
brew install ed --with-default-names | |
brew install findutils --with-default-names |
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
<script> | |
(function() { | |
var geoIpServiceUrl = 'https://freegeoip.net/json/'; | |
var redirectUrl = 'http://youturn.org/ut'; | |
var isBotSpider = Boolean(navigator.userAgent.match(/bot|spider/i)); | |
var alreadyUtRedirected = Boolean(document.cookie.replace(/(?:(?:^|.*;\s*)utRedirected\s*\=\s*([^;]*).*$)|^.*$/, '$1')); | |
var atRoot = window.location.pathname === '/'; | |
var shouldRedirect = atRoot && !alreadyUtRedirected && !isBotSpider; | |
function redirect(response) { |
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 | |
# unofficial bash strict mode | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Run script from dir with both certificate files and the private key | |
# certificate name on AWS |
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 bash | |
# Wrapper scirpt that assumes aws role and then runs your script that needs the creds. | |
# Im not remembering where I got it, but it was at least inspired by another if not verbarium. | |
account_id=$1 | |
role=$2 | |
CMD="$@" | |
ACCOUNT_ID=11111111111 |
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
{ | |
"Version": "2012-10-17", | |
"Statement":[ | |
{ | |
"Sid": "AllowAllUsersToListAccounts", | |
"Effect": "Allow", | |
"Action":[ | |
"iam:ListAccountAliases", | |
"iam:ListUsers", | |
"iam:GetAccountSummary" |
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
variable "filter" { | |
type = string | |
default = "*.yaml" | |
description = "The pattern used to filter files, i.e. '*.yaml'." | |
} | |
variable "search_dir" { | |
type = string | |
default = "." | |
description = "The the directory to search from. Default is '.'." |
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
## Existing list of teams with members list: | |
"0" = { | |
"description" = "No one cared enough to add a description to this team" | |
"members" = [ | |
{ | |
"role" = "maintainer" | |
"username" = "bob" | |
}, | |
{ |
OlderNewer