Skip to content

Instantly share code, notes, and snippets.

@ifnull
ifnull / gist:38375a2fb5b0b02646cc
Created June 5, 2014 04:48
SnapEngage Chat Commands
http://help.snapengage.com/useful-chat-commands/
@ifnull
ifnull / new_gist_file.sh
Created June 6, 2014 23:36
Find out what Salt highstate is doing
for i in `pgrep -u root salt-minion`; do pstree -a $i; done;
@ifnull
ifnull / blitz-motd.sh
Created June 7, 2014 01:29
BLITZ MOTD
#!/bin/sh
cat << EOF
▄▄▄▄ ██▓ ██▓▄▄▄█████▓▒███████▒
▓█████▄ ▓██▒ ▓██▒▓ ██▒ ▓▒▒ ▒ ▒ ▄▀░
▒██▒ ▄██▒██░ ▒██▒▒ ▓██░ ▒░░ ▒ ▄▀▒░
▒██░█▀ ▒██░ ░██░░ ▓██▓ ░ ▄▀▒ ░
░▓█ ▀█▓░██████▒░██░ ▒██▒ ░ ▒███████▒
░▒▓███▀▒░ ▒░▓ ░░▓ ▒ ░░ ░▒▒ ▓░▒░▒
▒░▒ ░ ░ ░ ▒ ░ ▒ ░ ░ ░░▒ ▒ ░ ▒
@ifnull
ifnull / install-mcrypt.md
Created June 9, 2014 05:17
Install Mcrypt
yum --disableplugin=fastestmirror install php-devel libmcrypt-devel gcc
cd /tmp
wget http://museum.php.net/php5/php-5.3.3.tar.gz
tar xf php-5.3.3.tar.gz
cd php-5.3.3/ext/mcrypt/
phpize
aclocal
./configure
make
@ifnull
ifnull / my-app.conf
Created June 20, 2014 22:16
Sample Supervisor conf
[program:my-app]
command=sh /home/blitz/my-app.sh
directory=/home/blitz
user=blitz
startsecs=5
startretries=3
stopsignal=TERM
stopwaitsecs=10
autostart=true
autorestart=true
@ifnull
ifnull / README.md
Created June 28, 2014 00:16
HAR to Siege File Tutorial

Install

brew install siege
gem install hardy

Generate HAR

  1. Open Chrome,
  2. Open the Chrome Developer Tools panel (cmd-shift-i on a Mac),
  3. With the tools panel open, navigate to the site you want to test,
@ifnull
ifnull / README.md
Created July 3, 2014 02:20
Setting up a DNS server for the purposed of testing a production server prior to DNS change.

Requirements

Create AWS Security Group

@ifnull
ifnull / README.md
Created July 8, 2014 19:16
Install xdebug and Webgrind for debugging Magento performance problems.

Install xdebug and Webgrind

sudo su -
pecl install xdebug
apt-get install unzip
curl -o /tmp/webgrind-release-1.0.zip https://webgrind.googlecode.com/files/webgrind-release-1.0.zip
unzip /tmp/webgrind-release-1.0.zip -d /srv/app/store/
chown -R vagrant:vagrant /srv/app/store/
@ifnull
ifnull / README.md
Created July 9, 2014 19:38
How to install qcachegrind (kcachegrind) on Mac (Lion and Mountain Lion)

Requirements

Setup

Symlink Graphviz dot

sudo ln -s /usr/local/bin/dot /usr/bin/dot
@ifnull
ifnull / README.md
Last active August 29, 2015 14:03
Django manage.py debugging with verbose info and traceback for finding the source of errors.
./manage.py foobar --verbosity 3 --traceback
./manage.py runserver [::]:8000 --verbosity 3 --traceback