Skip to content

Instantly share code, notes, and snippets.

View JaxxArmstrong's full-sized avatar

Jaxx Armstrong JaxxArmstrong

View GitHub Profile
# OH-MY-ZSH (https://ohmyz.sh/) terminal theme
local black=$fg[black]
local red=$fg[red]
local blue=$fg[blue]
local green=$fg[green]
local yellow=$fg[yellow]
local magenta=$fg[magenta]
local cyan=$fg[cyan]
local white=$fg[white]
@JaxxArmstrong
JaxxArmstrong / gist:492d9fa2e2bcbf995b3b60ab94d44a99
Created September 26, 2021 19:06
Firefox user.js inclusion example
// Enable the use of userChrome.css and userContent.css
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); // default is false
// Disable Telemetry
user_pref("browser.urlbar.trimURLs","false");
user_pref("browser.newtabpage.activity-stream.feeds.telemetry browser.newtabpage.activity-stream.telemetry","false");
user_pref("browser.pingcentre.telemetry","false");
user_pref("devtools.onboarding.telemetry-logged","false");
user_pref("media.wmf.deblacklisting-for-telemetry-in-gpu-process","false");
user_pref("toolkit.telemetry.archive.enabled","false");
@JaxxArmstrong
JaxxArmstrong / gist:f3dfc7e53026a0d249c06fc5bf7036e7
Created September 20, 2021 13:17
Online and RTT check | Bash
#!/bin/bash
#
# Internet connection check and take note
# of the roundtrip time to specified host.
#
# For use on a panel.
#
HOST="4.2.2.2"
@JaxxArmstrong
JaxxArmstrong / gist:60c159b560e296e62b4c6182884b1735
Created December 9, 2019 18:26
Firefox history extraction in real-time using rofi
#!/bin/bash
# Extracts today's Firefox link history and leverages Rofi
# to present them to the user.
# Find all profiles' places.sqlite files.
dbPaths=$(find ~/.mozilla/firefox/ -type f -name "places.sqlite" -mindepth 2 -maxdepth 2 2>/dev/null)
for dbPath in $dbPaths;
do
@JaxxArmstrong
JaxxArmstrong / gist:303b6b962644133ac1b08d79d93a6f92
Last active December 2, 2019 07:35
Cron, for the absent mind
# * * * * * <command to execute>
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ └───── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0)
# │ │ │ └────────── month (1 - 12)
# │ │ └─────────────── day of month (1 - 31)
# │ └──────────────────── hour (0 - 23)
# └───────────────────────── min (0 - 59)
# ---
@JaxxArmstrong
JaxxArmstrong / gist:4db9caddd56591090e9741572a7f5c79
Created April 13, 2019 21:18
VScode Bash script header template
"Bash script header template": {
"prefix": "bashhead",
"body": [
"#!/usr/bin/env bash",
"#",
"# Desc: ${1:description}",
"#",
"# Version: ${2:versionNumber}",
"#",
"# Usage: ${3:ScriptName} [${4:options}] ${5:args}",