Skip to content

Instantly share code, notes, and snippets.

View davidgoldcode's full-sized avatar

David Gold davidgoldcode

View GitHub Profile

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.


Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
umask 077
# File extension for the notes
fzf_opts="--height 50%"
# Preview script part of FZF.vim. Defaults to something else if not present (but
# not as fancy)
jakelevi1996 / Notes on
Last active February 20, 2023 14:18
Notes on bash
ravgeetdhillon /
Last active May 18, 2022 12:56
Gmail Filters

Gmail Filters

Filters for turning Gmail into a productive workspace.

All the unread emails

bonniss /
Last active June 12, 2024 04:14
Github search cheatsheet from official docs.

Github Search Cheat Sheet

GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.

For more information, visit our search help section.

Basic search

nrocco / _notes
Created May 13, 2019 18:42
Notes system using fzf, rg, fd and vim
#compdef notes
local line state
_arguments -C \
"1:Command:(ls search edit rm help)" \
if [[ "$state" == "args" ]]
case "$line[1]" in
ldez /
Last active June 9, 2024 05:23
Gmail and GitHub - Filters

Gmail and GitHub

How to filter emails from GitHub in Gmail and flag them with labels.

The labels in this document are just examples.

Pull Request

Filter Label
ckabalan /
Last active May 1, 2024 17:29
The Best Bash History Settings Ever
# /etc/profile.d/
# Save 5,000 lines of history in memory
# Save 2,000,000 lines of history to disk (will have to grep ~/.bash_history for full listing)
# Append to history instead of overwrite
shopt -s histappend
# Ignore redundant or space commands
# Ignore more
nerdalert /
Last active November 8, 2023 23:38
VIM Cheatsheet

VIM Cheatsheet

Cursor movement

h - move cursor left
j - move cursor down
k - move cursor up
l - move cursor right

w - jump forwards to the start of a word

MohamedAlaa / tmux-cheatsheet.markdown
Last active June 15, 2024 23:32
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname