Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am spezd on github.
  • I am spezd (https://keybase.io/spezd) on keybase.
  • I have a public key ASDefshm-Wule-jCyOFdgzIAKW7p5SGNMlTJXh1zTU8QWgo

To claim this, I am signing this object:

@spezd
spezd / jenkins-plugin-upgrade.groovy
Created March 11, 2019 22:08
Upgrade all Jenkins Plugins
/**
* This script prints updates all installed Jenkins Plugins with the latest version.
*
* Run this script using the Script Console (via http://<jenkins-url:port>/script)
*/
import jenkins.model.Jenkins;
pm = Jenkins.instance.pluginManager

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your o

@spezd
spezd / vps-bench.sh
Last active December 4, 2018 23:42
VPS Benchmark script
#!/bin/bash
#####################################################################
# Benchmark Script 2 by Hidden Refuge from FreeVPS #
# Copyright(C) 2015 - Hidden Refuge #
# License: GNU General Public License 3.0 #
# Github: https://github.com/hidden-refuge/bench-sh-2 #
#####################################################################
# Original script by akamaras/camarg #
# Original: http://www.akamaras.com/linux/linux-server-info-script/ #
# Original Copyright (C) 2011 by akamaras/camarg #
@spezd
spezd / freebsd-update.sh
Last active December 4, 2018 23:42
FreeBSD update script.
#!/bin/sh
LOG_FILE="/var/log/freebsd-update.log"
echo "Starting updates: `date`" | tee -a ${LOG_FILE}
echo "***"
echo "*** Checking for FreeBSD patches..."
echo "***"
/usr/sbin/freebsd-update fetch | tee -a ${LOG_FILE}
/usr/sbin/freebsd-update install | tee -a ${LOG_FILE}
@spezd
spezd / ssh-multi.sh
Created January 21, 2016 07:55 — forked from dmytro/ssh-multi.sh
Start multiple synchronized SSH connections with Tmux
#!/bin/bash
# ssh-multi
# D.Kovalov
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html
# a script to ssh multiple servers over multiple tmux panes
starttmux() {
if [ -z "$HOSTS" ]; then
@spezd
spezd / handlebars.prettyDate.js
Created January 13, 2016 03:58 — forked from ryndel/handlebars.prettyDate.js
Handlebars.js: prettyDate helper #cc #handlebars
Handlebars.registerHelper("prettyDate", function (time) {
var date = new Date((time || "")),
diff = (((new Date()).getTime() - date.getTime()) / 1000),
day_diff = Math.floor(diff / 86400);
// exit now if not a number...
if ( isNaN(day_diff)) return;
if ( day_diff < 0 ){
// this is in the future...
@spezd
spezd / tmux-cheatsheet.markdown
Created January 10, 2016 01:27 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@spezd
spezd / tmux-color.conf
Last active December 4, 2018 23:42
Tmux configuration
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# set window split
bind-key v split-window -h
bind-key b split-window
# default window title colors