Skip to content

Instantly share code, notes, and snippets.

@azmodude
azmodude / shadowsock2-install.sh
Last active May 28, 2021
shadowsock2 install
View shadowsock2-install.sh
#!/bin/bash
# Install shadowsock2 service.
# Tested on Fedora34
read -p 'Listening Port (443 recommended): ' ssport
read -s -p 'Password: ' sspw
echo "SHADOWSOCK_PORT=${ssport}" > /root/.shadowsock.env
echo "SHADOWSOCK_PASSWORD=${sspw}" >> /root/.shadowsock.env
@azmodude
azmodude / zfs-load-key@.service
Created Apr 21, 2021
ZFS supplementary service files
View zfs-load-key@.service
[Unit]
Description=Load ZFS encryption keys for %I
DefaultDependencies=no
After=zfs-import.target
Before=zfs-mount.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/zfs load-key %i
@azmodude
azmodude / AmazonSmile_redirect.user.js
Last active Dec 3, 2019 — forked from jdelamater99/AmazonSmile_redirect.user.js
AmazonSmile Redirect (Greasemonkey Script)
View AmazonSmile_redirect.user.js
// ==UserScript==
// @name AmazonSmile Redirect
// @namespace http://jdel.us
// @description Redirect Amazon to AmazonSmile
// @include /^http://.*\.amazon\.(de|com)//
// @include /^https://.*\.amazon\.(de|com)//
// @version 0.6
// @grant none
// ==/UserScript==