Skip to content

Instantly share code, notes, and snippets.

@J-Swift
J-Swift / provision.sh
Created March 1, 2023 20:19
nix auto-updating system with flakes
#!/usr/bin/env bash
set -euo pipefail
readonly flake_name='u3macbook'
readonly real_script_dir=$( dirname $(readlink $HOME/.config/nixpkgs/flake.nix) )
header() {
local -r msg="${1:-}"
@SMUsamaShah
SMUsamaShah / list_of_p2p_file_sharing.md
Last active May 14, 2026 13:33
List of P2P file sharing tools

Browser Based

  1. Web Wormhole https://webwormhole.io/ https://github.com/saljam/webwormhole
  2. Localsend https://web.localsend.org/
  3. FilePizza https://file.pizza/
  4. ShareDrop sharedrop.io https://github.com/szimek/sharedrop (SOLD, not recommended, use one of the forks)
    1. A clone SnapDrop snapdrop.net https://github.com/RobinLinus/snapdrop (SOLD, not recommended, use one of the forks)
      1. A fork PairDrop https://pairdrop.net/ https://github.com/schlagmichdoch/pairdrop
  5. ToffeeShare https://toffeeshare.com/
  6. Instant.io https://instant.io/
sources:
scratch_logs:
type: "journald"
include_units: ["scratchworker.service", "scratchdb.service"]
init_logs:
type: "journald"
include_units: ["init.scope"]
@stevebauman
stevebauman / vite.config.js
Last active May 8, 2025 01:08
Vite Server Cors Allow Any Subdomain
import { defineConfig, loadEnv } from 'vite';
// ...
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd());
const { protocol, hostname } = new URL(env.VITE_URL);
const root = hostname.split('.').slice(-2).join('\\.');
[
{
"key": "cmd+shift+l",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "console.dir(${TM_SELECTED_TEXT}$1, { depth: null })$0;"
}
}
]