AddOn:
- Go to about:support in your address bar
- Look for your profiles directory and open it:
- Create a file named
chrome/userChrome.css
in your profile directory:
#!/usr/local/bin/php | |
<?php | |
require_once("config.inc"); | |
require_once("system.inc"); | |
require_once("interfaces.inc"); | |
require_once("util.inc"); | |
$subsystem = !empty($argv[1]) ? $argv[1] : ''; | |
$type = !empty($argv[2]) ? $argv[2] : ''; |
#!/usr/local/bin/php | |
<?php | |
require_once("config.inc"); | |
require_once("interfaces.inc"); | |
require_once("util.inc"); | |
$subsystem = !empty($argv[1]) ? $argv[1] : ''; | |
$type = !empty($argv[2]) ? $argv[2] : ''; |
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c> |
#!/usr/bin/env bash | |
# -h or --help CLI helptext | |
if [[ "$1" =~ ^-{1,2}h(elp)?$ ]] ; then | |
echo "Usage:" | |
echo " ./latest_vanilla.sh [branch] [asset] [output]" | |
echo | |
echo "Positional Arguments:" | |
echo " [branch] is \"release\" or \"snapshot\"" | |
echo " [asset] is \"client\", \"client_mappings\", \"server\", or \"server_mappings\"" |
AddOn:
chrome/userChrome.css
in your profile directory:#!/usr/bin/env bash | |
base='https://papermc.io/api/v1/paper' | |
version=$(curl -s $base | gawk 'match($0, /"versions"\s*:\s*\[\s*"([^"]+)/, a) {print a[1]}') | |
build=$(curl -s "${base}/${version}" | awk '{print gensub(/^.+"builds"\s*:\s*{\s*"latest"\s*:\s*"([^"]+)".+$/, "\\1", "g");}') | |
url="${base}/${version}/${build}/download" | |
curl -JLO $url |
#!/usr/bin/env sh | |
set -e | |
set -x | |
CUR_PWD="$(pwd)" | |
cd "$(dirname $0)" | |
if [ ! -d zfs ]; then | |
# https://github.com/zfsonlinux/zfs/wiki/Building-ZFS |
# Disable Commercial Repo | |
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list | |
apt-get update | |
# Add PVE Community Repo | |
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list | |
apt-get update | |
# Remove nag | |
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script |
#!/usr/bin/env bash | |
# Upload file to File.io (optional expiration) | |
# fio file_name [expiration] | |
fio () { | |
if [[ "$#" -ge "2" ]]; then | |
curl -F "file=@$1" "https://file.io/?expires=$2"; | |
elif [ "$1" = "-h" ] || [ "$1" = "--help" ]; then | |
echo "Uploads a file to file.io" |