Skip to content

Instantly share code, notes, and snippets.

View yosevu's full-sized avatar

Yosevu Kilonzo yosevu

View GitHub Profile
@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 / 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.
// 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 / 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
@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 / nested-quote-feeds.js
Created September 5, 2017 16:58
Nested Quote Feeds
const quoteFeeds = [
{
id: 'feed1',
name: 'Programming',
quotes: [
{
id: 'quote1',
text:'Every great developer you know got there by solving problems they were unqualified to solve until they actually did it.',
source: 'Patrick McKenzie',
liked: false
@yosevu
yosevu / index.js
Last active August 8, 2017 12:51
Index
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
// Get the element to prepend our app to from https://www.google.com.
// This could be a specific element on a website or something more general like `document.body`.
const viewport = document.getElementById('viewport');
// Create a div to render the App component to.
.App {
text-align: center;
margin: 70px auto;
width: 50%;
}
// Other styles
@yosevu
yosevu / App.js
Created August 8, 2017 02:56
App
import React, { Component } from 'react';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src="https://facebook.github.io/react/img/logo.svg" className="App-logo" alt="logo" />
<h2>Welcome to React</h2>