Skip to content

Instantly share code, notes, and snippets.

View SamEureka's full-sized avatar
🏚️
Working from home - CA

Sam Dennon SamEureka

🏚️
Working from home - CA
View GitHub Profile
@SamEureka
SamEureka / uris.md
Created January 2, 2024 15:03
Atlassian Plugin Download pages (version-history)
@SamEureka
SamEureka / settings.md
Created December 27, 2023 21:42
Gnome Setting hints for script

/org/gnome/desktop/interface/font-hinting 'slight'

/org/gnome/desktop/interface/font-antialiasing 'grayscale'

/org/gnome/tweaks/show-extensions-notice false

/org/gnome/desktop/interface/monospace-font-name

@SamEureka
SamEureka / README.md
Created December 20, 2023 17:48
Inkycal install on Ubuntu 23.10 for Raspberry Pi

INstall Inkycal on Ubuntu 23.10

sudo rm 91-contract-ua-esm-status 92-unattended-upgrades 95-hwe-eol 50-motd-news 10-help-text
sudo apt remove --autoremove snapd
sudo apt-mark hold snapd
sudo rm -rf /var/cache/snapd/
rm -rf ~/snap
@SamEureka
SamEureka / mouse_track_pad_settings.sh
Last active December 27, 2023 14:28
Gnome Settings
#!/bin/bash
# (c) 2023//Sam Dennon
# Keep this 'dry'
touchpad="org.gnome.desktop.peripherals.touchpad"
# List of gnome settings to change
gnome_settings=(
"accel-profile 'default'"
@SamEureka
SamEureka / spinner.sh
Created September 27, 2023 21:49
Bash Braille Spinner
#!/usr/bin/env bash
# Define an array of Braille patterns for a spinner
six_dot_cell_pattern=("⠙" "⠹" "⠸" "⠼" "⠴" "⠦" "⠧" "⠇")
eight_dot_cell_pattern=("⣾" "⢿" "⡿" "⣷" "⣯" "⢟" "⡻" "⣽")
# Set the pattern
braille_spinner=("${eight_dot_cell_pattern[@]}")
# Set the duration for each spinner frame (in seconds)
@SamEureka
SamEureka / README.md
Last active September 28, 2023 12:17
Helix LSP Installs

Install instructions for Helix editor compatible LSPs

Language LSP Install
Bash bash-language-server npm i -g bash-language-server
CSS vscode-css-language-server npm i -g vscode-langservers-extracted
Docker dockerfile-language-server-nodejs npm i -g dockerfile-language-server-nodejs
Go gopls go install golang.org/x/tools/gopls@latest
HTML vscode-html-language-server npm i -g vscode-langservers-extracted
JSON vscode-json-language-server npm i -g vscode-langservers-extracted
@SamEureka
SamEureka / README.md
Last active July 30, 2023 10:33
ZSH and P10k for all

ZSH and P10k for all!

The idea behind this gist is to make this settings the default for all users

INstalling zsh and P10k to the correct places

  • sudo apt install -y zsh (debian based distro) sudo apk add zsh (alpine)
  • sudo git clone --depth=1 https://github.com/romkatv/powerlevel10k.git /usr/share/zsh/powerlevel10k
  • sudo git clone https://github.com/zsh-users/zsh-autosuggestions /usr/share/zsh/zsh-autosuggestions
  • sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git /usr/share/zsh/zsh-syntax-highlighting
@SamEureka
SamEureka / README.md
Last active February 26, 2024 12:58
Install Let's Encrypt certs on TrueNAS Core or SCALE using ACME.sh deploy hooks

Install Let's Encrypt certs on TrueNAS Core or SCALE using ACME.sh deploy hooks

This information was spread out on several forum posts, blogs, wikis... etc. This gist is intended to collect all that information in one place so I don't have to dig it all up again. If you find it useful please leave a comment.

pre reqs

  • You need to have a working install of TrueNAS Core or SCALE. (I prefer SCALE... it is just better)
  • All of the following commands are performed in the shell on the NAS. (zsh is my prefered shell, these will work in bash)
  • You need an api key from your DNS provider (my example is Digital Ocean) and an api key for your NAS. See official documentation for instructions on generating. (not in the scope of this gist)
  • Your own domain

Install ACME.sh (one of the best scripts ever written)

@SamEureka
SamEureka / migrate.MD
Last active May 17, 2022 14:04
Migrate Libvirt VM using virsh migrate

Get the from virsh list It might be diferent from the display name in virt-manager.

virsh migrate --auto-converge --copy-storage-all --persistent --verbose <name> qemu+ssh://<new host>/system
  • Use the --undefinesource flag to delete the origial VM after migration.
  • Both new and old host need to have ssh root access setup with keys. They also need to resolve in DNS if host names are used.
@SamEureka
SamEureka / gist:cc1b596c92c03df58b06f0d1ce2a0a3c
Created September 28, 2020 19:28 — forked from dsci/gist:1347672
Delete commits from repository.
# First, check out the commit you wish to go back to (get sha-1 from git log)
git reset --hard 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a
# Then do a forced update.
git push origin +9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a^:develop
# Push specific commit
git push origin 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a:develop -f