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
/* A Trivial LLVM LISP | |
* Copyright (C) 2008-2009 David Robillard <[email protected]> | |
* | |
* Parts from the Kaleidoscope tutorial <http://llvm.org/docs/tutorial/> | |
* by Chris Lattner and Erick Tryzelaar | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. |
from __future__ import with_statement | |
''' CHM File decoding support ''' | |
__license__ = 'GPL v3' | |
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>,' \ | |
' and Alex Bramley <a.bramley at gmail.com>.' | |
import sys, os, re, shutil | |
from tempfile import mkdtemp | |
from mimetypes import guess_type as guess_mimetype | |
from htmlentitydefs import name2codepoint |
#!/usr/bin/ruby | |
# http://gist.github.com/230533 | |
# forked from http://gist.github.com/124242 | |
# TODO: add iteration over arguments | |
filename=ARGV[0] | |
abort "Usage: flac2mp3 FLACFILE" if filename.nil? | |
`metaflac --export-tags-to=- "#{filename}"`.each_line do |s| | |
v=s.strip.split '=', 2 |
#! /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 |
function openterm { | |
## Open a new Terminal window at $1 | |
path=`cd $1; pwd` | |
osascript -e "tell application \"Terminal\" to do script \"cd ${path}\"" | |
} |
#!/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 |
#!/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; |
<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.) |
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
# 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 |