Skip to content

Instantly share code, notes, and snippets.

View alx's full-sized avatar
🌌
exploring

Alexandre Girard Davila alx

🌌
exploring
View GitHub Profile
@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:

@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 / 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: "

Depends on:

  • Octopress git repo
  • tar
  • rsync
  • rake

Fill in the variables appropriately and copy to hooks/post-receive in your bare git repo

  • git_branch: git branch which holds the source files for the live site
@alx
alx / sigmajs_modularity..js
Created April 8, 2013 15:03
Sigma.js Modularity coloration plugin. Depends on d3js for d3.scale.category20() call.
$(document).ready(function() {
(function(){
var Modularity = function(sig) {
sigma.classes.Cascade.call(this);
var self = this,
domains = [];
['code', 'art', 'boot', 'mix', 'verse'].each { |hack| re(hack) }
@alx
alx / output.log
Created June 13, 2012 18:10
pws openssl debug log
~$ brew install openssl
==> Downloading http://openssl.org/source/openssl-1.0.1c.tar.gz
Already downloaded: /Users/alx/Library/Caches/Homebrew/openssl-1.0.1c.tar.gz
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1c --openssldir=/usr/local/etc/openssl zlib-dynamic shared darwin64-x86_64-cc
==> make
==> make test
==> make install MANDIR=/usr/local/Cellar/openssl/1.0.1c/share/man MANSUFFIX=ssl
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
@alx
alx / output.log
Created June 12, 2012 06:18
rvm 1.9.3-p194 && cd ~/.rvm/src/ruby-1.9.3-p194/ext/openssl && ruby extconf.rb
~$ rvm 1.9.3-p194 && cd ~/.rvm/src/ruby-1.9.3-p194/ext/openssl && ruby extconf.rb
=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff... ===
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for assert.h... yes
=== Checking for required stuff... ===
checking for openssl/ssl.h... yes
checking for openssl/conf_api.h... yes
checking for rb_str_set_len() in ruby.h... yes
@alx
alx / credentials.log
Created June 7, 2012 22:57
github asking for credentials during git push
~$ git clone https://github.com/tetalab/deux-mille.git
Cloning into 'deux-mille'...
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 0), reused 6 (delta 0)
Unpacking objects: 100% (6/6), done.
~$ cd deux-mille/
deux-mille (master)$ cp ../code/deux-mille/index.html .
deux-mille (master)$ gco "remove unused html"
[master 89b27d0] remove unused html
@alx
alx / nginx.conf
Created May 30, 2012 10:53
rtfm and pad nginx configuration
# thsf.tetalab.org
server {
listen 80;
server_name thsf.tetalab.org;
access_log /var/log/nginx/thsf.access.log;
error_log /var/log/nginx/thsf.error.log;
location / {
root /var/www/thsf-2012;