Skip to content

Instantly share code, notes, and snippets.

View img2ext.py
#!/usr/bin/python2
import sys
import mmap
ext4Magic = '\x53\xEF'
ext4MagicOffset = 1080
if len(sys.argv) < 3:
print("No I/O supplied")
View gist:2139e85fc117acce2ef4
var dropdown1 = this.getField("Dropdown1").value;
var dropdown1a = this.getField("Dropdown1a").value;
var dropdown2 = this.getField("Dropdown2").value;
var dropdown2a = this.getField("Dropdown2a").value;
var dropdown3 = this.getField("Dropdown3").value;
var dropdown3a = this.getField("Dropdown3a").value;
var dropdown4 = this.getField("Dropdown4").value;
var dropdown4a = this.getField("Dropdown4a").value;
var dropdown5 = this.getField("Dropdown5").value;
var dropdown5a = this.getField("Dropdown5a").value;
@invisiblek
invisiblek / tmp.c
Last active Aug 29, 2015 — forked from hadess/tmp.c
Hack to control the keyboard backlight level on a ideapad y50
View tmp.c
/* gcc -o tmp `pkg-config --libs --cflags glib-2.0` tmp.c
*
* # modprobe ec_sys
*
* # watch -n 0.1 hexdump -C /sys/kernel/debug/ec/ec0/io
*
* Modified for ideapad y50
*
* 00000000 00 00 00 03 00 00 28 00 10 10 80 00 08 43 00 00 |......(......C..|
View gist:c0631968f60f8d0e5b3a
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="ssh://git@d2tehp.chickenkiller.com:22123" name="gitlab" />
<remote fetch="git://codeaurora.org/quic/la/" name="caf" />
<project name="CyanogenMod/hudson" path="hudson" remote="github" revision="master" />
<project name="invisiblek/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-12.0_working" />
<!-- hals -->
You can’t perform that action at this time.