Skip to content

Instantly share code, notes, and snippets.

Bruno Bigras bbigras

View GitHub Profile
View gist:de6b780c4d4b7abba1da56ccb571fccc
mkdir -p $GOPATH/src/github.com/prometheus
cd $GOPATH/src/github.com/prometheus
git clone https://github.com/prometheus/prometheus.git
cd prometheus/documentation/examples/remote_storage/remote_storage_bridge
go build -v
[bbigras@bruno remote_storage_bridge]$ go build -v
github.com/prometheus/prometheus/vendor/github.com/gogo/protobuf/proto
github.com/prometheus/prometheus/vendor/github.com/golang/snappy
github.com/prometheus/prometheus/vendor/github.com/influxdb/influxdb/tsdb
View remember-passwords.js
javascript:(function(){var ca,cea,cs,df,dfe,i,j,x,y;function n(i,what){return i+" "+what+((i==1)?"":"s")}ca=cea=cs=0;df=document.forms;for(i=0;i<df.length;++i){x=df[i];dfe=x.elements;if(x.onsubmit){x.onsubmit="";++cs;}if(x.attributes["autocomplete"]){x.attributes["autocomplete"].value="on";++ca;}for(j=0;j<dfe.length;++j){y=dfe[j];if(y.attributes["autocomplete"]){y.attributes["autocomplete"].value="on";++cea;}}}alert("Removed autocomplete=off from "+n(ca,"form")+" and from "+n(cea,"form element")+", and removed onsubmit from "+n(cs,"form")+". After you type your password and submit the form, the browser will offer to remember your password.")})();
View keybase.md

Keybase proof

I hereby claim:

  • I am brunoqc on github.
  • I am bbigras (https://keybase.io/bbigras) on keybase.
  • I have a public key whose fingerprint is 4BD0 4C91 70A0 1FD2 9B28 0D27 88F9 349F 818C 82FD

To claim this, I am signing this object:

View union.go
package main
// #include <windows.h>
// #include <winuser.h>
import "C"
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms646270(v=vs.85).aspx
// typedef struct tagINPUT {
// DWORD type;
// union {
View demo-lambda.py
# -*- coding: utf-8 -*-
import os
path = "C:\\"
listeDeFichiers = os.listdir(path)
print "listeDeFichiers", listeDeFichiers
@bbigras
bbigras / template-raven.py
Created Jul 12, 2012
template pour Raven
View template-raven.py
# -*- coding: utf-8 -*-
from raven import Client
from raven.handlers.logging import SentryHandler
from raven.conf import setup_logging
import sys
import logging
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
You can’t perform that action at this time.