This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
#ack is a tool like grep, designed for programmers with large trees of heterogeneous source code | |
#to install ack, see http://betterthangrep.com/ | |
#to use ack, launch terminal (mac osx) and type 'ack <some_keywords>' | |
#ack will search all files in the current directory & sub-directories | |
#here's how I have my config file setup. this file is located on mac osx here | |
# ~/.ackrc | |
# Always sort the files |
####sessions
tmux new -s session_name # new session by name
tmux attach -t session_name # attach session by name (you can also use a instead of attach)
tmux switch -t session_name # switch session by name (you can also use a instead of attach)
tmux list-sessions # list existing sessions
bind-key : new -s session_name # new session from within a session
// detach
tmux detach # detach currently attached session
import gifAnimation.*; | |
GifMaker gifExport; | |
int loopFrames = 60; | |
PVector maskOrigin; | |
Float maskWidth = 250.0; | |
float orbitWidth = 100.0; | |
void setup() { | |
gifExport = new GifMaker(this, "export.gif", 30); |
# You have your csv data and it looks like so... It's in a file named "my_data.csv" and we want to import it into a table named "my_things". | |
"1", "Something", "0.50", "2013-05-05 10:00:00" | |
"2", "Another thing", "1.50", "2013-06-05 10:30:00" | |
# Now you want to import it, go to the command line and type: | |
$ PGPASSWORD=PWHERE psql -h HOSTHERE -U USERHERE DBNAMEHERE -c "\copy my_things FROM 'my_data.csv' WITH CSV;" | |
# Voila! It's impoted. Now if you want to wipe it out and import a fresh one, you would do this: |
;(function ($, window) { | |
var intervals = {}; | |
var removeListener = function(selector) { | |
if (intervals[selector]) { | |
window.clearInterval(intervals[selector]); | |
intervals[selector] = null; | |
} |
#!/bin/bash | |
function printit { | |
echo "This is from an embedded function: $1" | |
} | |
function printthat { | |
echo "This is the first line." | |
$1 $2 | |
echo "This is the third line." |
[httplog] Connecting: sandbox.usaepay.com:443 | |
[httplog] Sending: POST http://sandbox.usaepay.com:443/soap/gate/spree123 | |
[httplog] Data: <?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:usaepay" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:runAuthOnly><Token xsi:type="ns1:ueSecurityToken"><PinHash xsi:type="ns1:ueHash"><HashValue xsi:type="xsd:string">7bad37464279bd9016392f12ed2cf8befa8bc232</HashValue><Seed xsi:type="xsd:string">FMTGVOkHvfkugXNC7rZwkLS1PJyOjvBolQiFBs+Evzg=</Seed><Type xsi:type="xsd:string">sha1</Type></PinHash><SourceKey xsi:type="xsd:string">0r19zQBdp5nS8i3t4hFxz0di13yf56q1</SourceKey></Token><Params xsi:type="ns1:TransactionRequestObject"><CreditCardData xsi:type="ns1:CreditCardData"><CardNumber xsi:type="xsd:stri |
Only do this if you understand the consequences: all node programs will be able to bind on ports < 1024
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
Important: your node location may vary. Use which node
to find it, or use it directly in the command: