Skip to content

Instantly share code, notes, and snippets.

@Nitrousoxide
Nitrousoxide / jnc-add.sh
Created March 13, 2022 04:24 — forked from precurejunkie/jnc-add.sh
Wrapper utilities for https://github.com/gvellut/jncep to make it easier to use
#!/bin/bash
# Put your username and password in this file:
. ~/.jncep/credentials
# in the following format: (without the # in front)
# [email protected]
# PASSWORD='password'
# This will download everything that exists in the series you point it at, assuming
# they haven't expired, consolidating parts by volume into single epubs if
#!/bin/bash
# Get a list of all volumes
volumes=$(podman volume ls -q)
#get timestamp for unique filename
timestamp=$(date +"%Y%m%d%H%M%S")
# Pause all running containers
echo "Pausing containers for backup"
podman pause $(podman ps -q)
@Nitrousoxide
Nitrousoxide / lemmyfollowbookmarklet
Last active June 29, 2023 09:02
Lemmy Follow Bookmarklet
javascript:(function() {
var currentUrl = window.location.href;
var instanceUrl = 'https://beehaw.org'; /*replace this with your local instance's URL with no ending '/' */
var communitySlug = currentUrl.split('/c/')[1];
var originalUrl = currentUrl.split('/')[2];
var subscribeUrl = instanceUrl + '/c/' + communitySlug + '@' + originalUrl;
window.location.href = subscribeUrl;
})();
javascript:(function() {
/*Create a new bookmark in your web browser.
Edit the bookmark and replace the URL with the generated JavaScript code above.
Save the bookmark.
Navigate to the Mastodon feed page for which you want to extract the RSS URL.
Click on the bookmark you just created.*/
var feedUrl = window.location.href;
version: '2'
services:
pihole:
container_name: pihole_no_wireguard
image: pihole/pihole:latest
hostname: pi-hole
mac_address: d0:ca:ab:cd:ef:01
#cap_add: # Uncomment if you want to use Pi-Hole for DHCP
# - NET_ADMIN
@Nitrousoxide
Nitrousoxide / readme.md
Last active September 3, 2024 21:44
Tree Style Tabs
@Nitrousoxide
Nitrousoxide / bookworm search-replace.csr
Last active December 12, 2023 16:25
Bookworm - Search and Replace
Mr.
dedication dance
dedication whirl
sleeper
bed
{
"createdBy": "Redirector v3.5.3",
"createdAt": "2023-12-15T12:57:37.884Z",
"redirects": [
{
"description": "Example redirect, try going to http://example.com/anywordhere",
"exampleUrl": "http://example.com/some-word-that-matches-wildcard",
"exampleResult": "https://google.com/search?q=some-word-that-matches-wildcard",
"error": null,
"includePattern": "http://example.com/*",
:root {
/* This value should be updated here and in the userChrome.css */
--tst-sidepanel-hide-delay: .5s;
}
/* Hide border on tab bar, force its state to 'scroll', adjust margin-left for width of scrollbar. */
#tabbar {
border: 0;
scrollbar-width: none;
overflow: scroll !important;
<a href="https://derinstories.com/2022/06/04/001-the-problem-with-the-javelin-program/">– 001: JAVELIN –</a>
<a href="https://derinstories.com/2022/06/05/002-duty/">– 002: DUTY –</a>
<a href="https://derinstories.com/2022/06/06/003-assessment/">– 003: ASSESSMENT –</a>
<a href="https://derinstories.com/2022/06/07/004-travel/">– 004: TRAVEL –</a>
<a href="https://derinstories.com/2022/06/08/005-history/">– 005: GHOSTS –</a>
<a href="https://derinstories.com/2022/06/15/006-recovery/">– 006: RECOVERY –</a>
<a href="https://derinstories.com/2022/06/22/007-predecessor/">– 007: PREDECESSOR –</a>
<a href="https://derinstories.com/2022/06/29/008-override/">– 008: OVERRIDE –</a>
<a href="https://derinstories.com/2022/07/06/009-ascend/">– 009: ASCEND –</a>
<a href="https://derinstories.com/2022/07/13/010-alone/">– 010: ALONE –</a>