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 May 11, 2024 11:17
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)
@averagehuman
averagehuman / postgres-docker-config.sh
Last active April 3, 2019 22:36
Run postgres on docker host, connect from docker containers
#!/bin/bash
################################################################################
# Rather than run postgres in its own container, we want to run it on
# the (Ubuntu) host and allow:
#
# + peer connections on the host
# + local md5 connections from any docker container
#
# THIS IS COPY/PASTED FROM COMMAND LINE INPUT AND IS UNTESTED AS A SINGLE SCRIPT
################################################################################