start up ARDAgent (on remote machine via ssh):
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate \ -configure -users bcf -access -on -restart -agent -privs -all -allowAccessFor -specifiedUsers
start tunnel (from local to remote):
ssh -i keyfile -NfL 1202:127.0.0.1:5900 [email protected]
connect w/ (on local machine):
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
data$method = factor(data$method, levels=c("abyss k=25", "velvet k=25", "trinity k=25")) |
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
# if you can, just use wget | |
# wget -np -r remote_url | |
import re | |
import os | |
import urllib2 | |
import urlparse | |
import pycurl | |
from lxml import html |
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 | |
# | |
# postgresbak - psql backup for xxx.yyy.zzz.qqq | |
# | |
# Created by Brant Faircloth on 2009-04-06. | |
# Copyright (c) 2009 Brant Faircloth. All rights reserved. | |
# | |
# Run by cron w/ | |
# 0 0 * * * /path/to/script/postgresbak.sh | |
# |
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 | |
# | |
# mysqlbak - mysql backup for xxx.yyy.zzz.qqq | |
# | |
# Created by Brant Faircloth on 2009-04-06. | |
# Copyright (c) 2009 Brant Faircloth. All rights reserved. | |
# | |
# Run by cron w/ | |
# 0 0 * * * /path/to/script/mysqlbak.sh | |
# |
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 | |
# | |
# duplicity_backup_to_s3.sh | |
# | |
# Created by Brant Faircloth on 2011-05-05. | |
# Copyright (c) 2011 Brant Faircloth. All rights reserved. | |
# | |
# Run by cron w/ | |
# 0 2 * * * /path/to/duplicity_backup_to_s3.sh 2>&1 >> /var/log/duplicity/etc.log | |
# |
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
Vagrant::Config.run do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "debian_squeeze_32" | |
# The url from where the 'config.vm.box' box will be fetched if it | |
# doesn't already exist on the user's system. | |
config.vm.box_url = "http://mathie-vagrant-boxes.s3.amazonaws.com/debian_squeeze_32.box" | |
# Assign this VM to a host only network IP, allowing you to access it via the IP. | |
config.vm.network "33.33.33.10" |