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
#!/bin/bash | |
# (C) 2008 Canonical Ltd. | |
# Author: Martin Pitt <martin.pitt@ubuntu.com> | |
# License: GPL v2 or later | |
# modified by David D Lowe and Thomas Detoux | |
# Debian 7 support by pixline <pixline@gmail.com> | |
# Cinnamon support by hackerb9 <hackerb9@gmail.com> | |
# 2016 major cleanup by hackerb9: cinnamon, debian 8, default extra groups, etc. | |
# |
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
#!/bin/bash | |
# lsix: like ls, but for images. | |
# Shows thumbnails of images with titles directly in terminal. | |
# Version 1.0 | |
# hackerb9, June 2017 | |
numcolors=16 # Number of colors in the palette, if TERM is not xterm |
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
# Neep is the loveliest bitmap terminal font I've found so far with good Unicode coverage. | |
# Unfortunately, neep has no italics. | |
# | |
# As a quick workaround, one can use the terminus-oblique font as a replacement by using X fonts.alias. | |
sudo apt-get install xfonts-jmk xfonts-terminus-oblique | |
echo "-jmk-neep-medium-o-normal--20-180-75-75-c-100-iso10646-1 -xos4-terminus-bold-o-normal--20-200-72-72-c-100-iso10646-1" > local.alias | |
echo "-jmk-neep-medium-o-normal--15-140-75-75-c-80-iso10646-1 -xos4-terminus-bold-o-normal--14-140-72-72-c-80-iso10646-1" >> local.alias | |
sudo cp -i local.alias /etc/X11/fonts/misc/local.alias \ |
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
Caption: -. point | |
Regular: -. point | |
Subhead: -. point | |
Display: -+ point | |
(For Adobe WarnockPro Opticals) |
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
#!/bin/sh | |
# nonraspbian - | |
# | |
# Find packages installed on my Pi which aren't from the official | |
# Raspberry Pi repositories. | |
aptitude search '?narrow(?installed,!?or(?origin("Raspberry Pi Foundation"),?origin("Raspbian")))' | |
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
#!/bin/bash | |
# Watch files in the current working directory (or given argument) | |
# display how much a file has grown in the last second (or so) | |
# B9 2018 | |
if [ -d "$1" ]; then | |
cd "$1" | |
shift | |
fi |
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
;;; -*- lisp -*- | |
;; Just for fun, playing around with making all my xterms lightly transparent. | |
;; NB: This makes titlebar and text transparent, too. | |
(if (is (window_class) "XTerm") | |
(spawn_async | |
(str "xprop -id " (window_xid) | |
" -f _NET_WM_WINDOW_OPACITY 32c" | |
" -set _NET_WM_WINDOW_OPACITY 0xf8000000"))) | |
;; Example: |
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
#!/bin/bash | |
# gist.sh from https://github.com/kathawala/gist | |
# A bash script meant to take in user input, craft an API call to Github's Gist | |
# API and send the request, with content and filename filled in by the user | |
#Sends error on script failure | |
set -o errexit | |
USER=-uhackerb9 |
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
If you want to give a link to a big PDF file, but you want it to open to some page by default, just append "#page=123". | |
http://harmonizer.s3.amazonaws.com/Harmonizer_vol59_no6_nov1999.pdf#page=40 |
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
/* Student's t-test (Two Independent Samples) */ | |
/* Implemented in GNU bc by hackerb9, 2018. */ | |
/* Copyright assigned to FSF. */ | |
/* | |
* | |
* µ₀ - µ₁ | |
* t = ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
* ⎡ ⎤ ½ | |
* ⎢ (ΣA² - (ΣA)²/n₀) + (ΣB² - (ΣB)²/n₁) ⎛ 1 1 ⎞ ⎥ |
OlderNewer