Skip to content

Instantly share code, notes, and snippets.

@MAS150MD200
MAS150MD200 / README.md
Last active August 29, 2015 14:28 — forked from textarcana/README.md
This gist contains everything you need to install StatsD and Graphite on CentOS 6.3.

This gist contains everything you need to install StatsD and Graphite on CentOS 6.3. Unless I forgot something. If I did, shoot a reminder email to noah at one more bug dot com. tl;dr: womm, ymmv, yolo.

I (mostly) followed the steps shown in the EZUnix wiki

And I also referred back to this gist by Michael Grace

####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
sudo apt-get update
sudo apt-get upgrade
@MAS150MD200
MAS150MD200 / boto3_hands_on.md
Created January 18, 2016 17:29 — forked from iMilnb/boto3_hands_on.md
Programmatically manipulate AWS resources with boto3 - a quick hands on

boto3 quick hands-on

This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].

First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as

  • [awscli][1] is boto-based
  • [awscli][1] usage is really close to boto's
## haproxy.cfg
global
user haproxy
group haproxy
daemon
maxconn 16384
pidfile /var/run/haproxy.pid
defaults
@MAS150MD200
MAS150MD200 / gist:78aee72889b6a63887135ac379dc7cc0
Created July 26, 2016 09:13 — forked from ldx/gist:9116170
Build a chroot with a CentOS 6.5 base install.
#!/bin/sh
#
# Build a chroot with a CentOS 6.5 base install.
#
CHROOT=/tmp/chroot
mkdir -p $CHROOT
mkdir -p $CHROOT/var/lib/rpm
@MAS150MD200
MAS150MD200 / Server.py
Created August 8, 2016 12:54 — forked from HaiyangXu/Server.py
A simper python http server can handle mime type properly
# -*- coding: utf-8 -*-
#test on python 3.4 ,python of lower version has different module organization.
import http.server
from http.server import HTTPServer, BaseHTTPRequestHandler
import socketserver
PORT = 8080
Handler = http.server.SimpleHTTPRequestHandler
@MAS150MD200
MAS150MD200 / web-servers.md
Created August 8, 2016 12:58 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@MAS150MD200
MAS150MD200 / init.pp
Created August 28, 2016 15:02 — forked from Raboo/init.pp
augeas ntp puppet
augeas { "ntp.conf":
context => "/files/etc/ntp.conf",
changes => [
"rm server[.]",
"set server timehost.tconet.net",
"clear server[. = 'timehost.tconet.net']/iburst",
"set server[. = 'timehost.tconet.net']/maxpoll 9",
"clear server[. = 'timehost.tconet.net']/prefer",
],
require => Package["ntp"],
@MAS150MD200
MAS150MD200 / ansible-summary.md
Created October 9, 2016 09:20 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@MAS150MD200
MAS150MD200 / install.sh
Created November 2, 2016 15:51 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"