Skip to content

Instantly share code, notes, and snippets.

View tallcoder's full-sized avatar

Duane Helton tallcoder

View GitHub Profile
@tallcoder
tallcoder / nsuserdefaults_remove
Last active December 5, 2017 14:30
delete all stored nsuserdefaults data
NSString *appDomain = [[NSBundle mainBundle] bundleIdentifier];
[[NSUserDefaults standardUserDefaults] removePersistentDomainForName:appDomain];
@tallcoder
tallcoder / rsync.sh
Created January 2, 2015 20:47
Rsync terminal command
# Create .bash_functions file
# Include that from .bashrc or .bash_profile
function rsync_copy() {
# 1 = host
# 2 = source file/dir
# 3 = destination file/dir
rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress $2 $1:$3
}