Skip to content

Instantly share code, notes, and snippets.

View starkers's full-sized avatar

David Stark starkers

  • London, UK
  • 20:45 (UTC +01:00)
View GitHub Profile
@starkers
starkers / docker-compose.yml
Created October 9, 2018 15:39
sample traefik
---
version: '2'
services:
elasticsearch:
# slightly modified official image with data volume chmod fix
build:
context: ./elasticsearch_build
environment:
@starkers
starkers / starkers.zsh-theme
Last active July 22, 2018 19:05
starkers zsh theme
# heavily modified from sonicradish and other bits and bobs
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
#RTFM: https://www-s.acm.illinois.edu/workshops/zsh/prompt/escapes.html
setopt promptsubst
autoload -U add-zsh-hook
ROOT_ICON_COLOR=$FG[111]
@starkers
starkers / keybase.md
Created March 7, 2018 13:22
keybase.md

Keybase proof

I hereby claim:

  • I am starkers on github.
  • I am starkers (https://keybase.io/starkers) on keybase.
  • I have a public key ASDRpj6GhzbDf4L60R90iPKOTYpcvcdgeNTdvB-DuM5F4wo

To claim this, I am signing this object:

## tips on coming to "pacman" or "yaourt" from "apt" world..
#
# pacman does official standard "arch" packages..
# yaourt will do that AND anything installed from the "Arch User Repo"
#
# run pacman with sudo (I alias "pacman" -> "sudo pacman" )
# run yaourt as yourself (it installs stuff locally to your profile and uses sudo if needed)
#
# apt-get update == pacman -Sy or yaourt -Sy
# apt-get search foo == pacman -Ss foo or yaourt -Ss foo

DIY hetzner multi-host

This guide is a general howto based against a server I recently setup.

The good things:

  1. you get a cheap server with several IPs
  2. You can run virtualised hosts with their own IPs
  3. You can also run containers with public IPs. (in this case I'm using LXD/LXC, docker is an option or even experiment with others inside your KVM)
  4. ZFS integration for your LXC snapshoting and even KVM hosts, I can't stress how awesome ZFS is at this
  5. LTS 16.04 has security patches till at least the year 2021
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# background
# Normal shortcuts
<ctrl-/> comment/uncomment a line or visual block
<ctrl-f> open "files" in the same dir as current file
<ctrl-p> "CtrlP" file browser (fuzzy finding)
<ctrl-n> "new" buffer
<ctrl-o> "open" previous files from MRU (most recently used)
<leader>? view vim cheatsheet / "help"
<leader>e show/disable "expand tab" toggle
<leader>f toggle the "file browser" pane, ? for help or :help NERDtree
<leader>g toggle "git" hints
" "========================================================================"
" "========== vim-plug for plugin management"
" "========================================================================"
call plug#begin('~/.local/share/nvim/plugged')
" "========================================================================"
" "========== completions and linting"
function! BuildYCM(info)
" function to automatically run install.py for you
# i3 config
#AKA Super/Windows/Apple
set $mod Mod4
set $terminal terminator
#How to alise colors EG:
# set_from_resource $darkred color1 #000000
# set_from_resource $red color9 #000000
" "========================================================================"
" "========== vim-plug for plugin management"
" "========================================================================"
call plug#begin('~/.local/share/nvim/plugged')
" "========================================================================"
" "========== completions and linting"
function! BuildYCM(info)
" function to automatically run install.py for you