Skip to content

Instantly share code, notes, and snippets.

View zsimic's full-sized avatar

Zoran Simic zsimic

  • Netflix
  • Los Gatos, CA
  • 23:51 (UTC -07:00)
View GitHub Profile
@zsimic
zsimic / starship.toml
Created December 17, 2020 02:03
startship.toml
# My config for https://starship.rs/
# It's minimalistic, I like single-line prompts, features:
# - show active python version when non-system python is on PATH
# - show duration only when last command took more than 5s
format="$cmd_duration$custom$directory$character"
add_newline = false
[directory]
format = "[$path]($style)[$read_only]($read_only_style)"
@zsimic
zsimic / linode-ddns.sh
Last active January 3, 2026 01:45
Linode dynamic dns on ubiquiti edge router
#!/bin/bash
# See https://gist.github.com/zsimic/c39dd9686c6d6b0d149a67ff23286b99 for docs on how to use
# Note: you can invoke with LOGFILE= for troubleshooting
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
if [ -z "$1" -a -f $LOGFILE ]; then # Pass any command line arg to avoid the logging redirect
exec $0 run 1>> $LOGFILE 2>&1
fi
@zsimic
zsimic / Non-staggered,-compact.kbd.json
Last active March 24, 2021 21:56
Non staggered, compact
[
{
"name": "Non staggered, compact",
"author": "Zoran Simic"
},
[
"Esc",
{
"x": 0.5
},
@zsimic
zsimic / Compact,-staggered.kbd.json
Last active April 10, 2023 03:57
Compact, staggered
[
{
"name": "Compact, staggered",
"author": "Zoran Simic"
},
[
{
"c": "#768e72"
},
"Esc",