This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Status | |
fail2ban-client status sshd | |
# Unban 1 or all | |
fail2ban-client unban --all | |
fail2ban-client unban <IP> | |
# OLD Command | |
# Generally JAIL_NAME is "ssh" or "sshd". Use "iptables -L -n" to test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install gnome-shell xinit | |
# DISABLE ANIMATIONS | |
gsettings set org.gnome.settings-daemon.plugins.remote-display active false | |
gsettings set org.gnome.desktop.interface enable-animations false | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#TODO: Use this init script https://gist.github.com/bipinu/df44686185d263ef1ba2 | |
apt-get update && apt-get upgrade | |
apt-get install python-pip | |
pip install supervisor --pre | |
mkdir /etc/supervisor | |
echo_supervisord_conf > /etc/supervisor/supervisord.conf | |
ln -s /etc/supervisor/supervisord.conf /etc/supervisord.conf | |
mkdir /var/log/supervisor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# | |
# Downloaded from: | |
# http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/supervisor/trusty/view/head:/debian/supervisor.init | |
# | |
# skeleton example file to build /etc/init.d/ scripts. | |
# This file should be used to construct scripts for /etc/init.d. | |
# | |
# Written by Miquel van Smoorenburg <[email protected]>. | |
# Modified for Debian |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# APACHE must be configured with PHP5-FPM, and not be using ModPHP | |
# I've another gist that configures it | |
# TODO: Combine both scripts and make a backup of original SSL conf file | |
sudo apt-get -y install git g++ apache2 libapr1-dev libaprutil1-dev patch binutils make devscripts | |
# Build spdy | |
# --------------------------------------------------------- | |
git clone https://github.com/eousphoros/mod-spdy.git /tmp/mod-spdy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir /tmp/bison | |
cd /tmp/bison | |
apt-get update | |
apt-get install -y build-essential m4 | |
wget http://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz | |
tar -xvf bison-2.7.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcode-select --install | |
curl -L http://install.ohmyz.sh | sh | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
chmod +x /usr/local/bin/composer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: Based on http://justinhileman.info/article/reinstalling-php-on-mac-os-x/ | |
# Refer to the page in case of any issues | |
# Assumed that you have Brew install; else run the following commands | |
# xcode-select --install | |
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update && brew upgrade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# PARAMETERS | |
# ---------- | |
# PHP | |
# --- | |
PHP_TIMEZONE="UTC" | |
PHP_DIRECTORY="/etc/php5ts" | |
PHP_VERSION="5.6.5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = [name for commits] | |
email = [email for commits] | |
[github] | |
user = [GH username] | |
token = [API token from https://github.com/account/admin] | |
[color] | |
ui = auto | |
interactive = auto | |
[push] |