michael@slashetc:~$

  • There’s A Computer In This Hard Drive

    Throughout the history of personal computers, there are some unique form factors. The 3com Audrey was sold as a computing appliance, meant to sit on a kitchen counter, to display recipes or something. For some reason, Macs were cubes once, and it actually wasn’t a bad machine. At one point,...

  • Generate Random Text based on Length

    $ genRandomText() { local n=$1; while [ $((n--)) -gt 0 ]; do printf "x$(printf %x $((RANDOM % 26 + 65)))" ; done ; echo ; }</p> View this command to comment, vote or add to favourites View all commands by ginochen Diff your entire server config at ScriptRock.com </div> Read...

  • Calculate days on which Friday the 13th occurs

    $ for y in $(seq 1996 2018); do echo -n "$y -> "; for m in $(seq 1 12); do NDATE=$(date --date "$y-$m-13" +%w); if [ $NDATE -eq 5 ]; then PRINTME=$(date --date "$y-$m-13" +%B);echo -n "$PRINTME "; fi; done; echo; done</p> I removed the dependency of the English language...