Skip to content

Instantly share code, notes, and snippets.

View Emille1723's full-sized avatar
๐ŸŽฏ
Focusing

Emille Henry Emille1723

๐ŸŽฏ
Focusing
  • Trinidad and Tobago
View GitHub Profile
function git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return;
echo "("${ref#refs/heads/}") ";
}
function git_since_last_commit {
now=`date +%s`;
last_commit=$(git log --pretty=format:%at -1 2> /dev/null) || return;
seconds_since_last_commit=$((now-last_commit));
minutes_since_last_commit=$((seconds_since_last_commit/60));
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active October 18, 2025 07:55
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@johnnyclem
johnnyclem / gist:4054112
Created November 11, 2012 07:50
Store an image in redis
var fs = require('fs'),
querystring = require('querystring'),
redis = require('redis'),
r = redis.createClient(),
allowedTypes = {
'text/javascript': 'js',
'text/css': 'css',
'image/png': 'png',
'image/jpeg': 'jpg',
@Starefossen
Starefossen / tmux-cheats.md
Last active October 16, 2025 21:09
My personal tmux cheat sheet for working with sessions, windows, and panes. `NB` I have remapped the command prefix to `ctrl` + `a`.

Sessions

New Session

  • tmux new [-s name] [cmd] (:new) - new session

Switch Session

  • tmux ls (:ls) - list sessions
  • tmux switch [-t name] (:switch) - switches to an existing session
@rxaviers
rxaviers / gist:7360908
Last active October 18, 2025 11:31
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@rossta
rossta / scalable-js-resources.md
Last active August 16, 2025 17:56
Resources for Learning Scalable Javascript Architecture

Scalable JS Resources

Forget what you know about Javascript MVC patterns from your experience with Backbone, Ember, Angular, Knockout, Batman, and yada yada. I encourage you to empty your cup, take a step back and open your mind to the ideas presented in the following resources, primarily from minds of Nicholas Zakas and Addy Osmani, two individuals I consider to be thought leaders in the front-end development world.

@markandrewj
markandrewj / tmux.conf
Last active April 9, 2024 01:56
Basic Tmux Status Bar
# ----------------------
# Status Bar
# -----------------------
set-option -g status on # turn the status bar on
set -g status-utf8 on # set utf-8 for the status bar
set -g status-interval 5 # set update frequencey (default 15 seconds)
set -g status-justify centre # center window list for clarity
# set-option -g status-position top # position the status bar at top of screen
# visual notification of activity in other windows
@codemedic
codemedic / konsole-with-palette-colours.css
Last active September 24, 2024 13:25
CSS for KDE Konsole minimal, lighter, dark tabs
QTabBar,
QTabBar::tab
{
font-family: "Noto Sans";
font-size: 11px;
height: 16px;
padding: 2px;
border: 0px;
border-bottom: 3px solid palette(dark);
background-color: palette(dark);
@tanyuan
tanyuan / smart-caps-lock.md
Last active September 16, 2025 22:30
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

ๆŠŠ Caps Lock ่ฎŠๆˆๆ™บๆ…ง็š„ Control ไปฅๅŠ Escape ๏ผš

  • ๅ–ฎ็จ่ผ•ๆŒ‰ไธ€ไธ‹ๅฐฑๆ˜ฏ Escape ใ€‚
  • ่‹ฅๆŒ‰ไธ‹ๆ™‚ๅŒๆ™‚ๆŒ‰่‘—ๅ…ถไป–้ต๏ผŒๅฐฑๆœƒๆ˜ฏ Control ใ€‚

้€™ๆ‡‰่ฉฒๆ˜ฏ Vim ๅ’Œ Emacs ็š„ๆœ€ไฝณ่งฃไบ†๏ผ(Emacs? Bash ็š„ๅฟซๆท้ตๅฐฑๆ˜ฏ Emacs ็ณปๅˆ—็š„)

  • Send Escape if you tap Caps Lock alone.
@IgnoredAmbience
IgnoredAmbience / 99-noto-mono-color-emoji.conf
Last active October 25, 2024 06:01
Noto Emoji Color fontconfig for Konsole
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
Noto Mono + Color Emoji Font Configuration.
Currently the only Terminal Emulator I'm aware that supports colour fonts is Konsole.
Usage:
0. Ensure that the Noto fonts are installed on your machine.
1. Install this file to ~/.config/fontconfig/conf.d/99-noto-mono-color-emoji.conf