Skip to content

Instantly share code, notes, and snippets.

@linse
linse / HOWTO.md
Last active August 7, 2020 05:01
Free your Android!

Today we learn more about our Android devices and about the possibility to install an alternative operating system for them. First, we learn how to speak to our device from the computer.

Connect a Device and look at it via USB

  • plug in USB
  • on Mac: system_profiler SPUSBDataType
  • on Linux: lsusb and lsusb -a

My device shows up like this:

@linse
linse / Comment0.txt
Last active August 29, 2015 14:21
🐞zeckernews
commentserver is a daemon now :)

Hirschtalg is the only Drug.

"Mammutmarsch 2016, 100 km in 24h, zu Fuss." Zwei Menschen in meiner Timeline schrieben darüber und ich schrieb "Das klingt nach einer Herausforderung, soll ich ja klicken?". Jaaa. Klick. Was hab ich mir da eingebrockt?

Bei der ersten Trainingswanderung im Regen mit @Mirabellensaft schafften wir 14 km, und dann wollte der Rücken nicht mehr. Nach einem Gang zum Arzt erfuhr ich dass ich allein wandern werde. Mir tat das sehr leid, durch @Mirabellensaft und @Mamsellchaos Idee war ich ja darauf gekommen.

Ich hatte nun aber Blut geleckt, ich wandere wirklich gern, und trotz Regen war das Umland toll gewesen! Im Internet fand ich dann die Trainingswanderungen von Carola und iher Gruppe "earnyourbacon". Meine Rettung. :-D Und die waren schon voll im Training! Puh. Ich klinkte mich für die nächste Wanderung ein, und es war super mit der riesigen Gruppe über den Teufelsberg und durchs Umland zu fegen. Durch die große Gruppe war jedes Tempo vertreten. 45 km war allerdings eine Ansag

var _33C3=["\x74\x65\x78\x74\x5F\x68\x6F\x6C\x64\x65\x72","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x66\x6E\x61\x71\x5F\x68\x6F\x6C\x64\x65\x72","\x6C\x6F\x67\x6F","\x66\x72\x61\x6D\x65","\x69\x66\x72\x61\x6D\x65","\x63\x6C\x61\x69\x6D","\x6C\x69\x6E\x67\x75\x61","\x6C\x61\x6E\x67","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x43\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x73\x63\x68\x72\x6F\x65\x64\x69\x6E\x67\x65\x72\x5F\x65\x6E","\x73\x63\x68\x72\x6F\x65\x64\x69\x6E\x67\x65\x72\x5F\x64\x65","\x6B\x65\x69\x6E\x73\x70\x69\x65\x6C\x5F\x64\x65","\x70\x61\x73\x73\x77\x6F\x72\x64\x65\x72","\x70\x61\x73\x73\x77\x6F\x72\x64","\x6B\x65\x69\x6E\x73\x70\x69\x65\x6C","\x63\x6C\x69\x63\x6B","\x68\x69\x64\x64\x65\x6E","\x72\x65\x6D\x6F\x76\x65","\x63\x6C\x61\x73\x73\x4C\x69\x73\x74","\x66\x6F\x63\x75\x73","\x70\x72\x65\x76\x65\x6E\x74\x44\x65\x66\x61\x75\x6C\x74","\x73\x74\x6F\x70\x49\x6D\x6D\x65\x64\x69\x61\x74\x65\x50\x72\x6F\x70\x61\x67\x61\x74\x69\x6F\x6E","\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x6
@linse
linse / keybase.md
Created January 2, 2017 09:11
keybase.md

Keybase proof

I hereby claim:

  • I am linse on github.
  • I am linse (https://keybase.io/linse) on keybase.
  • I have a public key whose fingerprint is ED52 53D2 E435 7C20 A1A4 81D5 26A9 D366 F9AD 5AA0

To claim this, I am signing this object:

@linse
linse / Make a debian package
Last active August 7, 2017 19:26
Make a debian package
4198 mkdir packaging
4199 cd packaging
4202 sudo apt-get install dh-make
4204 sudo apt-get install debmake
4205 mkdir hello
4206 vim hello.c
4239 gcc -o hello hello.c
4246 ./hello
4252 vim Makefile
4253 make

In March 2018, I attended my first MirageOS hack retreat in Morrocco. MirageOS is a library operating system which allows everyone to build very small, specialized operating system kernels that are intended to run directly on the virtualization layer. The application code itself is the guest operating system kernel, and can be deployed at scale without the need for an extra containerization step in between. It is written in OCaml and each kernel is built only with exactly the code that is necessary for the particular application. A pretty different approach from traditional operating systems. Linux feels huge all of a sudden.

I flew in from New York via Casablanca to Marrakesh, and then took a cab to the city center, to the main square, Jemaa El Fnaa. At Cafe de France, Hannes was picking me up and we walked back thro

diff --git a/src/data.ml b/src/data.ml
index 63c4518..a79a659 100644
--- a/src/data.ml
+++ b/src/data.ml
@@ -150,6 +150,11 @@ module People = struct
email = None;
}
+ let linse = {
+ Atom.name = "Stefanie Schirmer"
let expand_event range exceptions timezones ((props: Icalendar.eventprop list), alarms) =
let f acc dtstart =
let recur_id : Icalendar.eventprop = match List.find_opt (function `Dtstart (prop, v) -> true | _ -> false) props with
| None -> assert false
| Some (`Dtstart (props', v)) ->
let props'', v' = normalize_date_or_datetime props' timezones (`Datetime (dtstart, false)) in
let id = function
| `Iana_param (a, b) -> `Iana_param (a, b)
| `Tzid (a, b) -> `Tzid (a, b)
| `Valuetype v -> `Valuetype v
cat moby_dick.txt | tr -d '\r“’‘”' | tr "\n" " " | tr -s ' ' | less
cat moby_dick.txt | tr -d '\r“’‘”' | tr "\n" " " | tr -s ' ' | sed 's/e/aaaaa/g' | less
# one sentence per line
cat moby_dick.txt | tr -d '\r“’‘”_' | tr "\n" " " | tr "—" " " | tr "-" " " | tr -s ' ' | sed 's/\./.\
/g' | sed 's/\!/!\
/g' | sed 's/\?/?\
/g' | less | sort | uniq -c | sort -n
# one word per line