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
*
@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
#!/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"