Skip to content

Instantly share code, notes, and snippets.

View xgenem's full-sized avatar
🏠
Working from home

Eugene Maning xgenem

🏠
Working from home
View GitHub Profile
git --no-pager branch | grep -v "^\*" | grep -v "master" | xargs -n 1 git branch -D
@xgenem
xgenem / zshgit.md
Created September 5, 2025 10:05 — forked from AdamMarsden/zshgit.md
Oh My Zsh - Git Cheat Sheet

#Oh My Zsh - Git Cheat Sheet

ggit

gstgit status

glgit pull

gupgit pull --rebase

@xgenem
xgenem / iterm2.md
Created December 11, 2023 05:46 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@xgenem
xgenem / webfonts.md
Created July 18, 2022 05:15 — forked from heiswayi/webfonts.md
Default font-family for web stuffs

Headings (H1-H6)

font-family: Roboto,-apple-system,BlinkMacSystemFont,"Helvetica Neue","Segoe UI","Oxygen","Ubuntu","Cantarell","Open Sans",sans-serif;

Body

font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
const CATCH_ALL_ERR_MSG =
"We weren’t able to determine what the error was based on the server response.";
/**
* window.fetch does not throw an error for common HTTP errors; 404, 503, etc.
* Here we check its `ok` key to determine if there's n HTTP error.
* If so, throw an error so any users can `catch`.
*
* @param {Object} res - A Response object from fetch
*/
@xgenem
xgenem / cleanrep
Last active March 17, 2023 18:43
Cleanrep
# iterm alias command
alias cleanrep="git branch --merged | egrep -v '(master|develop)' | xargs git branch -d"