Skip to content

Instantly share code, notes, and snippets.

startup: 94.7
event time percent plot
packer_compiled.lua 21.36 22.56 ██████████████████████████
%home%me%Repositorie 19.38 20.46 ███████████████████████▋
cmp_nvim_lsp_signatu 15.75 16.63 ███████████████████▏
cmp 15.64 16.51 ███████████████████
treesitter-context.v 10.80 11.41 █████████████▏
treesitter-context 10.79 11.40 █████████████▏
nvim-treesitter.ts_u 10.71 11.31 █████████████
user.impatient 10.28 10.85 ████████████▌
@MikaelElkiaer
MikaelElkiaer / add-ca.bash
Last active June 16, 2022 10:34
Add CA cert in Arch
cp <some-ca.ca> /etc/ca-certificates/trust-source/anchors/
update-ca-trust extract
@MikaelElkiaer
MikaelElkiaer / install_cert_chromium.bash
Created June 9, 2022 05:40
Install certificate in Chromium browsers
# https://unix.stackexchange.com/a/643394
certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n <certificate nickname> -i <certificate filename>
@MikaelElkiaer
MikaelElkiaer / migrate-automations.bash
Last active March 20, 2022 12:59
Flux2 migrations
#!/bin/bash
POSTFIX=${1:-"-dev"}
IMAGE_REGEX="^(?P<ts>[0-9]{4}\.[0-9]{2}\.[0-9]{2}\.[0-9]{2}\.[0-9]{2})_[a-f0-9]+${POSTFIX}\$"
IMAGE_EXTRACT='$ts'
for f in $(fd -g "**/*.yaml"); do
AUTOMATED=$(cat $f | yq -r 'select(.metadata.annotations?["fluxcd.io/automated"]=="true") | .metadata.name+"^"+.metadata.namespace')
for o in $AUTOMATED; do
if [[ -n "$o" ]]; then
@MikaelElkiaer
MikaelElkiaer / sweep.json
Created September 23, 2021 14:39
Layout for Ferris Sweep
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "ferris/sweep",
"keymap": "mikaelelkiaer",
"layout": "LAYOUT",
"layers": [
[
"KC_Q",
@MikaelElkiaer
MikaelElkiaer / crkbd_via.json
Created June 15, 2021 22:10
Corne VIA config
{
"name": "Crkbd",
"vendorProductId": 1179844609,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_TAB",
"KC_Q",
"KC_W",
"KC_E",
{
"version": 1,
"documentation": "This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\n",
"keyboard": "crkbd/rev1",
"keymap": "crkbd_rev1_common_layout_split_3x6_3_mine",
"layout": "LAYOUT_split_3x6_3",
"layers": [
[
"KC_TAB",
"KC_Q",
@MikaelElkiaer
MikaelElkiaer / 656801835.txt
Last active June 1, 2021 17:32
GK61XS config
[Base]
CapsLock:LShift+LAlt
Space_4:TempSwitchLayer1
[Layer1]
All:Disabled
H:Left
J:Down
K:Up
L:Right
setxkbmap -layout us,dk -option grp:caps_toggle