This is a quick script to convert notes from Tomboy to Evernote.
pip install -r requirements.txt
mkdir export/
python tomboy-export.py <tomboy-dir>
| #!/usr/bin/env bash | |
| if [ -z "$INSTALL_DIR" ]; then | |
| INSTALL_DIR=$HOME/.wp-cli | |
| fi | |
| mkdir -p "$INSTALL_DIR" | |
| cd "$INSTALL_DIR" | |
| if [ ! -x composer.phar ]; then |
| import sys | |
| import subprocess | |
| # Requirements: | |
| # - `adb` command locally | |
| # - `su` command on device | |
| def use_su(cmd): | |
| to_escape = ['*', '|'] |
| #!/usr/bin/env bash | |
| # On OS X, use this script to generate an encrypted deployment key for Travis CI. | |
| # Dependencies: | |
| # gem install travis | |
| # brew install coreutils | |
| if [ $# -lt 1 ]; then | |
| echo "usage: $0 <user>/<repo>" |
| <?php | |
| $read = array(STDIN); | |
| $write = null; | |
| $except = null; | |
| if ( stream_select($read, $write, $except, 0) > 0 ) { | |
| $content = stream_get_contents($read[0]); | |
| } else { | |
| $content = false; |
| #!/bin/bash | |
| # rndsound.sh - make a wav from the RNG source | |
| # must be run as root: sudo ./rndsound.sh | |
| # needs sox toolkit: sudo apt-get install sox libsox-fmt-all | |
| # created by scruss on Mon Jun 3 23:07:54 EDT 2013 | |
| # length of sample, seconds | |
| DURATION=5 | |
| # output file | |
| OUTFILE=random$(date +%Y%m%d%H%M%S).wav |
| #!/usr/bin/php | |
| <?php | |
| /** | |
| * Takes some code from STDIN, fixes whitespace according to the WordPress Coding Standards and outputs it to STDOUT | |
| * Usage example: wpformat < some-file.php > some-file.php | |
| */ | |
| // Read file from standard input | |
| $file = ''; |
| #!/usr/bin/env bash | |
| function fn_star() { | |
| for word in "$*"; do | |
| echo $word | |
| done | |
| } | |
| function fn_at() { | |
| for word in "$@"; do |
| # Install Xcode, Command Line Tools, Xquartz (on 10.8) | |
| # In a terminal (probably best to do one thing at a time): | |
| ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" | |
| brew tap homebrew/dupes | |
| brew tap josegonzalez/homebrew-php | |
| brew install php54 --with-mysql | |
| chmod -R ug+w /usr/local/Cellar/php54/5.4.7/lib/php | |
| pear config-set php_ini /usr/local/etc/php/5.4/php.ini |