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
Last Minute Webcam Christmas Cards | |
Have you left it too late to send out Xmas cards? Perhaps you were saving the planet by not sending them this year. Well whatever your excuse its no longer valid. If you have a webcam and its still Xmas day its not too late to send out some cute personalized cards via email. | |
The site was built by the team at digital agency codegent on christmas eve as an last minute xmas present to the internet. Luke Hubbard explained.. "Its was just a bit of fun really, I wanted to send out some cards with my son dressed up as an elf. We have this cool technology that lets people take pictures with their webcams so we thought why not make a little app and share it with the world. Its just grown from there." Since launch news of the site has been spreading Xmas cheer virally through email and services like twitter. | |
Hosting is provided by Google App Engine and the site requires you login using a Google account to send emails. Give it a try and send any feedback to @luke_bkk on twi |
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
0rz.tw | |
2tu.us | |
301url.com | |
6url.com | |
a2n.eu | |
adjix.com | |
azqq.com | |
b23.ru | |
b65.us | |
bit.ly |
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
<?xml version="1.0" encoding="utf-8"?> | |
<weborbConfig> | |
<classMappings> | |
<classMapping> | |
<clientClass>flex.messaging.messages.CommandMessage</clientClass> | |
<serverClass>ReqMessage</serverClass> | |
<source>weborb.v3types.ReqMessage</source> | |
</classMapping> | |
<classMapping> |
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
# File: dreamhost_agent.rb | |
# Author: Luke Hubbard | |
# Gist: http://gist.github.com/gists/30620 | |
# License: MIT | |
require 'rubygems' | |
require 'rubygists' | |
require 'net/ssh' | |
require 'net/scp' | |
require 'logger' |
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/env ruby | |
# copy to /usr/bin/gem-checker | |
lib = ARG[0] | |
require 'rubygems' | |
time_before = Time.now | |
memory_usage_before = `ps -o rss= -p #{Process.pid}`.to_i | |
require lib | |
time_after = Time.now | |
memory_usage_after = `ps -o rss= -p #{Process.pid}`.to_i | |
time_taken = time_after - time_before |
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
require 'rubygems' | |
time_before = Time.now | |
memory_usage_before = `ps -o rss= -p #{Process.pid}`.to_i | |
require 'active_support' | |
time_after = Time.now | |
memory_usage_after = `ps -o rss= -p #{Process.pid}`.to_i | |
time_taken = time_after - time_before | |
memory_usage = memory_usage_after - memory_usage_before | |
puts "ActiveSupport eating #{memory_usage}kb, loaded in #{time_taken}s" |
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
ffmpeg -i work/input.* -b $1 -an -vcodec libx264 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me hex -subq 5 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -s $2 -r 24 -threads 4 -y work/temp_video.mp4 && ((ffmpeg -i work/input.* -ar 48000 -ac 2 -y work/temp_audio.wav && neroAacEnc -br $3 -he -if work/temp_audio.wav -of work/temp_audio.aac && MP4Box -add work/temp_audio.aac#audio work/h264.flv) || true) && MP4Box -add work/temp_video.mp4#video work/h264.flv && MP4Box -inter 500 work/h264.flv | |
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
I took the top suggestion out of google suggest, try it for yourself. | |
http://www.google.com/webhp?complete=1&hl=en | |
does god... exist | |
why are religions... different | |
why are jews... hated | |
why are muslims... so violent | |
why are christians... so judgemental | |
why are buddhists... vegetarian | |
why cant we.. be friends |
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
require 'rubygems' | |
require 'open-uri' | |
require 'json' | |
# Twitter search in one line, got to love ruby. | |
def twitter_search(q); JSON.parse(open("http://search.twitter.com/search.json?q=#{q}").read) end | |
# puts twitter_search("codegent").inspect |
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
EDITOR="/usr/bin/nano -w" | |
export PS1="\\[\\e]0;\\w\\a\\]\\n\\[\\e[32m\\]\\u@\\h \\[\\e[33m\\]\\w\\[\\e[0m\\]\\n\\\$ " | |
export LS_COLORS="no=00:fi=00:di=01;36:ln=01;35:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:" | |
export LSCOLORS='GxFxcxdxCxegedabagacad' | |
# GENERAL | |
alias df='df -h' | |
alias du='du -h' | |
alias grep='grep --color' |