Public Gists by alx

Gravatar
Mon Oct 19 09:12:31 -0700 2009
1
2
3
class User
  include DataMapper::Resource
  
Gravatar
Fri Oct 16 03:40:31 -0700 2009
1
2
3
cd /wp-content/blogs.dir/1/files/avatars/
ruby -e "Dir.glob('**/*.jpg').each{|file| File.rename(file,file.gsub('-full.jpg', '-bpfull.jpg'))}"
ruby -e "Dir.glob('**/*.jpg').each{|file| File.rename(file,file.gsub('-thumb.jpg', '-bpthumb.jpg'))}"
Gravatar
Thu Oct 15 06:25:27 -0700 2009
1
2
3
// ==UserScript==
// @name BayImg.com - Sweet Interface 2.71
// @namespace Manix
Gravatar
Thu Oct 15 05:41:46 -0700 2009
1
2
3
require 'rubygems'
require 'httpclient'
 
Gravatar
Mon Oct 12 03:28:12 -0700 2009
1
2
3
Tetalab: un hackerspace Toulousain
 
Après quelques mois d'existence, le Tetalab vient présenter ses projets en cours à Toulibre.
Gravatar
Tue Sep 22 14:38:24 -0700 2009
1
2
3
@database = SQLite3::Database.new( "first_bar.db" )
@database.execute( "create table bar_table (tag_id INTEGER PRIMARY KEY, username TEXT, credit NUMERIC, nb_beers NUMERIC);" )
 
Gravatar
Mon Sep 14 02:31:19 -0700 2009
1
2
3
/*
 El Cumpleaños de Mercedes
 
Gravatar
Thu Aug 27 07:35:18 -0700 2009
1
2
3
# Bash options
export HISTCONTROL=erasedups
export HISTSIZE=10000
Gravatar
Thu Aug 13 14:24:36 -0700 2009
1
2
3
#!/usr/bin/ruby
 
require 'net/http'
Gravatar
Fri Jul 03 02:50:48 -0700 2009
1
2
3
// =======
// =======
//
Gravatar
Mon May 25 08:21:15 -0700 2009
1
2
3
[deploy@seb galibert]$ sudo gem cleanup
Cleaning up installed gems...
Attempting to uninstall highline-1.5.0
Gravatar
Fri May 15 08:45:01 -0700 2009
1
2
3
/*
News ticker plugin (BBC news style)
Bryan Gullan,2007-2009
Gravatar
Thu Mar 12 09:18:01 -0700 2009
1
2
3
    # TDB: :rebuild => false
    # A content file can mark itself as dirty by setting the +dirty+ flag to
    # +true+ in the meta-data of the file. This will cause the contenet to
Gravatar
Thu Mar 05 20:29:48 -0800 2009
1
2
3
# run with: god -c /path/to/merb_mpc.god
#
# This script controls the multi-process Merb 1.0 service
Gravatar
Tue Jan 27 08:11:47 -0800 2009
1
2
3
File.copy options[:file], @filename.path
file_deleted = false
 
Gravatar
Fri Jan 16 14:51:43 -0800 2009
1
2
3
      if (-f $request_filename) {
        break;
      }
Gravatar
Thu Jan 15 15:21:17 -0800 2009
1
2
3
check process merb_app_master
  with pidfile /home/deploy/legodata/slice/shared/pids/production-merb.main.pid
  start program = "/home/deploy/bin/monit_merb_mpc slice start_master /home/deploy/legodata -c2 -n4000"
Gravatar
Wed Jan 14 17:39:41 -0800 2009
1
2
3
GitHub.editableGenerator = function(options){
return function(_,self){
var defaults={
Gravatar
Mon Jan 12 09:08:46 -0800 2009
1
2
3
#!/bin/bash
#================================================================================
# /usr/local/bin/monit_merb_mpc
Gravatar
Mon Jan 12 09:08:12 -0800 2009
1
2
3
check process merb_app_master
  with pidfile /var/log/merb/app-production-merb.main.pid
  start program = "/usr/local/bin/monit_merb_mpc /home/deploy/legodata/slice start_master -c2 -n4000"