To use this self signed certificate, you need to add CA.pem into any browser certificate store
If v3.ext it's no used, some browers fail
rabbitmqctl eval '{ok, Q} = rabbit_amqqueue:lookup(rabbit_misc:r(<<"/">>, queue, <<"aliveness-test">>)), rabbit_amqqueue:delete_crashed(Q).' |
#!/bin/bash | |
cat - << EOWARNING | |
WARNING: This script will fil up your left over disk space. | |
DO NOT RUN THIS WHEN YOUR VIRTUAL HD IS RAW!!!!!! | |
You should NOT do this on a running system. | |
This is purely for making vagrant boxes damn small. | |
Press Ctrl+C within the next 10 seconds if you want to abort!! |
#!/bin/bash | |
aws rds modify-db-parameter-group \ | |
--db-parameter-group-name $1 \ | |
--parameters="ParameterName=character_set_server,ParameterValue=utf8,ApplyMethod=pending-reboot" \ | |
--parameters="ParameterName=collation_server,ParameterValue=utf8_general_ci,ApplyMethod=pending-reboot" \ | |
--parameters="ParameterName=key_buffer,ParameterValue=128M,ApplyMethod=pending-reboot" \ | |
--parameters="ParameterName=tmp_table_size,ParameterValue={DBInstanceClassMemory/16},ApplyMethod=pending-reboot" \ | |
--parameters="ParameterName=max_heap_table_size,ParameterValue={DBInstanceClassMemory/16},ApplyMethod=pending-reboot" \ | |
--parameters="ParameterName=query_cache_type,ParameterValue=1,ApplyMethod=pending-reboot" \ |
#!/usr/bin/python | |
# Notify by Pushover | |
# -*- encoding: utf-8; py-indent-offset: 4 -*- | |
# +------------------------------------------------------------------+ | |
# | ____ _ _ __ __ _ __ | | |
# | / ___| |__ ___ ___| | __ | \/ | |/ / | | |
# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / | | |
# | | |___| | | | __/ (__| < | | | | . \ | | |
# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ | | |
# | | |
# /etc/security/limits.conf | |
* soft nofile 999999 | |
* hard nofile 999999 | |
root soft nofile 999999 | |
root hard nofile 999999 | |
=========================================================== | |
# /etc/sysctl.conf | |
# sysctl for maximum tuning |
#!/usr/bin/env bash | |
DOCKER=`which docker` | |
usage() | |
{ | |
echo "Usage: $(basename $0) [-l num] IMAGE" | |
exit 0 | |
} |
#!/bin/bash | |
# For https://www.coursera.org/learn/ruby-on-rails-intro/home/welcome | |
# | |
# Based on https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-14-04 | |
sudo apt-get update -y | |
sudo apt-get --ignore-missing install build-essential git git-core curl openssl libssl-dev libcurl4-openssl-dev zlib1g zlib1g-dev libreadline-dev libreadline6 libreadline6-dev libyaml-dev libsqlite3-dev libsqlite3-0 sqlite3 libxml2-dev libxslt1-dev python-software-properties libffi-dev libgdm-dev libncurses5-dev automake autoconf libtool bison postgresql postgresql-contrib libpq-dev pgadmin3 libc6-dev nodejs -y | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc |
# bitbucket_tools |
#!/bin/bash | |
JENKINS_URL=http://localhost:8080 | |
JOB_NAME=$1 | |
TOKEN=$2 | |
crumb=`curl --insecure $JENKINS_URL/crumbIssuer/api/json` | |
crumb_final=`echo $crumb | awk -F "\":\"" {'print $2'} | awk -F "\"" {'print $1'}` | |
curl -H ".crumb:$crumb_final" --insecure \ |