Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
@pherrymason
pherrymason / aws-ec2-redis-cli.md
Created December 13, 2018 08:20 — forked from paladini/aws-ec2-redis-cli.md
AWS redis-cli without redis server on AWS EC2

Setup redis-cli without the whole Redis Server on AWS EC2

This fast tutorial will teach you how to install redis-clion AWS EC2 without having to install the whole Redis Server. Firstly, SSH into your EC2 instance and run the following command:

$ sudo yum install gcc

This may return an "already installed" message, but that's OK. After that, just run:

$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make && sudo cp src/redis-cli /usr/local/bin/ && sudo chmod 755 /usr/local/bin/redis-cli

@pherrymason
pherrymason / Modern Javascript Project.md
Created September 12, 2018 10:31
Modern Javascript Project
LESS CSSNEXT
---------------------------
fade(<color>, 10%) | color(<color> alpha(10%))
#
# Directory aliases
#
alias life="cd /Volumes/Develop/GitRepos/viscaweb/life"
alias wsserver="cd /Volumes/Develop/GitRepos/viscaweb/socket-server"
# php cli + xdebug
alias phpxdebug="php -dxdebug.default_enable=1 -dxdebug.remote_autostart=1 -dxdebug.remote_enable=1 -dxdebug.remote_mode=req"
bindkey "^[^[[D" backward-word
bindkey "^[^[[C" forward-word
@pherrymason
pherrymason / readme
Last active August 29, 2015 14:12
Install PhoneGap
Install the following:
npm install -g phonegap
npm install -g cordova
npm install -g plugman
Modify `.zshrc`:
export ANDROID_HOME=~/dev/android/sdk
export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools"
@pherrymason
pherrymason / installation commands
Created August 19, 2014 09:11
installation dev on osx
npm install -g jshint
npm install -g webpack
npm install -g less
npm install -g clean-css
npm install -g grunt-cli
npm install uglify-js -g
# Allow php CLI connect to mysql
# after installing mamp do this
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
@pherrymason
pherrymason / sublime-settings-user
Created August 19, 2014 08:35
Sublime Text Packets and Configuration
{
"color_scheme": "Packages/User/Flatland Monokai (SL).tmTheme",
"default_line_ending": "unix",
"detect_indentation": false,
"font_size": 11,
"highlight_line": true,
"show_encoding": true,
"show_line_endings": true,
"ignored_packages":
[
@pherrymason
pherrymason / install seo url mod zencart
Last active August 29, 2015 14:03
How to install Simple Seo Url Mod into zencart 1.3.9h
Well I've finally done it - installed the Simple SEO URL module for Zen Cart!
And I thought I'd better document it here before I forget the steps I've done and need to do it again for another cart.
I had avoided doing on previous carts as its a bit fiddly to set up and if you get it wrong it completely breaks your cart (those unhelpful Internal Server Error 500 messages!) But its SO useful for SEO that I thought it worth persevering.
So here goes:
1) Download module from http://wiki.rubikintegration.com/zencart/modules/ssu/installation (or search on ZenCart's Modules page)
NOTE: For PHP4 installs the latest stable release is 2.9 - not 3.x