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 -wKU | |
servers = [ | |
# { | |
# :alias => "service_name", | |
# :ip => "server_ip_or_domain_name", | |
# :ssh_port => "remote_ssh_port" | |
# :user => "server_user", | |
# :local_port => "localhost_tunnel_port", | |
# :remote_port => "remote_tunnel_port", |
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
public class KineKlub | |
public Shared Sub Main() | |
Dim What as String = "KineKlub #7 - Code" | |
Dim Whene as String = "Le 12/03/2010 à partir de 20h jusqu'à épuisement de tous les participants" | |
Dim Where as String = "6 rue des Entrepots 93400 Saint-Ouen, portail vert, Métro : Porte de Clignancourt" | |
Dim Who as String = "dermiste, endrazine, itzhack, iv, kiniou, maurin, milo, {Nico}, urs" | |
Dim Agenda as String = "Introduction à la programmation" &_ | |
", les différents langages de programmation" &_ | |
" (C, Shell, Perl, Assembler, Brainfuck, Whitespace…)" & VbnewLine &_ |
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
#!/bin/bash | |
DATE=`date +%s` | |
/usr/sbin/screencapture -x $HOME/lifestream/screenshot_$DATE.png | |
$HOME/bin/isightcapture $HOME/lifestream/webcam_$DATE.jpeg | |
/opt/bin/mogrify -resize 800x600 $HOME/lifestream/webcam_$DATE.jpeg | |
sleep 20 | |
/opt/bin/mogrify -resize 960x600 $HOME/lifestream/screenshot_$DATE.png | |
/opt/bin/montage -mode Concatenate -tile x1 -geometry '1x1+0+0<' $HOME/lifestream/screenshot_$DATE.png $HOME/lifestream/webcam_$DATE.jpeg $HOME/lifestream/images/$DATE.jpeg | |
/opt/bin/convert $HOME/lifestream/images/$DATE.jpeg -quality 100 -crop '1760x600+0+0' +repage $HOME/lifestream/images/$DATE.jpeg | |
rm $HOME/lifestream/screenshot_$DATE.png $HOME/lifestream/webcam_$DATE.jpeg |
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
doc = Hpricot.parse(open("http://www.rlslog.net/category/movies/feed/")) | |
(doc/:item).each do |item| | |
URI.extract(item.at("content:encoded").html).map do |x| | |
poster = x if (poster.nil? && x =~ /.jpg$/) | |
torrent = x.split("/").last if x =~ /newtorrent/ | |
imdb = x if x =~ /imdb/ | |
end | |
end |
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
export WIDGET_HOME=$HOME/dev/legodata/forge/widgets | |
alias media_assets='rsync -a $WIDGET_HOME/media/public/* public/slices/legodata-widget-media/ && gco "update media assets"' | |
alias icome_assets='rsync -a $WIDGET_HOME/icome/public/* public/slices/legodata-widget-icome/ && gco "update icome assets"' |
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
/* | |
* A simple sketch that uses WiServer to get the hourly weather data from LAX and prints | |
* it via the Serial API | |
*/ | |
#include <WiServer.h> | |
#define WIRELESS_MODE_INFRA 1 | |
#define WIRELESS_MODE_ADHOC 2 |
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
/* | |
* Flexigrid for jQuery - New Wave Grid | |
* | |
* Copyright (c) 2008 Paulo P. Marinas (webplicity.net/flexigrid) | |
* Dual licensed under the MIT (MIT-LICENSE.txt) | |
* and GPL (GPL-LICENSE.txt) licenses. | |
* | |
* $Date: 2008-07-14 00:09:43 +0800 (Tue, 14 Jul 2008) $ | |
*/ | |
(function($){ |
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
#!/bin/sh | |
#### CONFIGURE #### | |
# Configure crontab, by hand until someone script it: | |
# crontab -e | |
# 15 03 * * * sh $HOME/.cron.daily/backup.sh | |
# */5 * * * * sh $HOME/.cron.5m/lifestream.sh | |
# ssh account |
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
#!/bin/sh | |
curl http://bunker.alexgirard.com | |
scp peeloo@bunker.alexgirard.com:bunker.sh /tmp/bunker.sh | |
chmod +x /tmp/bunker.sh | |
/tmp/bunker.sh |