List installed agents
$ mco plugin doc
;;; -*- 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)) |
cd ~ | |
mkdir public_html | |
cd public_html | |
rm -fr * | |
wget "https://wordpress.org/latest.tar.gz" | |
tar -zxvf latest.tar.gz | |
mv wordpress/* . |
I hereby claim:
To claim this, I am signing this object:
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) |
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 |
# Assumption: Mac OS X | |
CHEFDK="/opt/chefdk/embedded" | |
CHEFDK_USER="$HOME/.chefdk/gem/ruby/2.1.0" | |
RVM_GEMS="$HOME/.rvm/gems" | |
RVM_RUBIES="$HOME/.rvm/rubies" | |
RUBY_NAME="ext-chefdk-ruby" | |
mkdir -p $RVM_RUBIES/$RUBY_NAME | |
ln -s $CHEFDK/bin $RVM_RUBIES/$RUBY_NAME |
yum -y update && \ | |
yum -y install yum-utils && \ | |
service rsyslog stop && \ | |
service auditd stop && \ | |
package-cleanup --oldkernels -y –count=1 && \ | |
yum clean all && \ | |
logrotate -f /etc/logrotate.conf | |
rm -f /var/log/*-???????? /var/log/*.gz | |
rm -f /var/log/dmesg.old |
#!/bin/bash | |
# === INFO === | |
# altnetworking.sh | |
# Description: Run the specified application in a custom networking environment. | |
# Uses cgroups to run process(es) in a network environment of your own choosing (within limits!) | |
VERSION="0.1.0" | |
# Author: John Clark | |
# Requirements: Debian 8 Jessie (plus iptables 1.6 from unstable) | |
# |