Skip to content

Instantly share code, notes, and snippets.

View kmARC's full-sized avatar

Mark Korondi kmARC

View GitHub Profile
#!/usr/bin/env bash
set -x
alacritty -e bash -c "\
x11docker --share /dev/net/tun \
--sudouser \
--dbus \
--runasroot 'iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE' \
--name f5vpn \
-- \
--sysctl net.ipv4.ip_forward=1 \
FROM archlinux AS builder
RUN pacman -Sy --needed --noconfirm \
sudo base-devel wget
RUN useradd builduser -m \
&& passwd -d builduser \
&& bash -c "printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers "
RUN sudo -u builduser bash -c 'mkdir -p /tmp/build'
00:00:00.000 [sway/main.c:326] Sway version v1.5
00:00:00.002 [sway/main.c:153] Linux naga 5.4.53-1-lts #1 SMP Wed, 22 Jul 2020 20:16:09 +0000 x86_64 GNU/Linux
00:00:00.002 [sway/main.c:169] Contents of /etc/lsb-release:
00:00:00.002 [sway/main.c:153] LSB_VERSION=1.4
00:00:00.002 [sway/main.c:153] DISTRIB_ID=Arch
00:00:00.002 [sway/main.c:153] DISTRIB_RELEASE=rolling
00:00:00.002 [sway/main.c:153] DISTRIB_DESCRIPTION="Arch Linux"
00:00:00.002 [sway/main.c:169] Contents of /etc/os-release:
00:00:00.002 [sway/main.c:153] NAME="Arch Linux"
00:00:00.002 [sway/main.c:153] PRETTY_NAME="Arch Linux"
2020-07-30 16:32:38 - [sway/main.c:152] Linux naga 5.4.53-1-lts #1 SMP Wed, 22 Jul 2020 20:16:09 +0000 x86_64 GNU/Linux
2020-07-30 16:32:38 - [sway/main.c:168] Contents of /etc/lsb-release:
2020-07-30 16:32:38 - [sway/main.c:152] LSB_VERSION=1.4
2020-07-30 16:32:38 - [sway/main.c:152] DISTRIB_ID=Arch
2020-07-30 16:32:38 - [sway/main.c:152] DISTRIB_RELEASE=rolling
2020-07-30 16:32:38 - [sway/main.c:152] DISTRIB_DESCRIPTION="Arch Linux"
2020-07-30 16:32:38 - [sway/main.c:168] Contents of /etc/os-release:
2020-07-30 16:32:38 - [sway/main.c:152] NAME="Arch Linux"
2020-07-30 16:32:38 - [sway/main.c:152] PRETTY_NAME="Arch Linux"
2020-07-30 16:32:38 - [sway/main.c:152] ID=arch
@kmARC
kmARC / config.ctags
Created May 5, 2020 11:47
config.ctags
# Yaml
--langmap=yaml:.yml.yaml
--regex-yaml=/^\s*([A-Za-z0-9_-]+):/\1/k,key,keys/
# Shell
--langmap=sh:+.env.envrc
--regex-sh=/(^|\s)([A-Za-z0-9_]+)=[^\s]/\2/v,var,vars/
--regex-sh=/for\s+([A-Za-z0-9_]+)\s+in/ \2/v,var,vars/
--langdef=typescript
--langmap=typescript:.ts,typescript:+.tsx
@kmARC
kmARC / vimrc
Last active October 25, 2019 06:39
autocmd FileType dockerfile setlocal keywordprg=:DockerHelp
function! DockerHelp(keyword)
exec "silent !xdg-open https://docs.docker.com/engine/reference/builder/\\#"
\ . tolower(a:keyword)
exec 'redraw!'
endfunction
command! -nargs=1 DockerHelp :call DockerHelp(<f-args>)
RUN adduser --no-create-home --uid 1000 --gid 1000 ${AGENT_NAME}
USER 1000
set from = <your-email>
set pgp_default_key = 0xDEADBEEF
set pgp_sign_as = 0xDEADBEEF
my_hdr X-PGP-Key: https://keybase.io/<username>/pgp_keys.asc # If you use keybase
my_hdr OpenPGP: url=https://keybase.io/<username>/pgp_keys.asc
unalternates '*'
alternates <your-email>

DeGooglify

Software / Service Replacement Satisfaction License
E-mail service None yet
Contact service [Nextcloud][]
Calendar service [Nextcloud][]
GMail 📱 [K-9][] 💚💚💚
🖥 [neomutt][], [notmuch][] 💚💚💚
Google Calendar 📱 [AOSP][] calendar 💚