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:
# $Header: /root/RCS/siriproxy-raspberrypi.txt,v 1.9 2013/11/09 08:11:00 root Exp $ | |
# $Log: siriproxy-raspberrypi.txt,v $ | |
# Revision 1.9 2013/11/09 08:11:00 root | |
# updated for latest RVM which installs dependencies and Ruby by default | |
# | |
# Revision 1.8 2013/03/22 20:41:20 root | |
# updated for Ruby 2.0.0 and SiriProxy 0.5.2 | |
# | |
# Revision 1.7 2012/12/31 04:42:57 root | |
# shorter URL for newark and typos |
#* Script to record and tag spotify tracks, by Lloyd Moore, modified by Ryan Aslett *) | |
#(* Make sure you are already recording in Audio Hijack Pro with a session called 'spotifySession' *) | |
tell application "Spotify" | |
set currentTrack to (current track) | |
set trackName to (name of currentTrack) | |
set trackNumber to (track number of currentTrack) | |
set trackAlbum to (album of currentTrack) | |
set discNumber to (disc number of currentTrack) | |
set albumArtist to (album artist of currentTrack) |
* Script to record and tag spotify tracks, by Lloyd Moore *) | |
(* Make sure you are already recording in Audio Hijack Pro with a session called 'spotifySession' *) | |
tell application "Spotify" | |
set currentTrack to (current track) | |
set trackName to (name of currentTrack) | |
tell application "Audio Hijack Pro" | |
set theSession to my getSession() | |
end tell | |
repeat |
net.inet.ip.portrange.first=32768 | |
net.inet.ip.portrange.hifirst=32768 | |
net.inet.tcp.msl=1000 | |
# for postgresql | |
kern.sysv.shmall=65536 | |
kern.sysv.shmmax=16777216 | |
# defaults | |
net.inet.ip.portrange.lowfirst=1023 |
By Christopher Walken
Do you enjoy eating hot dogs? I hope you won’t be put off by my frankness when I tell you that I absolutely love them. In fact, I enjoy no food item more than a freshly-boiled hot dog. Now, I’ve done a lot of movies, and it’s true that I’ve worked with quite a few celebrities who did not share this opinion. I’m sorry to say that these people have always angered me.
There are two types of people in this world: those who eat hot dogs whenever it is possible to do so, and those who opt to do other things with their free time. Who do the latter think they are kidding? What pastime could be more rewarding than the consumption of hot dogs? I haven’t yet found one, and I don’t expect to in my lifetime. Unlike other foods, hot dogs can be eaten at any time, in any place, and it is not necessary to cook them. Now, I ask you: Why not eat hot dogs? They are delicious.
I carry a bag of hot dogs with me wherever I go. I eat them from the bag whenever I get the urge, regardless of the circumstances
(function() { | |
// Notes from http://news.ycombinator.com/item?id=1952531 | |
var notes = { | |
"suspended cymbal":"zk", | |
"snare":"bschk", | |
"brush":"pv", | |
"bass":"bk", | |
"flam1":"tk", | |
"roll tap":"vk", | |
"flam2":"kt", |
def sanitize(untrusted_html, additional_tags=None): | |
"""Strips potentially harmful tags and attributes from HTML, but preserves | |
all tags in a whitelist. | |
Passing the list additional_tags will add the specified tags to the whitelist. | |
The sanitizer does NOT encode reserved characters into XML entities. It is up | |
to the template code, if any, to take care of that. | |
Based on the work of: |
// It is important to declare your variables. | |
(function() { | |
var foo = 'Hello, world!'; | |
print(foo); //=> Hello, world! | |
})(); | |
// Because if you don't, the become global variables. | |
(function() { |