Skip to content

Instantly share code, notes, and snippets.

View vic-cieslak's full-sized avatar

Vic vic-cieslak

  • Poland
  • 22:18 (UTC +02:00)
View GitHub Profile
@Meldiron
Meldiron / backup.sh
Last active July 3, 2024 07:43
Backup and Restore Appwrite, the lazy way 🐌
# Make sure to stop Appwrite before this backup,
# and make sure you have enough space on the machine.
# After backing up, make sure there is a file in 'backups/backup-___.tar.gz'.
# Also please check size of this file, it should be at least 5kb, even for small instances.
docker run --rm \
-v appwrite_appwrite-mariadb:/backup/appwrite-mariadb \
-v appwrite_appwrite-redis:/backup/appwrite-redis \
-v appwrite_appwrite-cache:/backup/appwrite-cache \
@cicrijerzs
cicrijerzs / cashmine.py
Created August 17, 2017 17:13
Bitcoin Cash mining calculator
#!/usr/bin/python
import urllib2,simplejson,sys
# usage python cashmine.py <ths>
# example to calculate bitcoin cash earning for 14 ths, python cashmine.py 14
def calc():
@codediodeio
codediodeio / database.rules.json
Last active July 24, 2024 21:05
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}