Skip to content

Instantly share code, notes, and snippets.

<?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 -->
@invisiblek
invisiblek / tmp.c
Last active August 29, 2015 14:27 — forked from hadess/tmp.c
Hack to control the keyboard backlight level on a ideapad y50
/* 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..|
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;
#!/usr/bin/python2
import sys
import mmap
ext4Magic = '\x53\xEF'
ext4MagicOffset = 1080
if len(sys.argv) < 3:
print("No I/O supplied")