This file contains hidden or 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
| w3m -T text/html -dump | less |
This file contains hidden or 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
| rtmp { | |
| server { | |
| listen 1935; | |
| chunk_size 4000; | |
| application $STREAMNAME { | |
| live on; | |
| } | |
| } | |
| } |
This file contains hidden or 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
| // firefox only | |
| (async () => { for (const x of document.querySelectorAll("img:-moz-broken")) { x.src = x.src; await new Promise(r => setTimeout(r, 100)); console.log(x) }; console.log("done") })() | |
| // generic | |
| (async () => { for (const x of document.querySelectorAll("img")) { if (!x.naturalWidth) { x.src = x.src; await new Promise(r => setTimeout(r, 100)); console.log(x) } }; console.log("done") })() |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| args=() gitdir=. excl='.git|*~' | |
| oldpwd="$PWD" | |
| while [ "$PWD" != / -a "$PWD" != // ]; do | |
| if [ -e .git ]; then | |
| gitdir="$PWD"; break | |
| fi | |
| cd .. |
This file contains hidden or 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
| [...document.getElementsByTagName("img")].forEach(x => { if (x.dataset.src) x.src = x.dataset.src }) |
This file contains hidden or 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
| map $'http https://api.github.com/users/obfusk/repos?page=$it | jq \'.[] | "\(.name) @ \(.homepage)"\'' {1..6} | less |
This file contains hidden or 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
| unbuffer hub issue -f '%sC%>(4)%i%Creset %t [%L]%n' | sed 's/enhancement/enh/; s/good first issue/1st/; s/help wanted/help/' |
This file contains hidden or 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
| ack | |
| grc | |
| htop | |
| jq | |
| tree | |
| xclip | |
| moreutils # vidir, pee, sponge, ... | |
| bat |
This file contains hidden or 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
| compile: -prof -fprof-auto -rtsopts | |
| run: +RTS -hc -L60 -xt | |
| graph: hp2ps -c foo.hp |
This file contains hidden or 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 System.Environment | |
| import qualified Data.ByteString as BS | |
| import qualified Data.ByteString.UTF8 as UTF8 | |
| escapeURL :: String -> String | |
| escapeURL = UTF8.toString . BS.concatMap (BS.pack . f) . UTF8.fromString | |
| where | |
| f c | alnum c || c `elem` [45,95,46,126] {- "-_.~" -} = [c] | |
| | otherwise = h c |