#Bash and Curl
###cURL
Record an mp3 stream to a file:
$ curl http://example.com/stream.mp3 -o file.mp3
http://stream1.opb.org/kmhd_web.mp3
#Bash and Curl
###cURL
Record an mp3 stream to a file:
$ curl http://example.com/stream.mp3 -o file.mp3
http://stream1.opb.org/kmhd_web.mp3
http://ellislab.com/codeigniter/user-guide/database/queries.html
"...benefit of using binds is that the values are automatically escaped..."
Of note, Query Bindings
looks like the easiest method:
$this->db->query( " SELECT id FROM users WHERE username = ? AND age = ? ", array ( 'todd', '37' ) );
###Query Bindings
Oh yes, this is nice:
git revert --strategy resolve <sha-ish>
Given a git log of A--B--C--D--E
you can remove commit C
using:
git revert --strategy resolve <sha-of-C>
Which will produce:
#MySQL
run mysql cli:
mysql -u [username] -p [databasename]
will prompt for password.
show databases;
use [databasename];
#git commit --amend
Use this to change the last commits message:
git commit --amend -m "New commit message"
From: http://codysoyland.com/2010/jun/6/ssh-tip-automatic-reverse-tunnels-workflow-simplif/
Find the remote file:
local:~$ ssh remote
remote:~$ find . -name 'file.tar.gz'
/home/cody/somewhere/deep/file.tar.gz
#ReST
Hypermedia as the Engine of Application State (HATEOAS)
https://blogs.oracle.com/craigmcc/entry/why_hateoas
http://kenai.com/projects/suncloudapis/pages/HelloCloud
Github API looks restful. see https://api.github.com
#Pour over coffee method
from http://counterculturecoffee.com/education/online-brewing-guide/61-chemex