Skip to content

Instantly share code, notes, and snippets.

@joe42
joe42 / gitstash
Last active February 16, 2016 11:32
Stash all modified files, not just their changes.
#!/usr/bin/python2.7
from git import Repo
import tempfile
import shutil
import sys
import os
import shelve
import errno
from os.path import join as joinpath
@joe42
joe42 / fusexmp_fh.c
Created December 9, 2014 21:24
FUSE Loopback File System - Changes Current Working Directory After Write Operation
/*
FUSE: Filesystem in Userspace
Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
Copyright (C) 2011 Sebastian Pipping <sebastian@pipping.org>
This program can be distributed under the terms of the GNU GPL.
See the file COPYING.
gcc -Wall fusexmp_fh.c `pkg-config fuse --cflags --libs` -lulockmgr -o fusexmp_fh
*/
@joe42
joe42 / gist:3f9e436af7cd3c9fb52f
Last active August 29, 2015 14:10
setup.py for CloudFusion, without gsutil dependency
'''
Created on 30.08.2011
@author: joe
'''
import setuptools
setuptools.setup(
name = "CloudFusion",
packages = setuptools.find_packages(),
include_package_data = True,
#!/bin/bash
#
# Installations-Script für NubiSave auf Debian bzw. Derivaten (inkl. Ubuntu)
#
# DEPRECATED - use Debian package if possible!
if [ ! -x /usr/bin/sudo ]; then
echo "Fehler: sudo muss manuell installiert und konfiguriert werden." >&2
exit 1
fi
@joe42
joe42 / issue10.patch
Last active December 28, 2015 23:59
Add Feature Issue #10, make syncfolders available in root directory Add method get_syncfolders to class SugarsyncClient, to retrieve a dictionary with available directories as keys and the id used to address them in the sugarsync api as value Modify methods get_directory_listing, __init__, _translate_path, and get_metadata of class SugarsyncSto…
From 65b88450fbdab6d83365ab06163d1f57f2b95209 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johannes=20M=C3=BCller?= <dna42@gmx.de>
Date: Thu, 21 Nov 2013 15:58:25 +0100
Subject: [PATCH] Add Feature Issue #10, make syncfolders available in root
directory Add method get_syncfolders to class
SugarsyncClient, to retrieve a dictionary with available
directories as keys and the id used to address them in the
sugarsync api as value Modify methods
get_directory_listing, __init__, _translate_path, and
get_metadata of class SugarsyncStore, to represent the
@joe42
joe42 / persistent_lru_cache.patch
Last active December 12, 2015 06:38
tested version
diff --git a/cloudfusion/cloudfusion/pyfusebox/configurable_pyfusebox.py b/cloudfusion/cloudfusion/pyfusebox/configurable_pyfusebox.py
index 98b2004..df6f0bc 100644
--- a/cloudfusion/cloudfusion/pyfusebox/configurable_pyfusebox.py
+++ b/cloudfusion/cloudfusion/pyfusebox/configurable_pyfusebox.py
@@ -13,6 +13,7 @@ from cloudfusion.store.dropbox.dropbox_store import DropboxStore
from cloudfusion.store.sugarsync.sugarsync_store import SugarsyncStore
from cloudfusion.store.caching_store import CachingStore
from cloudfusion.store.metadata_caching_store import MetadataCachingStore
+import random