Skip to content

Instantly share code, notes, and snippets.

View yosevu's full-sized avatar

Yosevu Kilonzo yosevu

View GitHub Profile
@yosevu
yosevu / normalized-quote-feeds.js
Last active September 5, 2017 17:03
Normalized quote feeds
const quoteFeedsById = {
feed1: {
name: 'Programming',
quoteIds: ['quote1', 'quote2']
},
feed2: {
name: 'Stoic',
quoteIds: ['quote3', 'quote4']
}
};
@yosevu
yosevu / tmux-cheatsheet.markdown
Created October 1, 2017 18:11 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
// alphabet:
a b c d e f g h i j k l m n o p q r s t u v w x y z
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
// key
j z a i d m f u
9 25 0 8 3 12 5 20
// plaintext
i l o v e y o u
@yosevu
yosevu / dotfile-git-setup.md
Last active March 2, 2026 15:09
Dotfile Git Setup

Setup

  1. git init --bare $HOME/.dotfiles
  1. alias dot='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
  • Create an alias for git e.g. dot to configure the .dotfiles repository.
  1. dotfiles config --local status.showUntrackedFiles no
  • Configure Git to not show local files that are not being tracked when using commands like git status.
@yosevu
yosevu / neovim-setup.md
Last active January 18, 2018 18:59
Neovim Setup
  • Install python 3
  • Install neovim
  • Install vim plugin manager
  • Install plugins with plugin manager
@yosevu
yosevu / flashing_prompt.rb
Created January 28, 2018 14:21
Flashing prompt
def prompt
60.times do
STDOUT.print "\r:"
sleep 0.5
STDOUT.print "\r "
sleep 0.5
end
end
@yosevu
yosevu / git-github-cheatsheet.md
Created January 28, 2018 22:16
Git/GitHub Cheatsheet
  • Never force push to master
  • Never push to master
@yosevu
yosevu / ruby-koans-notes.md
Last active March 5, 2018 18:13
Ruby Koans Notes

Ruby Koans Notes

about_classes.rb

  assert_equal 'STRING', "STRING".to_s
  assert_equal '"STRING"', "STRING".inspect
  • open class: a class that is re-declared to add funcitonality
@yosevu
yosevu / test.md
Created March 5, 2018 18:56
Test

Test