Skip to content

Instantly share code, notes, and snippets.

Bruno Bigras bbigras

View GitHub Profile
View gist:de6b780c4d4b7abba1da56ccb571fccc
mkdir -p $GOPATH/src/
cd $GOPATH/src/
git clone
cd prometheus/documentation/examples/remote_storage/remote_storage_bridge
go build -v
[bbigras@bruno remote_storage_bridge]$ go build -v
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.")})();

Keybase proof

I hereby claim:

  • I am brunoqc on github.
  • I am 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"
// typedef struct tagINPUT {
// DWORD type;
// union {
# -*- coding: utf-8 -*-
import os
path = "C:\\"
listeDeFichiers = os.listdir(path)
print "listeDeFichiers", listeDeFichiers
bbigras /
Created Jul 12, 2012
template pour Raven
# -*- 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.