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
#!/usr/bin/env bash | |
# https://download.samba.org/pub/rsync/rsync.1 | |
# | |
# --archive: same as "-rlptgoD": | |
# -r: recurse into directories | |
# -l: copy symlinks as symlinks | |
# -p: preserve permissions | |
# -t: preserve modification times | |
# -g: preserve group |
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 | |
echo "Orphaned packages:\n" | |
for BREW_PKG in $(brew list --formula -1) | |
do | |
BREW_USES_PKG=$(brew uses $BREW_PKG --installed --recursive) | |
if [ -z "$BREW_USES_PKG" ] | |
then | |
echo "$BREW_PKG" |
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 matplotlib.pyplot as plt, matplotlib.animation as animation, numpy as np | |
# use oscilloscope-like style and hide matplotlib toolbar for more space | |
from matplotlib import rcParams | |
plt.style.use('dark_background'); rcParams['toolbar']='None' | |
N_ROWS = 12; N_COLS = 2 | |
N_POINTS = 250 # number of points in each line | |
interval = 50 # in ms, interval of updating plots for FuncAnimation | |
N_XTICKLABELS = 10 |