This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cradle: | |
stack: | |
- path: "X11/./" | |
component: "X11:lib" | |
- path: "X11-xft/./" | |
component: "X11-xft:lib" | |
- path: "xmonad/src" | |
component: "xmonad:lib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/_build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import frida | |
import sys | |
package_name = "com.strava" | |
def get_messages_from_js(message, data): | |
print(message) | |
print (message['payload']) | |
