Skip to content

Instantly share code, notes, and snippets.

View jtmoon79's full-sized avatar
💭
😇

James Thomas Moon jtmoon79

💭
😇
View GitHub Profile
@jtmoon79
jtmoon79 / glances-install.sh
Last active October 26, 2022 02:23
install glances system monitor on a Debian system
#!/usr/bin/env bash
#
# install glances system monitor onto a Debian-based System under user "glances"
# https://github.com/nicolargo/glances
#
# This creates user "glances" (which glances presumes to do) but for the purpose of install the program glances (and the
# required libraries) under permissions of user glances. This way,
# - glances programs are slightly better contained under user glances permissions
# - glances (and related programs) are not added to shared $PATH directories
#
@jtmoon79
jtmoon79 / glances-start.sh
Last active October 26, 2022 02:33
start glances, single instance, user glances
#!/usr/bin/env bash
#
# run single instance of glances on the system as user glances.
# follows from https://gist.github.com/jtmoon79/1b5a806b3e71874542c21b1578156a42
# designed for a Debian-based Linux
#
# place this file at /var/lib/glances/glances-start.sh
# chmod +x /var/lib/glances/glances-start.sh
# should look like:
# ls -l /var/lib/glances/glances-start.sh
@jtmoon79
jtmoon79 / build-install-airdc++.sh
Last active September 28, 2019 19:44
build and install Air DC++ (airdcppd) on Raspberry Pi
# Build Air DC++ for Raspberry Pi Debian Stretch
# Uses a docker Raspberry Pi image to temporarily install necessary build tools and contain the mess
#
# This is not a script. This is shell commands that should be copy+pasted and tweaked to your setup
#
# This worked for using Raspberry Pi Debian Stretch and AirDC++ version 2.7.0b
# MMV
#
# run on Raspberry Pi
@jtmoon79
jtmoon79 / stubby-docker-service.md
Last active March 5, 2021 04:17
Running stubby DNS Privacy stub resolver and unbound DNS with stubby-docker as a systemd service

Keybase proof

I hereby claim:

  • I am jtmoon79 on github.
  • I am dooderjt (https://keybase.io/dooderjt) on keybase.
  • I have a public key ASDDc_Zh-ZlWNTe9LYxFDdiMXL60HMpy9qgc6kvEOaZ6Hgo

To claim this, I am signing this object:

@jtmoon79
jtmoon79 / python-embedded-for-Win10.md
Last active June 4, 2024 16:13
fully configuring embedded Python on Windows 10

Update: use PowerShell script PythonEmbed4Win.ps1.

The instructions in this gist have some subtle problems and this gist will not be updated.

About


@jtmoon79
jtmoon79 / network-certificate-authority-and-host-certificate-creation-instructions.md
Last active January 6, 2023 05:42
Network Certificate Authority and Host Certificate creation instructions
@jtmoon79
jtmoon79 / venv-create.sh
Last active July 20, 2022 22:46
Python virtualenv create
#!/usr/bin/env bash
#
# helper to quickly create a Python virtualenv
# latest at https://github.com/jtmoon79/dotfiles/blob/master/utilities/venv-create.sh
set -eu
# XXX: not very portable
source /etc/os-release
@jtmoon79
jtmoon79 / pip.sh
Created January 21, 2022 06:31
Python pip wrapper
#!/usr/bin/env bash
#
# wrap python pip commands with helpful but tedious-to-write options
#
set -e
set -u
cmd=${1-help}
shift