Skip to content

Instantly share code, notes, and snippets.

View questionlp's full-sized avatar
🐍
Wait Wait Statsing

Linh Pham questionlp

🐍
Wait Wait Statsing
View GitHub Profile
@questionlp
questionlp / update-esxi-offline-bundle-depot-file.md
Last active June 19, 2023 01:02
Updating ESXi from Offline Bundle/Depot File

Install offline bundle

esxcli software vib update --depot /vmfs/volumes/ depot.zip

List profiles in offline bundle

esxcli software sources profile list -d depot.zip
@questionlp
questionlp / fixing-pfsense-package-repo-cert-errors.md
Created May 27, 2023 00:53
Fixing pfSense Package Repo Certificate Errors

Switch the version in System / Update / System Update from the new version to the current version

Under Diagnostics / Command Prompt, run the following command:

pkg-static clean -ay; pkg-static install -fy pkg pfSense-repo pfSense-upgrade

Back under System / Update / System Update, switch to the new version.

@questionlp
questionlp / audacity-dalek-voice-effect.md
Created May 24, 2023 13:50
Making an audio clip of someone sounding like a Dalek

Making an audio clip of someone sounding like a Dalek

The steps below were based on the information provided in a blog post at Richard Loxley Ltd

Pre-requisites

@questionlp
questionlp / convert-bincue-chd-m3u.md
Last active December 29, 2023 02:49
Converting .bin+.cue to .chd and create .m3u files

Compressed

for i in *.cue; do chdman createcd -i "$i" -o "${i%.*}.chd"; done

Uncompressed

@questionlp
questionlp / freebsd-find-remove-corrupted-pkg-symlinks.md
Last active April 29, 2023 05:47
FreeBSD: Find and remove corrupted or missing pkg symlinks
@questionlp
questionlp / marsupialgurgle-codon-custom.css
Created November 24, 2022 23:12
Custom CSS for Marsupial Gurgle Codon Theme
a:link, a:visited, a.active {
color: navy !important;
}
a:hover {
border-bottom: 1px solid;
}
div.main-navigation-wrap a:link,
div.main-navigation-wrap a:visited,
@questionlp
questionlp / mastodon_ibm-plex.css
Last active June 11, 2026 22:14
Mastodon IBM Plex Web Font CSS
@font-face {
font-family:mastodon-font-sans-serif;
src:local("IBM Plex Sans Italic"),
url(/packs/assets/fonts/ibm-plex-sans/IBMPlexSans-Italic.woff2) format("woff2"),
url(/packs/assets/fonts/ibm-plex-sans/IBMPlexSans-Italic.woff) format("woff"),
url(/packs/assets/fonts/ibm-plex-sans/IBMPlexSans-Italic.ttf) format("truetype");
font-weight:400;
font-display:swap;
font-style:italic
}
@questionlp
questionlp / Building Python 3 on Ubuntu 22.04 or Debian 12.md
Last active January 6, 2024 21:50
Building Python 3 on Ubuntu 22.04 or Debian 12

Building Python 3 on Ubuntu 22.04 LTS or Debian 12

Installing Required Packages

sudo apt install build-essential checkinstall libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libreadline-dev libffi-dev python3-pip python3-venv liblzma-dev

Building Python

@questionlp
questionlp / jupyterhub
Created July 24, 2022 01:41 — forked from lambdalisue/jupyterhub
A service (init.d) script for jupyterhub
#! /bin/sh
### BEGIN INIT INFO
# Provides: jupyterhub
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start jupyterhub
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@questionlp
questionlp / undo-dock-autohide-speed.sh
Created July 12, 2022 20:51
Reset macOS Dock Auto-Hide Speed to Default
#!/bin/sh
defaults write com.apple.dock autohide-delay -float 0.5
defaults write com.apple.dock autohide-time-modifier -float 0.5
killall Dock