Skip to content

Instantly share code, notes, and snippets.

View bennofs's full-sized avatar
🎯
Focusing

Benno Fünfstück bennofs

🎯
Focusing
View GitHub Profile
@bennofs
bennofs / keybase.md
Created August 2, 2019 19:16
keybase.md

Keybase proof

I hereby claim:

  • I am bennofs on github.
  • I am bennofs (https://keybase.io/bennofs) on keybase.
  • I have a public key ASADrX5aq3SMqRLWif2ffaklwmU4B6AvU0XkuQywqnJqwwo

To claim this, I am signing this object:

2017-12-10 18:25:46,567 [d thread 4] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /nix/store/ra54mj52cazya9jl8vjdkccj4a6qvpvn-android-studio/jre
2017-12-10 18:25:46,568 [d thread 4] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /nix/store/ra54mj52cazya9jl8vjdkccj4a6qvpvn-android-studio/jre
2017-12-10 18:25:46,576 [d thread 4] INFO - oject.common.GradleInitScripts - init script file sync.local.repo contents "allprojects {\n buildscript {\n repositories {\n maven { url '/nix/store/ra54mj52cazya9jl8vjdkccj4a6qvpvn-android-studio/gradle/m2repository'}\n }\n }\n repositories {\n maven { url '/nix/store/ra54mj52cazya9jl8vjdkccj4a6qvpvn-android-studio/gradle/m2repository'}\n }\n}\n"
2017-12-10 18:25:46,578 [d thread 4] INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: -Didea.version=3.0 -Djava.awt.headless=true -Pandroid.injected.build.model.only=true -Pandroid.injected.build.model.only.
#!/usr/bin/env python3
import argparse
import shutil
import sys
from hashlib import sha256
from zipfile import ZipFile
# download latest OTA from https://www.oneplus.com/support/softwareupgrade
# this has been extracted from OnePlus5TOxygen_43_OTA_038_all_1808082017_453d65d4235346a0.zip
@bennofs
bennofs / fuzz.c
Last active December 9, 2018 14:37
notes.py
#include <glib.h>
#include <pango/pango.h>
#include <pango/pangocairo.h>
#include <fribidi/fribidi.h>
void dumphex(char* ptr, int n) {
while (*ptr && n) {
printf("%02hhx ", *ptr);
ptr += 1;
n -= 1;
Running Sphinx v1.8.1
[app] setting up extension: 'sphinx.builders.applehelp'
[app] setting up extension: 'sphinx.builders.html'
[app] adding builder: <class 'sphinx.builders.html.StandaloneHTMLBuilder'>
[app] adding builder: <class 'sphinx.builders.html.DirectoryHTMLBuilder'>
[app] adding builder: <class 'sphinx.builders.html.SingleFileHTMLBuilder'>
[app] adding builder: <class 'sphinx.builders.html.PickleHTMLBuilder'>
[app] adding builder: <class 'sphinx.builders.html.JSONHTMLBuilder'>
[app] adding config value: ('html_theme', 'alabaster', 'html')
[app] adding config value: ('html_theme_path', [], 'html')
15:17:42.454 engine.io-client:polling polling +1ms browser.js:138
15:17:42.454 engine.io-client:polling-xhr xhr poll +476ms browser.js:138
15:17:42.454 engine.io-client:polling-xhr xhr open GET: http://localhost:5000/socket.io/?EIO=3&transport=polling&t=MMG8Tgt&sid=f099e93c52f1439a9561441cde88dd94 +0ms browser.js:138
15:17:42.455 engine.io-client:polling-xhr xhr data null +1ms browser.js:138
15:17:42.456 engine.io-client:socket probe transport "websocket" pong +1ms browser.js:138
15:17:42.456 engine.io-client:socket pausing current transport "polling" +0ms browser.js:138
15:17:42.456 engine.io-client:polling we are currently polling - waiting to pause +1ms browser.js:138
15:17:43.379 socket.io-client:manager writing packet {"type":2,"data":["add_group","x"],"options":{"compress":true},"nsp":"/modules/organisation"} +2s browser.js:138
15:17:43.379 socket.io-parser encoding packet {"type":2,"data":["add_group","x"],"options":{"compress":true},"nsp":"/modules/organisation"} +2s browser.js:138
15:17:43.379 socket
@bennofs
bennofs / ghc-mod-github.nix
Created April 26, 2015 12:45
Overriding with haskell-ng
{}: # nix-env expects a function
let
# Get nixpkgs (in configuration.nix, use pkgs for this, but this file is standalone
# to test it easier so we have to manually import nixpkgs)
pkgs = import <nixpkgs> {};
# First, get the haskell packages from nixpkgs. In configuration.nix, you
# can use pkgs.haskellngPackages for this of course.
haskellngPackages = pkgs.haskellngPackages;
FpzbgAQYgAS_sZsyMDJdtTmzUyx3OM4tG7MyrNY2tSJfs-Wxei4JN_OtxbWirTKdvTDmNCEurTSKLqiyEjPxshk19jpVL9y2kan5tHcylDAgtbE2hy1SMs0nmrYas4KymDLLN_UpTjUTs_46BKwUtwE4Fy1INj4m1qj1Lpio-zKjNvmtp7inMTm3bjjrr-y4PbCRN5A2AzcsN1O0CznbrSYuXCyotDEyFi0ttKgpvqxVMn0wDDcZuDmwc7MfrXazAKhoMPG3EjYfOP-ha7GrLxc4GS7ht3WsnDE4M9Qv9bNUrRmhZC3hsDA06qyXqt2udjYlsTA1HTlDuQy4IzcHqJSp9LRtMOE4szUvNsuzN7ClNCIzz6DSthO4Ha6gt1c3RDj-KOowxbeurDy2M7ZiLNesjLneL6kfdLQQuSWvhrLHKaE41TRLNDOlmDKJMFixNLYjtUqzmrJGNrKuxTOGtxu4HiBNL0Uz0SnNOeYyyDA9NnS4Tza3qBG63TOvK06zaDMrOBs36rSWOBm1C7Mnsfg2LTbAGbEd5jXmNCaoUbVNKSKpDTSENLGzpq3dMCAw6y_Ys1w0FjRrNIk5LzObtg60dLNLMW2zvrOqrMie5jL_MnC0ubiMqwAu-TAStiIiGTQoOHCxcaAuMYKtb7b6MHAyMKyCJ9-zOiygOKOyCrRTtl25hTU8Mx3AGqBSF0AKxOigAAAAF0AJH6UgAAAAFz_6X20gAAAAFVYVpxEdwB67MB0-6r04Gf0UQIpXXECGpIZAes_IQHD-W0BqEKdAZ9U_QF3iLUBbqRNAWMSVQFYnRUBUHlFAUIU6QE4nMUBKzfhASP0pQDqtqEAydv9ALDRrQCbHxEAV0441AAjIAQdkZjMtZjE2AA
@bennofs
bennofs / xmega-test
Created March 6, 2018 17:18
r2 testcase
We couldn’t find that file to show.
<BV Concat (
<BV BVV (
32,
8
)>,
<BV widen (
<BV union (
<BV BVV (
0,
8