Skip to content

Instantly share code, notes, and snippets.

View GlodenBoy's full-sized avatar
💭
I may be slow to respond.

Ninety GlodenBoy

💭
I may be slow to respond.
View GitHub Profile
@Meldiron
Meldiron / backup.sh
Last active May 2, 2025 07:45
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 \
@anotherlab
anotherlab / SysProp.cs
Created February 8, 2019 20:41
Xamarin C# code to access system properties via Android's hidden SystemProperties class
using System;
namespace Os.Properties
{
// Get access to the hidden SDK class SystemProperties. The SystemProperties
// class provides access to the System Properties store. This store contains
// a list of key-value pairs
// See https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/SystemProperties.java
public static class SysProp
{
@walterlv
walterlv / AsyncBox.cs
Last active August 8, 2022 07:38
A UI container for async loading.
using System;
using System.Collections;
using System.ComponentModel;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Threading;
using Walterlv.Demo;