Skip to content

Instantly share code, notes, and snippets.

@jblb
jblb / get-win7-productkey.vbs
Created May 9, 2017 19:31 — forked from eyecatchup/get-win7-productkey.vbs
VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
' VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
'
' Save the VBScript as "getWin7Key.vbs" somewhere on your Windows7 PC.
' Now, when you double-click the local script file an alertbox pops up
' displaying the product key stored in the machine's Windows registry.
Set WshShell = WScript.CreateObject("WScript.Shell")
KeyPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"
MsgBox ExtractKey(WshShell.RegRead(KeyPath))
@jblb
jblb / Energy_Monitor_Real.ino
Created January 11, 2017 16:03 — forked from whatnick/Energy_Monitor_Real.ino
ESP8266 Energy Monitor Real Power
/*
* This sketch sends ads1115 current sensor data via HTTP POST request to thingspeak server.
* It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE):
*
* - https://github.com/adafruit/Adafruit_ADS1X15
*
* designed to run directly on esp8266-01 module, to where it can be uploaded using this marvelous piece of software:
*
* https://github.com/esp8266/Arduino
*

Keybase proof

I hereby claim:

  • I am jblb on github.
  • I am jblb (https://keybase.io/jblb) on keybase.
  • I have a public key ASAguNB6YVL3-rBV6m_Xdbl9_aDCKgUN8wPdx_wZkSK5Ugo

To claim this, I am signing this object:

@jblb
jblb / Makefile
Created April 28, 2013 19:36 — forked from matael/Makefile
#
# Makefile
# matael, 2013-04-26 23:22
#
# compilation
CC=msp430-gcc
CC_OPTS= -Os
MMCU_TYPE=msp430g2553
@jblb
jblb / basicRGB.ino
Created March 9, 2013 09:52
commande de led rgb
/*
Basic Pin setup:
------------ ---u----
ARDUINO 13|-> SCLK (pin 25) OUT1 |1 28| OUT channel 0
12| OUT2 |2 27|-> GND (VPRG)
11|-> SIN (pin 26) OUT3 |3 26|-> SIN (pin 11)
10|-> BLANK (pin 23) OUT4 |4 25|-> SCLK (pin 13)
9|-> XLAT (pin 24) . |5 24|-> XLAT (pin 9)
8| . |6 23|-> BLANK (pin 10)
7| . |7 22|-> GND
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from twitter import Twitter
import time
# CONFIG
# hashtag a chercher
HASHTAG = "#jellylemans"
# attente entre deux récup (en MINUTES)
@jblb
jblb / nanode_pachube.pde
Created December 5, 2011 15:02 — forked from maniacbug/nanode_pachube.pde
Example to use EtherCard on Nanode to upload data to Pachube
// Simple demo for feeding some random data to Pachube.
// Based on pachube.pde 2011-07-08 <jcw@equi4.com> http://opensource.org/licenses/mit-license.php
// Created by <maniacbug@ymail.com>
// This has been tested with EtherCard rev 7752
// Get it from http://jeelabs.net/projects/11/wiki/EtherCard
#include <EtherCard.h>
// change these settings to match your own setup
#define FEED "xxxx"