Skip to content

Instantly share code, notes, and snippets.


Azriel Axighi

View GitHub Profile

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
parmentf /
Last active Oct 24, 2021
Git Commit message Emoji
staltz /
Last active Oct 24, 2021
The introduction to Reactive Programming you've been missing
Kartones /
Last active Oct 23, 2021
PostgreSQL command line cheatsheet


Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
480 / gist:3b41f449686a089f34edb45d00672f28
Last active Oct 20, 2021
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings
View gist:3b41f449686a089f34edb45d00672f28

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

sh -c "$(curl -fsSL"
arunoda / gist:7790979
Last active Oct 16, 2021
Installing SSHPass
View gist:7790979

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

faisalman / baseConverter.js
Last active Aug 26, 2021
Convert From/To Binary/Decimal/Hexadecimal in JavaScript
View baseConverter.js
* Convert From/To Binary/Decimal/Hexadecimal in JavaScript
* Copyright 2012-2015, Faisalman <>
* Licensed under The MIT License
DmitrySoshnikov / dfs-bfs-non-recursive.js
Created Oct 19, 2015
Non-recursive DFS and BFS algorithms
View dfs-bfs-non-recursive.js
* Depth-first and Breadth-first graph traversals.
* In this diff we implement non-recursive algorithms for DFS,
* and BFS maintaining an explicit stack and a queue.
* by Dmitry Soshnikov <>
* MIT Style license
developit / *
Last active Feb 6, 2021
265b lib for building pure functional state machine components.
View *


A tiny (265 byte) utility to create state machine components using two pure functions.

🔥 JSFiddle Demo


The API is a single function that accepts 2 pure functions as arguments:

fatihacet / pubsub-simple.js
Created Oct 15, 2011
Simple PubSub implementation with JavaScript - taken from Addy Osmani's design patterns book -
View pubsub-simple.js
var pubsub = {};
(function(q) {
var topics = {}, subUid = -1;
q.subscribe = function(topic, func) {
if (!topics[topic]) {
topics[topic] = [];
var token = (++subUid).toString();
token: token,