Skip to content

Instantly share code, notes, and snippets.

View alx's full-sized avatar
🌌
exploring

Alexandre Girard alx

🌌
exploring
View GitHub Profile
@alx
alx / videoprojector.sh
Last active August 29, 2015 14:02
videoprojector.sh
#!/bin/bash
#
# chkconfig: 35 90 12
# description: Videoprojector start/stop
#
# Get function from functions library
. /etc/init.d/functions
# Start the videoprojector
start() {
initlog -c "echo -n Starting videoprojector: "
@alx
alx / keybase.md
Created September 22, 2014 14:35
keybase.md

Keybase proof

I hereby claim:

  • I am alx on github.
  • I am alxgirard (https://keybase.io/alxgirard) on keybase.
  • I have a public key whose fingerprint is C681 143F 0F3D 468D A4FC 8485 D9E6 EC82 B82D 73A1

To claim this, I am signing this object:

@alx
alx / keybase.md
Created October 2, 2014 06:02
keybase.md

Keybase proof

I hereby claim:

  • I am alx on github.
  • I am alxgirard (https://keybase.io/alxgirard) on keybase.
  • I have a public key whose fingerprint is B670 AE8A 90AE 2345 2126 1686 DB21 3723 D0B0 8480

To claim this, I am signing this object:

CmdUtils.CreateCommand({
name: "press",
description: "Posts selected content from the current page to Pressmark.",
help: "Posts selected content from the current page to Pressmark.",
icon: "http://bookmark.alexgirard.com/favicon.ico",
homepage: "http://bookmark.alexgirard.com",
author: { name: "Alex Girard", email: "alex@lasindias.com"},
contributors: ["Alex Payne"],
license: "WTFPL",
takes: {"link description": noun_arb_text},
cd moebius_installation
./moebius.rb comic_file.cbr
#!/usr/bin/env ruby -wKU
servers = [
{:id => 0, :alias => "aiko", :ip => "server_ip", :login => "ssh_login", :port => "ssh_port"}
]
# Read from command line
server_id = ARGV[0].to_i if !ARGV[0].nil?
# Read from input
server {
listen 80;
server_name blog.feevy.com;
index index.php;
root /home/wwwfeev/blog;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?q=$1 last;
break;
}
#!/usr/bin/env python
import sgmllib, re, time, string, os, sys, getopt, logging
from xml.dom import minidom
#
# Script to transform a wordpress export file into multiple textile files
#
# Usage:
# pyhton wordpress-export-to-textile.py -o ~/output-dir/ ~/path-to-file/wordpress-export.xml
require 'rubygems'
require 'merb'
require 'rfeedfinder-slice'
RfeedfinderSlice::Rfeedfinder.feed("http://alexgirard.com")
NameError in 'Page should contain an element'
uninitialized constant LazyArray::RETURN_SELF
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.7/lib/dm-core/associations/one_to_many.rb:311:in `method_missing'
/Users/alx/legodata/app/legodata_cms/app/models/page.rb:22:in `parse_elements'
/Library/Ruby/Gems/1.8/gems/extlib-0.9.9/lib/extlib/hook.rb:258:in `execute_before_save_nan_hook_stack'
/Library/Ruby/Gems/1.8/gems/extlib-0.9.9/lib/extlib/hook.rb:293:in `save'
/Library/Ruby/Gems/1.8/gems/extlib-0.9.9/lib/extlib/hook.rb:292:in `catch'
/Library/Ruby/Gems/1.8/gems/extlib-0.9.9/lib/extlib/hook.rb:292:in `save'
./spec/models/page_spec.rb:13: