Skip to content

Instantly share code, notes, and snippets.

View ivan-loh's full-sized avatar
🌴
On vacation

Ivan Loh ivan-loh

🌴
On vacation
  • ERIAD SOLUTION PLT
  • Malaysia
View GitHub Profile
rm -rf ~/Library/Preferences/IntelliJIdea13/
rm -rf ~/Library/Application\ Support/IntelliJIdea13/
@ivan-loh
ivan-loh / onepage.html
Last active August 29, 2015 13:57
Hybrid One Page Screen
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hybrid One Page Scroll</title>
<link type='text/css' rel='stylesheet' href='http://fonts.googleapis.com/css?family=Quicksand|Montserrat:700,400'>
@ivan-loh
ivan-loh / cheatsheet
Last active August 29, 2015 14:01
markdown cheatsheet
This is intended as a quick reference and showcase. For more complete info, see [John Gruber's original spec](http://daringfireball.net/projects/markdown/) and the [Github-flavored Markdown info page](http://github.github.com/github-flavored-markdown/).
Note that there is also a [Cheatsheet specific to Markdown Here](./Markdown-Here-Cheatsheet) if that's what you're looking for.
PLEASE DO NOT EDIT THIS PAGE! You can play around with Markdown on our [live demo page](http://www.markdown-here.com/livedemo.html).
##### Table of Contents
[Headers](#headers)
[Emphasis](#emphasis)
[Lists](#lists)
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<polymer-element name="my-element">
<template>
@ivan-loh
ivan-loh / install_redis.sh
Last active August 29, 2015 14:07
Ubuntu - Redis Server
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server
@ivan-loh
ivan-loh / install_zeromq.sh
Last active August 29, 2015 14:07
installing zeromq + nodejs + zerorpc on ubuntu
sudo add-apt-repository ppa:chris-lea/zeromq
sudo apt-get update
sudo apt-get install libzmq3-dev
npm install zerorpc
@ivan-loh
ivan-loh / install_java.sh
Last active August 29, 2015 14:07
install_java.sh
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
sudo apt-get install oracle-java8-installer
sudo apt-get install git maven htop
@ivan-loh
ivan-loh / install_tokumx.sh
Created October 10, 2014 20:39
TokuMX 2.0.0 Community Edition for MongoDB, 64-bit Linux
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 505A7412
echo "deb [arch=amd64] http://s3.amazonaws.com/tokumx-debs $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/tokumx.list
sudo apt-get update
sudo apt-get install tokumx
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install gcc make build-essential nodejs
@ivan-loh
ivan-loh / .bashrc_custom
Last active August 29, 2015 14:07
my osx .bashrc_custom
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/opt/go/libexec/bin
export PATH=$PATH:$GOPATH/bin
_type=$(uname -s)
# BSD Date
if [ "$_type" = "Darwin" ]; then
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
fi