Skip to content

Instantly share code, notes, and snippets.

@Snuupy
Snuupy / DEVICES.md
Last active April 1, 2024 07:05
things I keep having to dig up every time but are in various different places when I have to reflash various devices
We couldn’t find that file to show.
@Snuupy
Snuupy / docker-compose.yml
Created March 19, 2023 14:40
self-hosting outline
version: "3"
services:
outlineredis:
container_name: outlineredis
image: redis
restart: always
outlinepostgres:
container_name: outlinepostgres
image: postgres:13
environment:
@Snuupy
Snuupy / librewolf.overrides.cfg
Last active May 31, 2023 14:32
A usable librewolf.overrides.cfg for regular browsing
defaultPref("privacy.resistFingerprinting", false);
defaultPref("identity.fxaccounts.enabled", true);
defaultPref("privacy.clearOnShutdown.history", false);
defaultPref("privacy.clearOnShutdown.siteSettings", false);
defaultPref("privacy.clearOnShutdown.downloads", false);
defaultPref("privacy.clearOnShutdown.cookies", false);
defaultPref("privacy.clearOnShutdown.offlineApps", false);
defaultPref("privacy.clearOnShutdown.siteSettings", false);
defaultPref("privacy.clearOnShutdown.sessions", false);
defaultPref("media.peerconnection.ice.no_host", false);
@Snuupy
Snuupy / docker-compose1.yml
Created April 20, 2022 17:26
thelounge w/ docker-swag
# docker-swag/docker-compose.yml
---
version: "3"
services:
swag:
image: ghcr.io/linuxserver/swag
container_name: swag
networks:
- swag
cap_add:
@Snuupy
Snuupy / Dockerfile
Last active October 11, 2020 19:12
meshcentral docker-compose
FROM node:alpine
ARG MESHCENTRAL2_VERSION="0.6.43"
WORKDIR /meshcentral
ENV NODE_ENV=production
RUN apk update
RUN npm install meshcentral@${MESHCENTRAL2_VERSION}
RUN npm install --no-optional --save archiver otplib image-size node-rdpjs-2 archiver-zip-encrypted
EXPOSE 80 443 4443
@Snuupy
Snuupy / zulip.txt
Created September 12, 2020 21:09
zulip quick reference commands
https://github.com/zulip/zulip/tree/master/zerver/management/commands
realm_domain
list_realms
generate_realm_creation_link
deactivate_realm
scrub_realm

OpenWRT Wireguard with Virtual SSIDs Setup

Setup: These steps were performed OpenWRT 19.07.3.

Context: The goal of this is to set up a virtual network where clients can switch from 1 network with a wireguard VPN connection to another without a VPN connection easily. VPN termination is to the router as opposed to the client. This may be useful for setups such as on insecure networks, while still wanting the ability to switch between the 2 at your leisure.

  1. Set up Wireguard on remote server:
@Snuupy
Snuupy / serviceworker.js
Last active December 15, 2019 10:08
Getting TheLounge to work with Kiwi Browser on Android
npm i && NODE_ENV=production npm run-script build && npm link
// https://stackoverflow.com/questions/48463483/what-causes-a-failed-to-execute-fetch-on-serviceworkerglobalscope-only-if
if (e.request.cache === 'only-if-cached' && e.request.mode !== 'same-origin') {
return;
}
async function networkOrCache(event) {
@Snuupy
Snuupy / VitalSource Bookshelf to PDF.scpt
Created May 7, 2017 04:49
Automatically outputs VitalSource books (probably your textbooks) to non-DRM'd PDF.
set totalPages to 1000 -- put total number of pages here
set startPage to 0
set authorName to "YOUR AUTHOR HERE -- put author name here
tell application "VitalSource Bookshelf"
activate
repeat with theIncrementValue from startPage to totalPages - 1 by 5
if (theIncrementValue = 0) then
set thisValue to "1" -- if we're just starting, start at 1
else