Skip to content

Instantly share code, notes, and snippets.

@pbt001
pbt001 / .tmux.conf
Created November 16, 2018 10:11 — forked from sijad/.tmux.conf
Terminal
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g default-terminal screen-256color
set -g status-keys vi
@pbt001
pbt001 / tmux.md
Created November 16, 2018 22:47 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@pbt001
pbt001 / docker-compose.yml
Created November 16, 2018 23:20
Docker compose with Nextcloud + Cron + MariaDB + Reverse Proxy + Let's Encrypt + Postfix relay
version: '3'
services:
proxy:
image: jwilder/nginx-proxy:alpine
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
container_name: nextcloud-proxy
networks:
- nextcloud_default
@pbt001
pbt001 / .chunkwmrc
Created January 9, 2019 21:38 — forked from shihanng/.chunkwmrc
chunkwm + skhd
#!/bin/bash
#
# NOTE: specify the absolutepath to the directory to use when
# loading a plugin. '~' expansion is supported.
#
chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
#
@pbt001
pbt001 / buildresticexcludes.sh
Created January 14, 2019 19:36 — forked from Vartkat/buildresticexcludes.sh
Bash script to build a restic exclude list that mimics Apple TimeMachine exclude list
#!/bin/bash
# This script intend to mimic TimeMachine exclude list.
# As the exclude list can evolve between backups it has to be rebuilt before every backup
# Apple uses 5 types of excludes, four from the /System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist file
# and files from applications where metadata says to not backup, these can be found usinf
# sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'"
SYSLOG=/usr/bin/syslog;
TEMPFILE=$1;
@pbt001
pbt001 / .chunkwmrc
Last active January 15, 2019 10:19
[Chunkwm Config] #cfg #fork #dotfile
#!/usr/local/sbin/bash
export PATH=/usr/local/sbin/:$PATH
#
# NOTE: specify the desired level of logging.
#
# - none, debug, warn, error
#
chunkc core::log_file /tmp/chunkwm.log
@pbt001
pbt001 / setup_mac.sh
Last active January 15, 2019 10:19
[macos setup fresh install script] #cfg #dotfile #fork #macos
#! /bin/bash
type brew &> /dev/null || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
PACKAGES=(
tig
ranger
git
vim
wget
@pbt001
pbt001 / .skhdrc
Last active January 15, 2019 10:17 — forked from pkazmier/.skhdrc
[skhdrc config] #cfg #fork
# Modified from https://github.com/alyssais configuration.
#
# The following configuration heavily leverages modal keymaps to minimize the
# pollution of global keybindings. In addition, the modal keymaps facilitate
# the consistent use of the same keybindings across different modes. For
# example, this configuration uses 'h', 'l', 'j', and 'k' to represent west,
# east, south, and north when: changing focus, warping windows, resizing
# windows, swapping windows, and moving floating windows. Those four keys are
# mapped differently depending on the current mode to provide a consistent user
# experience.
@pbt001
pbt001 / .chunkwmrc
Last active January 15, 2019 10:18 — forked from michalvalasek/.chunkwmrc
[chunkwm configuration] #cfg #fork
#!/bin/bash
#
# NOTE: specify the absolutepath to the directory to use when
# loading a plugin. '~' expansion is supported.
#
chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
#
@pbt001
pbt001 / .chunkwmrc
Last active January 15, 2019 10:15 — forked from dslaw/.skhdrc
[Setup for macOS] #cfg
#!/bin/bash
#
# NOTE: specify the absolutepath to the directory to use when
# loading a plugin. '~' expansion is supported.
#
chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
#