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 ruby | |
require 'xcodeproj' | |
path = ARGV.shift | |
xcproj = Xcodeproj::Project.open(path) | |
# Fix schemes not being defined | |
xcproj.recreate_user_schemes |
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 | |
# open tunnel | |
ssh -v -M -f -N -L 3306:localhost:3306 "$1" -S /tmp/ssh-control | |
# dump sql, gzip, encrypt with openssl | |
mysqldump -u root -p"$3" "$2" --host 127.0.0.1 | gzip | openssl aes-256-cbc -salt -out mysqldump.aes -k "$4" | |
# close tunnel | |
ssh -S /tmp/ssh-control -O exit "$1" |
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 | |
EMAIL= | |
API_TOKEN= | |
DOMAIN_ID= | |
RECORD_ID= | |
IP=$( nvram get wan_ipaddr ) | |
OUTPUT='-s -o /dev/null' | |
usage() |