Skip to content

Instantly share code, notes, and snippets.

View rbottomley's full-sized avatar
☂️
Freelancing

Robert Bottomley rbottomley

☂️
Freelancing
  • Norco, CA
View GitHub Profile
@rbottomley
rbottomley / crontab
Created May 20, 2021 18:34
Using rsnapshot to create scheduled snapshots
7 12,20 * * * /usr/local/sbin/snapshots hourly
30 21 * * * /usr/local/sbin/snapshots daily
5 22 * * sun /usr/local/sbin/snapshots weekly
7 9 1 * * /usr/local/sbin/snapshots monthly
7 10 1 7 * /usr/local/sbin/snapshots yearly
@rbottomley
rbottomley / wifi
Created May 20, 2021 18:11
Simplify nmcli usage to control wifi
#! /bin/bash
# Control wifi. Since I can never remember the arguments to nmcli, I made
# this command to simplify usage.
#
# Written by Robert Bottomley
#
# $Id: wifi,v 1.4 2021/05/20 18:05:55 bob Exp $
#
# $Log: wifi,v $
@rbottomley
rbottomley / .bashrc
Last active November 18, 2015 01:55
My git notes.
# Add to end of .bashrc. Uses git-prompt.sh from github to set branch in Bash prompt.
. ~/.git-prompt.sh
GIT_PS1_SHOWCOLORHINTS=1
PROMPT_COMMAND='__git_ps1 "\n\[\033[01;37;44m\]\u@\h \[\033[01;37;40m\] \d \$(date +%I:%M:%S%P)\n\[\033[01;33;40m\]\w" ">\[\033[00m\] " "(%s\[\033[01;33;40m\])"'