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 / 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
Created November 24, 2022 19:18
Mastodon IBM Plex Web Font CSS
/* IBM Plex Mono */
@font-face {
font-family: mastodon-font-monospace;
src: local("IBM Plex Mono Italic"), url(/packs/media/fonts/ibm-plex/IBMPlexMono-Italic.woff2) format("woff2"), url(/packs/media/fonts/ibm-plex/IBMPlexMono-Italic.woff) format("woff"), url(/packs/media/fonts/ibm-plex/IBMPlexMono-Italic.ttf) format("truetype");
font-weight: 400;
font-display: swap;
font-style: italic
}
@font-face {
@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
@questionlp
questionlp / dock-autohide-speed.sh
Last active July 12, 2022 20:48
Set macOS Dock Auto-Hide Speed
#!/bin/sh
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -int 0
killall Dock
@questionlp
questionlp / generate-random-mac-address.sh
Created June 14, 2022 04:14
Generate Random MAC Address Shell Script
#!/bin/sh
echo "$(printf "%012X" $(( 0x$(hexdump -n6 -e '/1 "%02X"' /dev/random) & 0xFEFFFFFFFFFF | 0x020000000000 )) | sed 's/.\{2\}/&:/g' | sed s/:$//g)"
@questionlp
questionlp / TBTL Singing Clip Mashup.md
Created June 8, 2022 01:43
Compiling TBTL Singing Clips

The following commands will connect FLAC files that contain the phrase "Singing" and "sing-songy" in the file name and copy them into the current directory.

find ~/Dropbox/TBTL -type f -name '*Singing *.flac' -exec cp "{}" . \;
find ~/Dropbox/TBTL -type f -name '*sing-songy*.flac' -exec cp "{}" . \;

To generate a text file containing a list of collected files, run:

@questionlp
questionlp / Windows 11 Context Menu Registry Fix.md
Last active May 29, 2022 16:38
Windows 11 Context Menu Registry Fix