Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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