Skip to content

Instantly share code, notes, and snippets.

View belmer's full-sized avatar

Belmer Salonoy belmer

View GitHub Profile
@belmer
belmer / tmux-cheatsheet.markdown
Created February 5, 2020 18:54 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@belmer
belmer / .eslintrc.js
Created March 28, 2017 03:49 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
aptitude install -y git curl python-dev python-pip redis-server ruby1.9.1-full rubygems1.9.1
aptitude install -y mysql-server libmysqlclient-dev
adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git
adduser --disabled-login --gecos 'gitlab system' gitlab
usermod -a -G git gitlab
su - gitlab
ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa
aptitude install gitolite
cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub
su - git
@belmer
belmer / gist:8748764
Last active August 29, 2015 13:55 — forked from lesterjude/direct_call
Direct Call Logic

##Direct Call Logic

Description:

  1. Caller calls a drumbi phone number.
  2. Controller requests for WS to check if Caller ID has called before or first time.
  3. If Caller ID called first time :
    - Check if Drumbi phone is from Web App, play busy recording then update session to spam.
    - Check if Drumbi phone is from other app, then play the connected_caller event recording.
  1. If Caller ID has called before :
@belmer
belmer / gist:3791673
Created September 27, 2012 01:30 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt