Skip to content

Instantly share code, notes, and snippets.

@SpivEgin
SpivEgin / freepbx-install.sh
Created December 16, 2015 20:33 — forked from monobilisim/freepbx-install.sh
FreePBX for Cloud
# Installer Script to take a stock Centos 6.5 to a FreePBX Distro 5.211.65 release.
# Once completed you can use the upgrade scripts for version track 5.211.65
# To keep your system updated.
# Copyright 2013 Schmooze Com, Inc.
# This script is not to be copied for other use.
# This script and the finished product that is installed carries NO WARRANTY and is
# used to get your FreePBX system setup and installed. The installed product is released
@SpivEgin
SpivEgin / clone-all-twitter-github-repos.sh
Last active August 19, 2016 00:44 — forked from caniszczyk/clone-all-twitter-github-repos.sh
Clone all repos from a GitHub organization
curl -s https://api.github.com/orgs/[Insert Organization]/repos?per_page=500 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@SpivEgin
SpivEgin / gist:a9efcfd78cf96e6e5b108572f0145dd2
Created August 19, 2016 00:28 — forked from djfm/gist:185db29b4b3b8850d9df
Clone All Repositories From GitHub Organization
curl -s https://api.github.com/orgs/PrestaShop/repos | ruby -rjson -e 'JSON.load(STDIN.read).each {|repo| %x[git clone #{repo["ssh_url"]} --recursive]}'
@SpivEgin
SpivEgin / install_couchdb_jessie.sh
Created September 18, 2016 11:48 — forked from MatthieuLemoine/install_couchdb_jessie.sh
Install CouchDB from source on Debian Jessie
#!/bin/bash
# Inspired by http://verbally.flimzy.com/install-couchdb-1-6-1-debian-8-2-jessie/
# Erlang
echo -e "deb http://packages.erlang-solutions.com/debian jessie contrib" | sudo tee /etc/apt/sources.list.d/erlang-solutions.list
wget -qO - http://packages.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add -
# Update packages
sudo apt-get update
@SpivEgin
SpivEgin / debmirror.sh
Created October 31, 2016 13:03 — forked from kleinig/debmirror.sh
debmirror script
#!/bin/sh
DEBMLOG=/pool/debmirror/debmirror.log
MIRRORDIR=/pool/debmirror
BANDWIDTH=500
if test -s $DEBMLOG
then
test -f $DEBMLOG.3.gz && mv $DEBMLOG.3.gz $DEBMLOG.4.gz
test -f $DEBMLOG.2.gz && mv $DEBMLOG.2.gz $DEBMLOG.3.gz
@SpivEgin
SpivEgin / pedantically_commented_playbook.yml
Created November 6, 2016 16:22 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@SpivEgin
SpivEgin / service-checklist.md
Created November 6, 2016 16:26 — forked from marktheunissen/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@SpivEgin
SpivEgin / debian-lamp.yml
Created November 6, 2016 16:53 — forked from briceburg/debian-lamp.yml
automated [ansible] debian lamp server setup
---
# based on https://gist.github.com/briceburg/ded5e82a70e5af71a611
- name: common utilities
apt:
name: "{{ item }}"
state: present
update_cache: yes
cache_valid_time: 3600
vagrant up
vagrant ssh -c "curl -L https://github.com/{your-username}.keys >> /home/vagrant/.ssh/authorized_keys"
@SpivEgin
SpivEgin / pagekit.conf
Created April 24, 2017 20:41 — forked from DarrylDias/pagekit.conf
NGINX config for PageKit. (Tested on Ubuntu) (If for some reason I don't reply to a comment leave a message at https://darryldias.me/contact/)
server {
# Server name
server_name example.com;
# Server Port
listen 80;
# Webroot
root /var/www/;