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 / change-wifi-cloned-mac-address-permanent-address-ssid.md
Last active May 2, 2024 17:02
Change WiFi Cloned MAC Address to Permanent Address for an SSID

Change WiFi Cloned MAC Address to Permanent Address for an SSID

The following command is required to set the MAC address for a wireless interface for a given wireless network profile (which is named after the corresponding SSID) to the permanent address.

This is in response to a change introduced in Fedora 40 as documented in the Fedora Wiki: Changes/StableSSIDMACAddress

nmcli connection modify {ssid} wifi.cloned-mac-address permanent
@questionlp
questionlp / lock-mysql-version-using-dnf.md
Created May 1, 2024 16:52
Lock MySQL Version Using DNF
sudo dnf install 'dnf-command(versionlock)'
sudo dnf versionlock add mysql-community-client
sudo dnf versionlock add mysql-community-server
sudo dnf versionlock add mysql-community-common
sudo dnf versionlock add mysql-community-client-plugins
sudo dnf versionlock add mysql-community-libs
sudo dnf versionlock add mysql-community-icu-data-files
@questionlp
questionlp / Override TERM environment variable in a tmux Session.md
Last active February 23, 2024 16:20
Override TERM environment variable in a tmux Session

Override TERM environment variable in a tmux Session

To override the $TERM environment variable within tmux sessions, add the following to .tmux.conf and change tmux-256color to xterm or xterm-256color.

set -g default-terminal "tmux-256color"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
@questionlp
questionlp / Installing Requirements for Building CPython and Ruby on Fedora 39.md
Last active March 31, 2024 00:19
Installing Requirements for Building CPython and Ruby on Fedora 39

Installing Requirements for Building CPython on Fedora 39

First we install some common development tools like gcc and make, Fedora provides a group of packages for that call Development Tools

sudo dnf groupinstall "Development Tools" 

To build Python we need some additional packages

@questionlp
questionlp / Install Fedora Packages.md
Last active March 1, 2024 20:39
Install Fedora Packages

Install Fedora Packages

Base Workstation Software

sudo dnf install htop screen vim neofetch mozilla-fira-mono-fonts mozilla-fira-sans-fonts fira-code-fonts jetbrains-mono-fonts-all cascadia-fonts-all cascadia-code-fonts cascadia-code-pl-fonts ibm-plex-fonts-all git gh zsh avahi-tools

Base Server Software

@questionlp
questionlp / debian-firefox-kde-wayland.md
Created December 27, 2023 03:28
Debian 12, Firefox Stable and KDE Wayland.md
@questionlp
questionlp / hiding-youtube-shorts-subscription-page.md
Last active April 4, 2024 14:42
Hiding YouTube Shorts in the Subscription Page

Hiding YouTube Shorts in the Subscription Page

To hide YouTube shorts from appearing in when viewing your YouTube subscriptions, you can define a custom stylesheet for Safari and Firefox.

Safari

Create a CSS file with the following:

@questionlp
questionlp / truenas-scale-node_exporter.service
Created October 12, 2023 00:19
node_exporter Service File for TrueNAS SCALE
[Unit]
Description=Node Exporter
After=network-online.target
[Service]
User=node_exporter
Group=node_exporter
Type=simple
ExecStart=/usr/bin/node_exporter \
--collector.filesystem.fs-types-exclude="^(sys|proc|auto|squash|ns|rpc_pipe|tmp|n)(fs|fs4)$" \
@questionlp
questionlp / gist:7392321b9f33f652d9c346dec5f660cb
Created October 2, 2023 02:03
yt-dlp: Template to include upload date in file name
-o %(upload_date)s - %(title)s [%(id)s].%(ext)s
@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