This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is a JavaScript Scratchpad. | |
* | |
* Enter some JavaScript, then Right Click or choose from the Execute Menu: | |
* 1. Run to evaluate the selected text (Ctrl+R), | |
* 2. Inspect to bring up an Object Inspector on the result (Ctrl+I), or, | |
* 3. Display to insert the result in a comment after the selection. (Ctrl+L) | |
*/ | |
const cardBobsVisa = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This is a little script to populate Firefox Sync with | |
# fake password records. Use it like so: | |
# | |
# $> pip install PyFxA syncclient cryptography | |
# $> python ./upload_fake_passwords.py 20 | |
# | |
# It will prompt for your Firefox Account email address and | |
# password, generate and upload 20 fake password records, then | |
# sync down and print all password records stored in sync. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This program gets the power status (AC IN or BAT) | |
# I2C interface with AXP209 | |
# | |
####################################################################### | |
# Copyright (c) 2014 by RzBo, Bellesserre, France | |
# | |
# Permission is granted to use the source code within this | |
# file in whole or in part for any use, personal or commercial, | |
# without restriction or limitation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/network/interfaces | |
# Configured for bridging wifi<->ethernet | |
# Tested with: | |
# - RPi Model B Rev. 1 | |
# - 2013-02-09-wheezy-raspbian | |
# - Edimax 8192-series USB wireless adapter | |
# - /etc/modprobe.d/8192cu.conf contents: | |
# - options 8192cu rtw_power_mgnt=0 rtw_enusbss=0 | |
# - firmware: c2d133fb4efe9c9995da7fd7e1c45d74254f5c4b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Run this from your error console. WARNING: removes tabs from their existing groups! */ | |
var Cc = Components.classes; | |
var Ci = Components.interfaces; | |
var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator); | |
var winEnum = wm.getEnumerator("navigator:browser"); | |
while (winEnum.hasMoreElements()) { | |
var win = winEnum.getNext(); | |
win.TabView._initFrame(function() { | |
var contentWindow = win.TabView._window; | |
contentWindow.UI.reset(); |