This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# About: Manually open and mount crypted device | |
# Location: /usr/local/bin/ | |
# Usage: | |
# $ cryptopen /home/dir | |
# gets dirs, device names etc automatically from | |
# /etc/fstab: | |
# /dev/mapper/cryptdir /home/dir ext3 noauto,defaults 0 0 | |
# /etc/crypttab: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Requires OpenSSL >= 1.0.0 | |
* $ gcc -o pbkdf2 -lcrypto pbkdf2.c | |
* | |
* License: GPL2 | |
*/ | |
#include <err.h> | |
#include <errno.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function() { | |
const DARKMODE = true; | |
function every( sel, how, fil ) { | |
Array.from( document.getElementsByTagName( sel )) | |
.filter( e => fil ? fil( e ) : true ) | |
.forEach( how ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Purpose: Creates sub-directories with symlinks to files that are scattered over | |
# different directories but share a commonality, e.g, being 'a favourite' | |
# Context: Media collections | |
# Analogy: Database views, locate-command result saved as filesystem objects | |
# Author : github.com/andre-st | |
# Version: 2021-01-28 | |
# | |
# Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////////////////////////////////// | |
// | |
// AMAZON.DE WISHLESS - WISHLIST PRICE FILTERING | |
// | |
// - adds UI elements to every Amazon wishlist control bar | |
// - optionally filter by price range | |
// - optionally filter by free shipping | |
// - keeps filter settings across wishlists | |
// | |
mixin( ["https://www.amazon.de/hz/wishlist/", "https://www.amazon.de/gp/registry/wishlist/"], () => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////////////////////////////////// | |
// | |
// AMAZON.DE WITH GOODREADS.COM RATINGS | |
// | |
// Replaces Ruben Martinez's "Goodreads Ratings for Amazon" extension. | |
// | |
mixin( ["https://www.amazon.de/"], () => | |
{ | |
// There are often e-book editions on Goodreads when there are no paper editions. | |
// The e-book ASIN isn't similar to ISBN, as opposed to the paper book ASIN. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////////////////////////////////// | |
// | |
// GOODREADS.COM | |
// | |
// Force shelf view settings: | |
// | |
redir( /(https:\/\/www\.goodreads\.com\/review\/list\/[^?]+)(?=(?:.*[?&](page=\d+))?)(?=(?:.*[?&](shelf=[^&]+))?)(.*)/, | |
'$1?per_page=100&sort=rating&order=d&view=covers&$2&$3' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////////////////////////////////// | |
// | |
// FREIE-RADIOS.NET | |
// | |
// 1. Adds download-buttons for the audio-files of each article directly on the frontpage | |
// 2. Removes 'internal' no-audio articles from the frontpage | |
// 3. History of already downloaded audio | |
// | |
mixin( ["https://www.freie-radios.net/"], () => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
OUTFILE=timeline.csv | |
echo "date,path,user,size" > "${OUTFILE}" | |
find . -printf '%TY-%Tm-%Td,"%p","%u",%s\n' | sort >> "${OUTFILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Requires: | |
# - ffmpeg | |
# - GNU Gnash: | |
# $ git clone git://git.sv.gnu.org/gnash.git | |
# $ cd gnash | |
# $ ./autogen.sh | |
# $ ./configure --enable-renderer=agg --enable-gui=dump --disable-menus --enable-media=ffmpeg --disable-jemalloc | |
# $ make > /dev/null |
OlderNewer