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 / 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 / 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 / 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 / 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 / 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 / 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 / docker-compose.yml
Last active August 10, 2023 19:53
Docker Compose file for Jira/Confluence/Postgres setup
version: '3.3'
services:
confluence-server:
depends_on:
- postgres-server
environment:
- JVM_MINIMUM_MEMORY=$JVM_MIN
- JVM_MAXIMUM_MEMORY=$JVM_MAX
- JVM_RESERVED_CODE_CACHE_SIZE=$JVM_HEAP
- ATL_PROXY_NAME=site.url
@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 / app.js
Last active September 8, 2022 13:54
Testing localStorage with d3
// refactored - combined the retreive and set to one function.
d3.select("#cText").on("input", function() {
localStorage.setItem('cText', this.value);
d3.select('#textOut').text(localStorage.getItem('cText'));
});
d3.select("#nRange").on("input", function() {
localStorage.setItem('nRange', +this.value);
d3.select('#rangeOut').text(localStorage.getItem('nRange'));