Skip to content

Instantly share code, notes, and snippets.

View harekumar's full-sized avatar
🏠
Working from home

Hare Kumar harekumar

🏠
Working from home
View GitHub Profile
@harekumar
harekumar / ejabberd_15.04_cluster_setup.txt
Last active December 7, 2016 11:41
Instruction to setup ejabberd 15.04 cluster
Let's say we need to join two node nodeA & nodeB. Then makesure both the node has the same erlang-cookies & basics ports are open
i.e needed to communicate nodes internally.
Steps:
1. Ensure all the node has the same erlang-cookies.
2. Now go to any one of the node let's say we wish to add NodeB to NodeA cluster. Then go to the NodeB & run the following command in debug mode i.e by running ./bin/ejabberdctl debug
Node = NodeAName.
net_adm:ping(Node). #==> Check if node can connect with each other. If the response is Pang abort & fix the issue first & then comeback.
@harekumar
harekumar / install_erlang_17.5.txt
Last active December 7, 2016 11:37
Installation instruction to install erlang/otp-17.5 on centOS
—————— Install Java 8 ————————
1. wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm"
2. sudo yum localinstall jdk-8u60-linux-x64.rpm
—————— Install Erlang/OTP-17.5 ————————
Setup erlang 17.5:
1. wget http://erlang.org/download/otp_src_17.5.tar.gz & untar it.
@harekumar
harekumar / android_studio_shortcuts.md
Created June 13, 2016 20:00 — forked from stkent/android_studio_shortcuts.md
Android Studio Shortcuts (Mac)

Android Studio Shortcuts (Mac)

Notes:

  • Two of the most useful shortcuts utilize the Fn (function) keys. It is therefore recommended that you enable the "Use all F1, F2, etc. keys as standard function keys" option [System Preferences > Keyboard].
  • Be sure to enable the Mac OS X 10.5+ keymap in Android Studio [Preferences > Keymap].
  • A fairly complete shortcut list can be found here.

Useful symbols:

@harekumar
harekumar / web-servers.md
Created April 12, 2016 09:15 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000