Skip to content

Instantly share code, notes, and snippets.

💭
Making mistakes so you don't have to since 1961.

Mark Nichols zanshin

💭
Making mistakes so you don't have to since 1961.
Block or report user

Report or block zanshin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zanshin
zanshin / i3 config
Created Apr 24, 2018
i3-gaps and Polybar configurations
View i3 config
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
# Some colors
# Argonaut colors
# Black / Bright Black
set $color0 #232323
set $color8 #444444
@zanshin
zanshin / .nvim_background
Last active Mar 29, 2018
Base16 color switcher for Neovim
View .nvim_background
if !exists('g:colors_name') || g:colors_name != 'base16-chalk'
colorscheme base16-chalk
endif
View .nvim_background
if !exists('g:colors_name') || g:colors_name != 'base16-solarized-dark'
colorscheme base16-solarized-dark
endif
View mailboxes.muttrc
set folder=~/.mail
mailboxes +”foo”
# find sorts things in strange ways. for example: Lists will come after
# Lists/Atomic, here the printf prints the name of the folder we need, and the
# folder's depth. Numeric sort on the depth first, then the name, then do some
# cleanup (escape any spaces in the directory name and then print all the
# mailboxes on 1 line)
mailboxes `find ~/.mail/foo/ -type d -name cur -printf '%h\t%d\n'| sort -n | tr ' ' '\\ ' | awk -F'\t' '{ ORS=" "}{ print $1 }'`
@zanshin
zanshin / gpgcommon.muttrc
Created Mar 17, 2018
GPG settings for mutt
View gpgcommon.muttrc
set pgp_decode_command = "gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command = "gpg --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command = "gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
set pgp_sign_command = "gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command = "gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_import_command = "gpg --no-verbose --import -v %f"
set pgp_export_command = "gpg --no-verbose --export --armor %r"
set pgp_verify_key_command = "gpg --no-verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command = "gpg --no-verbose --batch --with-colons --list-keys %r"
set pgp_list_secring_command = "gpg --no-verbose --batch --with-colons --list-secret-keys %r"
@zanshin
zanshin / path
Created Mar 5, 2018
Bash path function to display a neatly formatted and color coded path breakdown
View path
path() {
local blue="\033[1;34m"
local green="\033[0;32m"
local cyan="\033[0;36m"
local purple="\033[0;35m"
local brown="\033[0;33m"
local reset_color="\033[0m"
echo $PATH | tr ":" "\n" | \
awk "{ sub(\"/usr\", \"$green/usr$reset_color\"); \
sub(\"/bin\", \"$blue/bin$reset_color\"); \
View console.txt
[0s] $ rake watch
WARN: Unresolved specs during Gem::Specification.reset:
ffi (< 2, >= 0.5.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Configuration file: /Users/mark/code/zanshin/_config.yml
Source: /Users/mark/code/zanshin
Destination: /Users/mark/code/zanshin/_site
Incremental build: disabled. Enable with --incremental
Generating...
@zanshin
zanshin / rnb.erb
Created Jun 16, 2017 — forked from romainl/rnb.erb
RNB, a Vim colorscheme template
View rnb.erb
<%
# RNB, A VIM COLORSCHEME TEMPLATE
# Author: Romain Lafourcade (https://github.com/romainl)
# Canonical URL: https://gist.github.com/romainl/5cd2f4ec222805f49eca
# This template is designed to help vimmers create their own colorschemes
# without much effort.
#
# You will need Ruby to generate your colorscheme but Ruby knowledge is
# not needed at all.
View set -x
(17:38:00) $ sudo /etc/init.d/rabbitmq-server start
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ NAME=rabbitmq-server
+ DAEMON=/usr/lib/rabbitmq/bin/rabbitmq-server
+ CONTROL=/usr/sbin/rabbitmqctl
+ DESC=rabbitmq-server
+ USER=rabbitmq
+ ROTATE_SUFFIX=
+ INIT_LOG_DIR=/var/log/rabbitmq
+ PID_FILE=/var/run/rabbitmq/pid
@zanshin
zanshin / config
Created May 7, 2016
Access Github securely even when port 22 is blocked.
View config
# vim ~/.ssh/config
Host github.com
Hostname ssh.github.com
Port 443
You can’t perform that action at this time.