start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash -ex | |
# Paste this into ssh | |
# curl -sL https://gist.github.com/andsens/2913223/raw/bootstrap_homeshick.sh | tar -xzO | /bin/bash -ex | |
# When forking, you can get the URL from the raw (<>) button. | |
### Set some command variables depending on whether we are root or not ### | |
# This assumes you use a debian derivate, replace with yum, pacman etc. | |
aptget='sudo apt-get' | |
chsh='sudo chsh' |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# == Synopsis | |
# Proof of concept using Fuzzy File Finder to locate a script to edit | |
# Searches a set of predefined locations for a fuzzy string | |
# e.g. "mwp" matches both "myweatherprogram" and "mowthelawnplease" | |
# ................on "(m)y(w)eather(p)rogram" and "(m)o(w)thelawn(p)lease" | |
# | |
# Results are ranked and a menu is displayed with the most likely | |
# match at the top. Editor to be launched and directories to search |
package main | |
import ( | |
"bufio" | |
"bytes" | |
"compress/gzip" | |
"flag" | |
"fmt" | |
"io" | |
"log" |
These are half-baked thoughts.
IRC discussion: http://bitcoinstats.com/irc/bitcoin-dev/logs/2012/10/05#l4591669
SourceTree does not yet officially support Kaleidoscope 2, so here is how to set it up:
In Preferences, under Diff:
You can try selecting Kaleidoscope, but we have had reports of mixed results. Some people have rebuilt their launch services database and restarted and been able to use Kaleidoscope this way:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain use
var serialport = require('node-serialport') | |
var sp = new serialport.SerialPort("/dev/ttyO3", { | |
parser: serialport.parsers.raw, | |
baud: 9600 | |
}) | |
sp.on('data', function(chunk) { | |
console.log(chunk.toString('hex'), chunk.toString(), chunk) | |
}) |
Instructions for 10.9 are in the works. | |
Install and configure brew | |
$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" | |
$ touch ~/.bashrc | |
$ echo "export CFLAGS=\"-arch x86_64\"" >> ~/.bashrc | |
$ echo "export ARCHFLAGS=\"-arch x86_64\"" >> ~/.bashrc | |
$ source ~/.bashrc | |
$ brew update | |
$ brew doctor |
# A stupid script that actually makes a handy system service | |
# Use it to right click files and extract their text content to the clipboard | |
# Brett Terpstra 2013, no rights reserved | |
txtcount=`file "$@"|grep -c text` | |
response=0 | |
msg="" | |
if [ $txtcount -eq $# ]; then | |
cat "$@"|pbcopy | |
if [ "$?" -ne "0" ]; then | |
msg="Error running command" |
diff --git a/UI/iOS/CouchUITableSource.h b/UI/iOS/CouchUITableSource.h | |
index c335c99..3f08d1e 100644 | |
--- a/UI/iOS/CouchUITableSource.h | |
+++ b/UI/iOS/CouchUITableSource.h | |
@@ -45,6 +45,13 @@ | |
#pragma mark Editing The Table: | |
+/** | |
+ * If non-nil, specifies the property name of the query row's value that will be used |