Skip to content

Instantly share code, notes, and snippets.

View kwatson's full-sized avatar

Kris Watson kwatson

View GitHub Profile
@kwatson
kwatson / .zshrc
Created March 7, 2022 01:15
ZSH alias for nova
# original nova does not support tab-completion, with this you can type `nva RE<TAB>` and have it correctly tab-complete the full file name.
nva() {
/Applications/Nova.app/Contents/SharedSupport/nova $*
}
@kwatson
kwatson / rclone-cron.sh
Last active December 9, 2021 20:07 — forked from christippett/rclone-cron.sh
An rclone backup script for cron
#!/bin/bash
##############################################################################
# An rclone backup script by Chris Tippett (c.tippett@gmail.com)
#
# Originally adapted from the great work by Jared Males (jaredmales@gmail.com)
# https://gist.github.com/jaredmales/2f732254bb10002fc0549fa9aa0abdd7
#
# Copyright (C) 2020 Chris Tippett (c.tippett@gmail.com)
#
@kwatson
kwatson / .tmux.conf
Created January 25, 2021 05:10
tmux
#
# Custom tmux commands for remote servers
#
# Copy this to ~/.tmux.conf to enable
#
set -g history-limit 50000
set -g mouse on
# Make splitting and resizing panes, and moving around emulate the vim
@kwatson
kwatson / calico-ipam.service
Created January 25, 2018 20:17
calico-ipam.service
[Unit]
Description=calico-ipam
Before=docker.service
[Service]
EnvironmentFile={{ calico_ipam_conf }}
ExecStart={{ calico_ipam_exec }}
Restart=always
RestartSec=5

Keybase proof

I hereby claim:

  • I am kwatson on github.
  • I am kwatson (https://keybase.io/kwatson) on keybase.
  • I have a public key ASDCmxmX7RPztelxdZnEiXuyfM76eujsCBMsuXNifC9zfAo

To claim this, I am signing this object:

Verifying that "kwatson.id" is my Blockstack ID. https://onename.com/kwatson
# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.
#!/bin/bash
#
# MySQL Backup Script
# VER. 2.5 - http://sourceforge.net/projects/automysqlbackup/
# Copyright (c) 2002-2003 wipe_out@lycos.co.uk
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.