Skip to content

Instantly share code, notes, and snippets.

@joshdvir
joshdvir / install_rabbit.sh
Last active April 16, 2018 16:21
Install RabbitMQ on Amazon Linux
yum install -y erlang
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm
rpm -Uvh rabbitmq-server-3.5.6-1.noarch.rpm
chkconfig rabbitmq-server on
/sbin/service rabbitmq-server start
rabbitmqctl status
rabbitmq-plugins enable rabbitmq_management
/sbin/service rabbitmq-server restart
rabbitmqctl add_user [username] kd9RWz5zSFT1
@gunjanpatel
gunjanpatel / amazon-ec2-ftp.md
Last active October 10, 2023 15:31
amazon ec2 LAMP and FTP installation and setup
@chetandhembre
chetandhembre / rabbitmq-env.conf
Created February 2, 2015 10:39
configuration for rabbitmq
MNESIA_BASE=/data/rabbitmq_data
LOG_BASE=/data/rabbitmq_log
@chetandhembre
chetandhembre / 1.Rabbitmq Installation
Last active December 19, 2016 10:33
RabbitMq setup tips
this is hack so that i can get proper git file header name.
You should start it by reading steps from https://gist.github.com/chetandhembre/bca6767e76dd756b93af#file-setup-steps file
@hiddentao
hiddentao / gist:5946053
Last active November 13, 2018 18:18
Generate overridable getters and setters in Javascript
// see blog post: http://www.hiddentao.com/archives/2013/07/08/generate-overridable-getters-and-setters-in-javascript/
Function.prototype.generateProperty = function(name, options) {
// internal member variable name
var privateName = '__' + name;
options = options || {};
options.get = ('undefined' === typeof options.get ? true : options.get );
options.set = ('undefined' === typeof options.set ? true : options.set );
// pre-initialise the internal variable?
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 26, 2025 10:50
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@johngrimes
johngrimes / date.sql
Created May 21, 2010 07:03
MySQL Date Dimension Build Script
/* Adapted from Tom Cunningham's 'Data Warehousing with MySql' (www.meansandends.com/mysql-data-warehouse) */
###### small-numbers table
DROP TABLE IF EXISTS numbers_small;
CREATE TABLE numbers_small (number INT);
INSERT INTO numbers_small VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
###### main numbers table
DROP TABLE IF EXISTS numbers;
CREATE TABLE numbers (number BIGINT);