Skip to content

Instantly share code, notes, and snippets.

View liskin's full-sized avatar
It's raining bugs.

Tomáš Janoušek liskin

It's raining bugs.
View GitHub Profile
import frida
import sys
package_name = "com.strava"
def get_messages_from_js(message, data):
print(message)
print (message['payload'])
@liskin
liskin / 32bit
Last active December 12, 2017 22:12
[tomi@notes ndm_gcc_memchr]$ ./Main
benchmarking 1 memchr_std
time 77.57 ns (77.38 ns .. 77.83 ns)
1.000 R² (1.000 R² .. 1.000 R²)
mean 78.02 ns (77.72 ns .. 78.67 ns)
std dev 1.446 ns (788.0 ps .. 2.725 ns)
variance introduced by outliers: 25% (moderately inflated)
benchmarking 1 strchr_std
time 54.00 ns (53.82 ns .. 54.24 ns)
@liskin
liskin / .gitignore
Last active April 23, 2020 13:50
frameclock
/_build/
Object.entries($('.mapboxgl-map')).find(([k, _]) => k.startsWith('__reactInternalInstance$'))[1].return.memoizedProps.mapboxRef((x) => (window._map = x, x))
_map.addLayer({id: "mapycz", type: "raster", source: {type: "raster", tiles: ["https://mapserver.mapy.cz/turist-m/{z}-{x}-{y}"], minzoom: 2, maxzoom: 18, tileSize: 256}}, 'global-heatmap')
STACK_EXEC = stack exec \
--package bloomfilter \
--package bytestring \
--package cassava
corona-bloom: corona-bloom.lhs
$(STACK_EXEC) -- ghc --make $<
ghci: corona-bloom.lhs
$(STACK_EXEC) -- ghci $<
#!/usr/bin/env bash
set -eu -o pipefail
shopt -s lastpipe
repo=~/src-haskell/xmonad-tmp
function mailmap-diff {
diff -au \
<(cd "$repo"; git shortlog --summary --email) \
cradle:
stack:
- path: "X11/./"
component: "X11:lib"
- path: "X11-xft/./"
component: "X11-xft:lib"
- path: "xmonad/src"
component: "xmonad:lib"
# SPDX-License-Identifier: CC0-1.0
# vim:set ft=snippets:
snippet spdx-0BSD "0BSD" b
`!v printf(&commentstring, "SPDX-License-Identifier: 0BSD")`
endsnippet
snippet spdx-ADSL "ADSL" b
`!v printf(&commentstring, "SPDX-License-Identifier: ADSL")`
endsnippet