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
#!/usr/bin/bash | |
# https://unix.stackexchange.com/questions/301434/rsync-only-new-files-from-a-remote-server | |
# Modified by anthonyclarka2 AT GMAIL 2017-08-30. | |
# Comments, criticism welcome. | |
# exclude file has basic wildcards like *i386* or *debug* | |
# I have not tested this with anything other than rsync daemons, YMMV | |
SOURCE="rsync://server.example.edu/test" | |
# Remember the slash at the end of the destination |
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 | |
# <bitbar.title>Pretty Epoch Time</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>Anthony Clark</bitbar.author> | |
# <bitbar.author.github>anthonyclarka2</bitbar.author.github> | |
# <bitbar.desc>Displays epoch (unix) time separated by commas.</bitbar.desc> | |
# <bitbar.image>http://i.imgur.com/ltLqOcy.png</bitbar.image> | |
EPOCH=$(/bin/date +%s | /usr/local/opt/gnu-sed/libexec/gnubin/sed ':a;s/\B[0-9]\{3\}\>/,&/;ta') |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# | |
# Vagrantfile to create a CentOS 7 master and 3 nodes | |
# | |
# These VMs can be useful for prototyping new systems such | |
# as monitoring, mail, configuration management, load balancing | |
# etc etc. | |
# | |
# You will need a Puppet directory structure inside the |
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 | |
# Enhanced backup script | |
# Sends messages to Zabbix based on exit code of borg executable | |
# | |
# anthonyclark AT G MAIL | |
# Shellcheck will still kvetch at you if notices are enabled | |
# | |
# This script will not work AS-IS but is only provided as such | |
# NO WARRANTIES | |
# This work is licensed under a Creative Commons Attribution 4.0 International License. |
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
// Atom styles.less | |
// anthonyclarka2 AT G MAIL | |
// 2018-08-03 | |
// Atom theme used is Solarized Light | |
@import "ui-variables"; | |
@import "syntax-variables"; | |
// does exactly what the package name suggests: | |
@import "packages/red-wavy-underline/styles/red-wavy-underline"; |
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
# Solarized colours | |
function tab_sol_yellow { set_iterm_title "$1"; tab_color 181 137 0; } | |
function tab_sol_orange { set_iterm_title "$1"; tab_color 203 75 22; } | |
function tab_sol_red { set_iterm_title "$1"; tab_color 220 50 47; } | |
function tab_sol_magenta { set_iterm_title "$1"; tab_color 211 54 130; } | |
function tab_sol_violet { set_iterm_title "$1"; tab_color 108 113 196; } | |
function tab_sol_blue { set_iterm_title "$1"; tab_color 38 139 210; } | |
function tab_sol_cyan { set_iterm_title "$1"; tab_color 42 161 152; } | |
function tab_sol_green { set_iterm_title "$1"; tab_color 133 153 0; } |
NewerOlder