Skip to content

Instantly share code, notes, and snippets.

@jkirkby91
jkirkby91 / start.sh
Last active May 23, 2016 17:10
A bash script to start supervisord when booting a docker container
#!/bin/bash
# Fire up supervisord
/usr/bin/supervisord -n -c /etc/supervisord.conf
#!/bin/bash
echo "
# Execshild
kernel.exec-shield = 1
kernel.randomize_va_space = 1
# IPv4 settings
net.ipv4.ip_forward = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
# Site-enabled config for a nginx ssl reverse proxy & loadbalancer
# runs with nginx-naxsi secruity rules
# runs with ddos mitigation
# Greeat for balancing docker containers
upstream dockerswarm {
server 192.168.0.47:8080 weight=1 max_fails=3 fail_timeout=15s;
server 192.168.0.47:8080 weight=2;
keepalive 32;
}
#!/bin/sh
############################################################
######### Install Bitcoin ########
############################################################
## ##
## ##
## ##
## ##
## ##
@jkirkby91
jkirkby91 / tor-install.sh
Last active July 5, 2016 16:16
Ubuntu Tor Install
#!/bin/sh
############################################################
######### Install Tor ########
############################################################
## ##
## ##
## ##
## ##
## ##
# Path to your oh-my-zsh installation.
export ZSH=/Users/Satoshi/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
$(function () {
"use strict";
// for better performance - to avoid searching in DOM
var content = $('#content');
var input = $('#input');
var claim = $('#claim');
var status = $('#status');