Skip to content

Instantly share code, notes, and snippets.

View bbigras's full-sized avatar

Bruno Bigras bbigras

  • Laval, Québec
  • 02:58 (UTC -05:00)
View GitHub Profile
@bbigras
bbigras / bathroom-humidity-exhaust-fan.yaml
Last active January 23, 2023 18:04 — forked from Blackshome/bathroom-humidity-exhaust-fan.yaml
bathroom-humidity-exhaust-fan.yaml
blueprint:
name: Bathroom Humidity Exhaust Fan
description: >
# Bathroom Humidity Exhaust Fan
**Version: 1.1**
The most common automation used for a bathroom humidity exhaust fan.
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
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 (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:

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 {
@bbigras
bbigras / demo-lambda.py
Created July 12, 2012 18:52
demo lambda
# -*- coding: utf-8 -*-
import os
path = "C:\\"
listeDeFichiers = os.listdir(path)
print "listeDeFichiers", listeDeFichiers
@bbigras
bbigras / template-raven.py
Created July 12, 2012 14:30
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')