Skip to content

Instantly share code, notes, and snippets.

@ivystopia
ivystopia / docker-compose.yml
Created June 30, 2024 21:26
Example docker-compose
services:
monero-node:
container_name: Monero-Node
image: ghcr.io/sethforprivacy/simple-monerod:latest
restart: unless-stopped
network_mode: bridge
deploy:
resources:
limits:
memory: '16G'

Keybase proof

I hereby claim:

  • I am ivystopia on github.
  • I am ivystopia (https://keybase.io/ivystopia) on keybase.
  • I have a public key ASBIEmBnK7IMPu12oiDkWbIn2evPq_s6VNv_Zk4K4j28Wgo

To claim this, I am signing this object:

$argon2id$v=19$m=8192,t=2,p=4$gigFZyRbxYCKqWDr5eKSMQ$B4QluPvWJ4Vvu9GmHmYRU3urefKFhY4I
@ivystopia
ivystopia / spotispy.py
Last active July 14, 2023 20:46
Save Spotify playlists for a user
#! /usr/bin/env python3
# Need to set SPOTIPY_CLIENT_ID and SPOTIPY_CLIENT_SECRET env vars
# Then run with ./spotispy.py username
# It will save playlists in "data" directory relative to the current directory
import sys
import json
import spotipy
from pathlib import Path
#!/bin/bash
# Delete all objects and versions from an S3 bucket
# including objects with spaces in their names
# Does not also delete the bucket, you must do this with aws s3 rb
# IMPORTANT: Disable versioning on the bucket before running this script
# otherwise when the object is deleted, a new version will be created
# Usage: ./delete_s3.sh bucket_name [aws_profile]
bucket=$1
@ivystopia
ivystopia / Weechat
Last active January 31, 2016 14:48
Weechat
# Create a sidebar with channels organised under their respective servers
/script install buffers.pl autosort.py
/set buffers.look.indenting on
/set irc.look.server_buffer independent
/autosort
/layout save