start new:
tmux
start new with session name:
tmux new -s myname
# INSTALL INSTRUCTIONS: save as ~/.gdbinit | |
# | |
# DESCRIPTION: A user-friendly gdb configuration file. | |
# | |
# REVISION : 7.3 (16/04/2010) | |
# | |
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit, | |
# truthix the cyberpunk, fG!, gln | |
# | |
# FEEDBACK: https://www.reverse-engineering.net |
#!/usr/bin/env runhaskell | |
{- | |
Print monthly average cashflow by account. | |
$ average-cashflow.hs YEAR [JOURNALFILE] | |
-} | |
module Main where |
#!/bin/sh | |
echo "ZFS listing:" | |
/sbin/zfs list | |
echo | |
echo "ZFS compression ratio:" | |
/sbin/zfs get compressratio | /bin/grep -v @ | |
echo | |
I googled around, especially with site:news.ycombinator.com
for backup recommendations.
Here are notes on the top hits.
# apt-get install sudo
# List jessie* http://mirror.yandex.ru/debian/dists/
sudo sed -i 's/wheezy/jessie/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade # first only upgrade (safe)
sudo apt-get dist-upgrade
sudo apt-get install firmware-realtek
#!/bin/sh | |
SESSIONSTORE="<path to Firefox profile dir>/<profile>.default/sessionstore.js" | |
TARGET="<some secure/synced location>/sessionstore" | |
# TODO: add other files here (bookmarks?) | |
FORMAT=`date +%Y-%m-%d` | |
cp "${SESSIONSTORE}" "${TARGET}/${FORMAT}_sessionstore.js" |
#!/usr/bin/python | |
import ledger | |
import sys | |
import re | |
def account_name(post): | |
account = post.account.fullname().replace(" ","").replace("(","").replace(")","").replace("'","") | |
return re.sub(r'\:(\d)',r':X\1', account) | |
find . -type f -exec filefrag {} \; | sed -r 's/(.*)\: ([0-9]+) extents? found/\2 - \1/g' | sort -nr |