Skip to content

Instantly share code, notes, and snippets.

apt update && \
apt install -y zsh tmux && \
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" "" --unattended && \
chsh -s $(which zsh)
@tmtrademarked
tmtrademarked / FontTabLayout.java
Created January 5, 2017 00:10
SImple wrapper class to support fonts in TabLayout
/**
* Simple helper class which extends a TabLayout to allow us to customize the font of the tab.
*/
public final class FontTabLayout extends TabLayout {
// TODO - support customizing via XML rather than hardcoding.
private static final String FONT_PATH = "fonts/Roboto.ttf";
private Typeface mTypeface;
public FontTabLayout(Context context) {
@squarism
squarism / iterm2.md
Last active December 30, 2025 22:04
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So + D does not mean hold shift. + Shift + D does of course.

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