Skip to content

Instantly share code, notes, and snippets.

Avatar

Raúl Ferràs raulferras

View GitHub Profile
View index.html
<!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>
@raulferras
raulferras / aws-ec2-redis-cli.md
Created Dec 13, 2018 — forked from paladini/aws-ec2-redis-cli.md
AWS redis-cli without redis server on AWS EC2
View aws-ec2-redis-cli.md

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

View Modern Javascript Project.md
View LESS - CSSNEXT color equivalences
LESS CSSNEXT
---------------------------
fade(<color>, 10%) | color(<color> alpha(10%))
View .aliases
#
# 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"
View .zshrc-bindkeys
bindkey "^[^[[D" backward-word
bindkey "^[^[[C" forward-word
@raulferras
raulferras / readme
Last active Aug 29, 2015
Install PhoneGap
View readme
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"
@raulferras
raulferras / installation commands
Created Aug 19, 2014
installation dev on osx
View installation commands
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
@raulferras
raulferras / sublime-settings-user
Created Aug 19, 2014
Sublime Text Packets and Configuration
View sublime-settings-user
{
"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":
[
@raulferras
raulferras / install seo url mod zencart
Last active Aug 29, 2015
How to install Simple Seo Url Mod into zencart 1.3.9h
View install seo url mod zencart
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
You can’t perform that action at this time.