Skip to content

Instantly share code, notes, and snippets.

@ksexton
ksexton / InstallBerkshelfOnCygwin.md
Created December 10, 2015 16:43 — forked from DQNEO/InstallBerkshelfOnCygwin.md
How to Install Berkshelf version3 on Cygwin 64bit

How to Install Berkshelf version3 on Cygwin 64bit

Installation of Berkshelf v3 on Cygwin is known to be very diffcult, but I have finally found the way. 😄

You can successfully install it by following the procedure below.

(As at 2014/6/8, v3.1.3 is available)

Why is it so difficult ?

tail -1 ~/.tmux.conf ~/.vimrc ~/.zshrc
==> /Users/kes/.tmux.conf <==
source /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
==> /Users/kes/.vimrc <==
source /usr/local/lib/python2.7/site-packages/powerline/bindings/vim/plugin/powerline.vim
==> /Users/kes/.zshrc <==
source /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
user> (pprint (map collatz (range 1 11)))
((1)
(2 1)
(3 10 5 16 8 4 2 1)
(4 2 1)
(5 16 8 4 2 1)
(6 3 10 5 16 8 4 2 1)
(7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1)
(8 4 2 1)
(9 28 14 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1)

Keybase proof

I hereby claim:

  • I am ksexton on github.
  • I am kes (https://keybase.io/kes) on keybase.
  • I have a public key whose fingerprint is EB66 FD26 B5F7 7BD7 3E8B 36C8 9298 844A FDF1 6A35

To claim this, I am signing this object:

cd ~
mkdir public_html
cd public_html
rm -fr *
wget "https://wordpress.org/latest.tar.gz"
tar -zxvf latest.tar.gz
mv wordpress/* .
@ksexton
ksexton / CHEATSHEET.md
Created March 10, 2014 19:19
mcollective cheatsheet

mcollective cheatsheet

Agents

List installed agents

$ mco plugin doc
@ksexton
ksexton / riemann.config
Created March 7, 2014 16:04
Riemann Config
;;; -*- mode: clojure; -*-
;;; vim: filetype=clojure
(logging/init :file "/var/log/riemann/riemann.log")
(let [host "0.0.0.0"]
(tcp-server :host host)
(udp-server :host host)
(ws-server :host host))
# Check for bios messages in dmesg
# BUG: Checking dmesg is the best we can do in userspace at this time.
# Ideally, the kernel would improve it's reporting by setting a
# flag such as svm_disabled|vmx_disabled in /proc/cpuinfo's flags.
if dmesg | grep -qs "kvm: disabled by bios"; then
echo "INFO: KVM is disabled by your BIOS"
echo "HINT: Enter your BIOS setup and enable Virtualization Technology (
VT),"
echo " and then hard poweroff/poweron your system"
verdict 1
(where (service #"^disk")
(with {:service "scaled disk"}
(scale (* 100)) index))
INFO [2014-01-13 09:53:15,666] pool-1-thread-72 - riemann.config - received event #riemann.codec.Event{:host monitor, :service disk /boot, :state warning, :description 93% used, :metric 0.93, :tags [health], :time 1389628395, :ttl 10.0}