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/sh | |
| # "Spritz - a spongy RC4-like stream cipher and hash function" | |
| # http://people.csail.mit.edu/rivest/pubs/RS14.bib.txt | |
| # In case you're insane enough to use it, keep in mind that the registers | |
| # (i,j,...) have NO PREFIX, so you'll have to add it(_spritz_i, ...). | |
| # This script is meant to run on any POSIX shell with local variables | |
| # ("local" is not included in POSIX. Idiots!) and POSIX commands (printf(1)). | |
| # Bash,dash,mksh,zsh: see how fast they Absorb()/Drip() compared to vim... |
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/sh | |
| # Self-contained - get arc4random for emergencies. | |
| set -e # Not in "#!" to test different shells. | |
| # TODO figure out the source files automagically? | |
| test 0 -eq $(ls|wc -l) || { echo>&2 "run $0 in an empty directory"; exit 100; } | |
| # Fix $OS if needed (eg "win") | |
| if [ x = x"$OS" ] ; then | |
| OS=$(uname -s) |
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
| !!!!!!!!!!!!!!!!!!!!!!!!!! | |
| ! /etc/X11/app-defaults/ ! | |
| !!!!!!!!!!!!!!!!!!!!!!!!!! | |
| xvt*background: #000000 | |
| xvt*foreground: #fefefe | |
| yeahconsole*restart: 1 | |
| yeahconsole*toggleKey: Alt+y | |
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
| // A reimplementation of GNU shuf (think *BSD) | |
| // -- there was a shuffle(1) ages ago, but it got deleted. | |
| // GNU shuf goes out of its way to optimize anything it can | |
| // -- just see its treatment of --random-source! | |
| // this is *much* more simple minded - TLDR: use GNU shuf. | |
| // Seriously, its inspiration comes from: | |
| // 1. shuf on *BSD without installing coreutils; | |
| // 2. my router abandoning me for >30 minutes. | |
| package main |
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/sh | |
| # https://paludis.exherbo.org/faq/misfunctionality.html#wgetresume | |
| # true<<TIL => shellcheck usefully complains... | |
| til() { : ; } | |
| til<<TIL | |
| No Automatic Documentation Compression | |
| Non-Problem: Paludis doesn't compress documentation or man pages with gzip/bzip/whatever. | |
| Rationale: The space savings on an average system are very small, to non-existent for most filesystems. Most documentation and man pages are only about one block in size, so compression won't gain you anything except for wasted CPU cycles. |
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
| Just in case this happens to somebody else in the future, since search engines were not terribly helpful... | |
| if you run "sudo -n (whatever)" and get back | |
| error: prompt may be needed but -n given | |
| ... and search sudo's sources, and the message is not there... | |
| try "type sudo", chances are you're using UserLAnd on Android and they have | |
| nosudo installed as /usr/local/bin/sudo for some reason; | |
| running /usr/bin/sudo does what you wanted. |
OlderNewer