Skip to content

Instantly share code, notes, and snippets.

View sjustesen's full-sized avatar
🤩
Feeling awesome

Simon Justesen sjustesen

🤩
Feeling awesome
View GitHub Profile
[Unit]
Description=Disable CPU boost at boot
# After networking because we need that
After=network.target
[Service]
Type=simple
User=root
ExecStart=/bin/bash -c "echo 0 | tee /sys/devices/system/cpu/cpufreq/boost"
@sjustesen
sjustesen / 2panes1split.kdl
Created November 4, 2023 11:57
Simple Zellij layout example
layout {
pane split_direction="vertical" {
pane cwd="" command="nvim" size="70%"
pane split_direction="horizontal" size="30%" {
pane
pane
}
}
pane size=1 borderless=true {
plugin location="zellij:compact-bar"
@sjustesen
sjustesen / config.kdl
Created October 30, 2023 08:44
My Zellij config
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
keybinds {
normal {
// uncomment this and adjust key if using copy_on_select=false
// bind "Alt c" { Copy; }
}
locked {
bind "Ctrl g" { SwitchToMode "Normal"; }
}
resize {
@sjustesen
sjustesen / gist:f0b36e1f921313d8b0729115bddc4a64
Last active October 29, 2023 12:41
My Alacritty config
live_config_reload: true
window:
opacity: 0.9
dimensions:
columns: 120
lines: 30
font:
size: 13
@sjustesen
sjustesen / gist:64400bc70659b016a34ed1b0a404dc5c
Created April 4, 2023 09:53
Osmosis (OpenStreetMap tool) - Extract amenities from pbf
osmosis --read-pbf <filename>.pbf --tf accept-nodes amenity=*
--tf reject-ways --tf reject-relations --write-xml <filename>.xml
@sjustesen
sjustesen / gist:642cd649d26a80b6a61f263010b0c03d
Last active January 30, 2021 13:29
Breathe life into your old Mac, install Linux
This is a write-up from different sources
Get the "Facetime Camera" working
https://github.com/patjak/bcwc_pcie
Remove "Failed to set MokListRT" on boot.
https://askubuntu.com/questions/1279602/ubuntu-20-04-failed-to-set-moklistrt-invalid-parameter
Answer: https://askubuntu.com/a/1279764
then, as mentioned in the comments