Skip to content

Instantly share code, notes, and snippets.

View zanshin's full-sized avatar
💭
Making mistakes so you don't have to since 1961.

Mark Nichols zanshin

💭
Making mistakes so you don't have to since 1961.
View GitHub Profile
@zanshin
zanshin / console.txt
Created October 3, 2017 03:16
rake watch
[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 June 16, 2017 04:21 — forked from romainl/_rnb.md
RNB, a Vim colorscheme template
<%
# 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.
(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 03:48
Access Github securely even when port 22 is blocked.
# vim ~/.ssh/config
Host github.com
Hostname ssh.github.com
Port 443
@zanshin
zanshin / log
Created February 18, 2016 23:06
result of apt-get install docker-engine
$ sudo apt-get install docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
Recommended packages:
yubico-piv-tool
The following NEW packages will be installed:
docker-engine
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 0 B/8,572 kB of archives.
@zanshin
zanshin / bashrc
Created January 5, 2016 17:14
Bash prompt showing Git status
# Import some colors
source ~/.dotfiles/bash/colors
# Variables used in building the Git status portiion of the prompt
GIT_PROMPT_SYMBOL="${Blue}±"
GIT_PROMPT_PREFIX="${Green} [${Color_Off}"
GIT_PROMPT_SUFFIX="${Green}]${Color_Off}"
GIT_PROMPT_AHEAD="${BRed}ANUM${Color_Off}"
GIT_PROMPT_BEHIND="${Cyan}BNUM${Color_Off}"
GIT_PROMPT_MERGING="${Red}⚡︎${Color_Off}"
Verifying that +zanshin is my blockchain ID. https://onename.com/zanshin
# -------------------------------------------------------------------
# Color
# -------------------------------------------------------------------
# add colors to terminal (see man ls for details)
CLICOLOR=1
# Order:
# 1. directory, 2. symbolic link, 3. socket, 4. pipe, 5. executable, 6. block special, 7. character special
# 8. executabel with setuid bit set, 9. executable with setgid bit set, 10. directory writable to others, with sticky bit
# 11. directory writable to others, without sticky bit
#
$ speedtest_cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Kansas State University (129.130.48.12)...
Selecting best server based on latency...
Hosted by Wamego Telephone Company (Wamego, KS) [21.96 km]: 13.792 ms
Testing download speed........................................
Download: 79.72 Mbits/s
Testing upload speed..................................................
Upload: 29.65 Mbits/s
@zanshin
zanshin / homedirs
Created December 11, 2014 15:51
iterate over resource_collection
homedirs = []
run_context.resource_collection.each { |resource|
puts resource.cookbook_name
if resource.is_a(Chef::Resource::File) && resource.cookbook_name == 'myCookbook'
homedirs << resource
end
}