Skip to content

Instantly share code, notes, and snippets.

View cburyta's full-sized avatar

Chris Buryta cburyta

  • Buffalo, NY
View GitHub Profile
@shanesmith
shanesmith / fix-xcodeproj.rb
Created August 14, 2014 15:54
Fix a Cordova-generated xcodproj not having any schemes defined
#!/usr/bin/env ruby
require 'xcodeproj'
path = ARGV.shift
xcproj = Xcodeproj::Project.open(path)
# Fix schemes not being defined
xcproj.recreate_user_schemes
@lennyjpg
lennyjpg / mysqlbackup.sh
Last active December 7, 2018 11:34
backup mysqldump over ssh tunnel into gpg
#! /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"
@ntalbott
ntalbott / dnsimpleupdate
Created August 25, 2012 19:33
A DNSimple DDNS updater for DD-WRT
#!/bin/sh
EMAIL=
API_TOKEN=
DOMAIN_ID=
RECORD_ID=
IP=$( nvram get wan_ipaddr )
OUTPUT='-s -o /dev/null'
usage()