Skip to content

Instantly share code, notes, and snippets.

View sailavu's full-sized avatar

Sai Lavu sailavu

  • Sydney, Australia
View GitHub Profile
#!/bin/bash
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
###############################################
# To use:
# wget https://gist.githubusercontent.com/sailavu/3b280bfdb95ab65ae23a/raw/1a4d24fb0b0a32a47da042f8a63b30047c1a7d42/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
@sailavu
sailavu / addHeaderNumbering
Last active August 29, 2015 14:05
Add header numbering for Google Docs
/*
Credits:
https://productforums.google.com/forum/#!topic/docs/w4MXeqJaefU
http://webapps.stackexchange.com/questions/23861/header-numbering-in-google-docs
Instructions to use:
In a Google Doc
#!/bin/bash
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
###############################################
# To use:
# wget https://gist.github.com/sailavu/6129465/raw/5e4ebf3e56aeacae7575c1ff19297dcc2b79dd81/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
@sailavu
sailavu / README.md
Created November 11, 2012 02:38 — forked from juno/README.md
Install rbenv and ruby-build to Amazon Linux (cloud-init).

Install rbenv and ruby-build to Amazon Linux (cloud-init).

  1. Copy & paste content of user-data.sh to EC2 RunInstances user-data
  2. Then, logging in to EC2 instance as ec2-user and run install-ruby.sh.
@sailavu
sailavu / 0-README.md
Created November 11, 2012 02:38 — forked from sxua/0-README.md
Install rbenv and ruby-build on Ubuntu

Install rbenv and ruby-build on Ubuntu.

@sailavu
sailavu / rbenv-install-system-wide.sh
Last active September 30, 2015 18:08
rbenv install and system wide install on Ubuntu 10.04 LTS.
# Update, upgrade and install development tools:
sudo su -
yum update
yum install rpmdevtools
yum groupinstall "Development Tools"
yum groupinstall development-libs
yum install zlib-devel
yum install gcc
yum install gcc-c++
yum install make
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",