Skip to content

Instantly share code, notes, and snippets.

View simonwahlgren's full-sized avatar

Simon Wahlgren simonwahlgren

  • Simon Wahlgren Consulting AB
  • Stockholm
View GitHub Profile
@simonwahlgren
simonwahlgren / gist:d4a3d572fb1b077a2d2cad90e74eaedf
Last active January 22, 2022 14:52
Dual boot Arch Linux installation with BTRFS and UEFI
### Prerequisite
windows 10 installed
empty space for linux
turn off safe boot to be able to boot usb drive
turn off fast startup as it might damage your EFI partition
### Installation
timedatectl set-ntp true
loadkeys sv-latin1
cfdisk /dev/sdX (set disk to type GPT)
apiVersion: v1
kind: Namespace
metadata:
name: kong
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: kongconsumers.configuration.konghq.com
spec:
@simonwahlgren
simonwahlgren / foo.yaml
Created May 4, 2019 08:34
Foo deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: foo
spec:
replicas: 1
selector:
matchLabels:
app: foo
template:
@simonwahlgren
simonwahlgren / bar.yaml
Created May 4, 2019 08:35
Bar deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: bar
spec:
replicas: 1
selector:
matchLabels:
app: bar
template:
@simonwahlgren
simonwahlgren / config
Created February 26, 2020 08:53
i3 config
set $mod Mod4
font pango:Terminus Bold 14px
floating_modifier $mod
hide_edge_borders smart
new_window pixel 1
focus_follows_mouse no
# enable floating when previewing images
for_window [class="Display"] floating enable
@simonwahlgren
simonwahlgren / init.vim
Created February 26, 2020 08:54
Neovim config
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Bootstrap
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
silent !mkdir -p ~/.vim/sessions/ > /dev/null 2>&1
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Variables
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:python_host_prog = '/usr/bin/python2'
let g:python3_host_prog = '/usr/bin/python3'
@simonwahlgren
simonwahlgren / plugins.vim
Created February 26, 2020 08:55
Neovim plugins
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.config/nvim/plugged')
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General