Skip to content

Instantly share code, notes, and snippets.

View booo's full-sized avatar

Philipp Borgers booo

View GitHub Profile
@tovask
tovask / Controll_android_only_usb.md
Last active January 23, 2024 17:38
get controll over Samsung Galaxy S4 (GT-I9505, totally broken screen, USB debug NOT enabled) from linux with the help of CWM and adb

My friend give me an android phone (Samsung Galaxy S4 I9505XXUHPK2) because he didn't want to use it any more. It was a perfectly working modern device with only one problem: it's screen was broken. It usually happens to big touch screen phone, that their screen get crashes somehow, but their other functionalities keep working fine. So i was happy, that i got a fully functionalling phone, until he describe that broken screen means it's totally broken: no touch detection and no display! But unless this small drawback, it seem to be all right: it automatically connented to a known wifi and it's alarm clock also turned on sometimes. But yet the only response from it was a status led in the top-left corner (witch helped to detect if it's currently booting); the backlight of the menu and the back button (witch was the only way to find out, if i just turned on or off the screen); and the vibration (witch was also indicated a boot start (, or a new mess

@barrucadu
barrucadu / stack.ll
Created January 13, 2014 12:00
Stack implementation in LLVM IR
; The stack pointer is going to be an index into the stack, and the
; stack is an array of words. The alternative would be to have the
; stack pointer me a pointer to memory, but this is perhaps a bit
; nicer, as where the stack actually lives is totally irrelevant.
@stack = global [1000 x i64] undef
@sp = global i64 undef;
; Now we have the basic stack operations: push, pop, and peek. As can
; be seen from the definitions, LLVM is typed, which is really nice as
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active April 30, 2024 04:42
A badass list of frontend development resources I collected over time.
@chadhutchins
chadhutchins / gist:1440602
Created December 6, 2011 23:36
Tarjan's strongly connected components algorithm in Javascript - followed pseudocode from http://en.wikipedia.org/wiki/Tarjan%E2%80%99s_strongly_connected_components_algorithm
window.onload = function() {
var v0 = new Vertex("0");
var v1 = new Vertex("1");
var v2 = new Vertex("2");
var v3 = new Vertex("3");
var v4 = new Vertex("4");
var v5 = new Vertex("5");
var v6 = new Vertex("6");
var v7 = new Vertex("7");
@jeremytregunna
jeremytregunna / linked-list.ll
Created August 14, 2011 00:18
Linked List in LLVM IR
;; Linked list implementation
;; I compile it like this on Mac OS X:
;
; llvm-as linked-list.ll
; llc linked-list.bc
; as linked-list.s -o linked-list.o
; ld /usr/lib/crt1.o linked-list.o -o linked-list -lSystem -macosx_version_min 10.6
;; Type aliases
%free_func = type void (i8*)*