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 -specifiedUsersstart 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 hidden or 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
| """ | |
| File: check_sum.py | |
| Author: Brant Faircloth | |
| Created by Brant Faircloth on 23 February 2012 10:02 PST (-0800) | |
| Copyright (c) 2012 Brant C. Faircloth. All rights reserved. | |
| Description: Check a list of files against hashes. | |
| License: http://www.opensource.org/licenses/BSD-3-Clause |
This file contains hidden or 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
| class FullPaths(argparse.Action): | |
| """Expand user- and relative-paths""" | |
| def __call__(self, parser, namespace, values, option_string=None): | |
| setattr(namespace, self.dest, os.path.abspath(os.path.expanduser(values))) | |
| def is_dir(dirname): | |
| """Checks if a path is an actual directory""" | |
| if not os.path.isdir(dirname): | |
| msg = "{0} is not a directory".format(dirname) | |
| raise argparse.ArgumentTypeError(msg) |
This file contains hidden or 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
| """ | |
| File: refgene_to_bed.py | |
| Author: Brant Faircloth | |
| Created by Brant Faircloth on 06 December 2011 22:12 PST (-0800) | |
| Copyright (c) 2011 Brant C. Faircloth. All rights reserved. | |
| Description: convert UCSC refgene.txt files to BED format | |
| """ |
This file contains hidden or 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
| cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage ~/Desktop/IOAHCIBlockStorage.original | |
| sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage | |
| sudo kextcache -system-prelinked-kernel | |
| sudo kextcache -system-caches |
This file contains hidden or 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
| class Writer(writers.Writer): | |
| setting_spec = ( | |
| ('Specify the maximum width (in characters) for options in option ' | |
| 'lists. Longer options will span an entire row of the table used ' | |
| 'to render the option list. Default is 14 characters. ' | |
| 'Use 0 for "no limit".', | |
| ['--option-limit'], | |
| {'default': 4, 'metavar': '<level>', | |
| 'validator': frontend.validate_nonnegative_int}) | |
| ) |
This file contains hidden or 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
| import time | |
| import random | |
| from multiprocessing import Process, Queue, JoinableQueue, cpu_count | |
| """ Adjust time.sleep() values to see action of consumer """ | |
| def work(id, jobs, result): | |
| while True: | |
| task = jobs.get() | |
| if task is None: |
This file contains hidden or 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
| class FullPaths(argparse.Action): | |
| """Expand user- and relative-paths""" | |
| def __call__(self, parser, namespace, values, option_string=None): | |
| setattr(namespace, self.dest, os.path.abspath(os.path.expanduser(values))) | |
| def get_args(): | |
| parser = argparse.ArgumentParser(description='Something smart here') | |
| parser.add_argument('my_conf', help='The configuration file for the db', action = FullPaths) | |
| return parser.parse_args() |
-
get hyphy source (http://www.datam0nk3y.org/)
-
get sqlite source (http://www.sqlite.org/download.html) - you want the "amalgamation"
-
unzip hyphy source somewhere
-
unzip sqlite source somewhere
-
remove the
shell.cfile from the sqlite source -
edit
buildFromSVN.shto point to your svn files:cp /path/to/sqlite-amalgamation-*/*.{c,h} $installDirectory/Source/SQLite/ -
run
bash buildFromSVN.sh