Test
Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.
Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.
To name a gist, touch its name in the toolbar.
You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.
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
Using PATH=/usr/local/Cellar/godi/3.12/bin:/usr/local/Cellar/godi/3.12/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/narwhal/bin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/Users/jrk/.cabal/bin:/Users/jrk/bin:/usr/local/cuda/bin:/usr/local/git/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/usr/local/share/npm/bin:/usr/local/sbin:/Applications/Pixar/RenderMan.app/Versions/RenderManProServer-14.3/bin:/usr/local/bin:/usr/X11R6/bin:/Applications/Matlab/bin:/Developer/Tools:/Users/jrk/Projects/PFC/bin:/usr/local/Cellar/depot_tools/CURRENT:/Users/jrk/.rvm/bin:/Users/jrk/.rip/active/bin:/usr/local/Library/Contributions/examples | |
./configure -no-curses -no-shared-libs -no-pthread | |
cd byterun; /usr/bin/make libcamlrun.a | |
Makefile:16: ../config/Makefile: No such file or directory | |
make[1]: *** No rule to make target `../config/Makefile'. Stop. | |
make: *** [build] Error 2 | |
make: *** Waiting for unfinished jobs.... | |
Confi |
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
# http://www.macresearch.org/matlab-ruby-snow-leopard | |
# Build/install | |
sudo env ARCHFLAGS="-arch x86_64" gem install matlab-ruby -- --with-matlab-include=/Applications/MATLAB_R2010b.app/extern/include --with-matlab-lib=/Applications/MATLAB_R2010b.app/bin/maci64 --with-swig | |
# Run irb | |
PATH=/Applications/MATLAB_R2010b.app/bin:$PATH DYLD_LIBRARY_PATH=/Applications/MATLAB_R2010.app/sys/os/maci64:/Applications/MATLAB_R2010b.app/bin/maci64/MATLAB.app/Contents/MacOS:/Applications/MATLAB_R2010b.app/bin/maci64:/Applications/MATLAB_R2010b.app/extern/lib/maci64:/Applications/MATLAB_R2010b.app/runtime/maci64 irb |
To reproduce
-
Create or link a large (10s of MB) binary file to /tmp/big.zip.
-
Run
-
Fetch the data with curl:
curl -O http://localhost:8080
==> fails in chunky parser at random points during download
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
<a href="javascript:var%20http%20=%20new%20XMLHttpRequest();var%20url%20=%20%22https://prowl.weks.net/publicapi/add%22;var%20apikey%20=%20%qqqqqq%22;var%20application%20=%20%22the%20web%22;var%20evt%20=%20%22Browser!%22;var%20description%20=%20encodeURIComponent(document.title.replace(/^\s*|\s*$/g,%27%27))+%20escape(%22\n%22)%20+%20encodeURIComponent(location.href);var%20params%20=%20%22apikey=%22+apikey+%22&application=%22+escape(application)+%22&event=%22+escape(evt)+%22&description=%22+description;http.open(%22POST%22,%20url,%20true);http.setRequestHeader(%22Content-type%22,%20%22application/x-www-form-urlencoded%22);http.send(params);">Prowl!</a> | |
(Replace "qqqqqq" in the bookmarklet string with your Prowl <a href="https://prowl.weks.net/settings.php">API key</a> before using.) |
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
#!/usr/bin/perl | |
# I use the following perl script to keep track of linked images in Illustrator files. This is especially helpful for broken | |
# links, because it will still tell you the full path to the linked image by peeking inside the Illustrator file. It | |
# obviously does more than anyone here needs, but perhaps it will be useful. The help should explain how to use it. On my | |
# machine I have called it ailinkedfiles.pl and I have put it in ~/bin which is in my PATH. | |
# program to find the linked files inside an Adobe Illustrator file | |
require 5.004; |
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/sh | |
# Wrapper to easily run an R script at the command line, with arguments, | |
# like you're used to with Python/Perl/Ruby/Bash/anything else remotely sane. | |
# | |
# Usage: | |
# runR <script.R> [argument list] | |
# you can also optionally route output to /dev/null, depending on your desires | |
R --vanilla "--args ${@:2}" < $1 #>/dev/null |
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
function openterm { | |
## Open a new Terminal window at $1 | |
path=`cd $1; pwd` | |
osascript -e "tell application \"Terminal\" to do script \"cd ${path}\"" | |
} |
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/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |