Skip to content

Instantly share code, notes, and snippets.

@edgauthier
edgauthier / dropboxlogin.py
Created September 5, 2013 04:00
dropboxlogin
# Based on https://gist.github.com/4034526
# Modified to prompt for app key/secret and store in keychain
# YOU NEED TO FILL IN YOUR APP KEY AND SECRET WHEN FIRST RUN!
# Go to dropbox.com/developers/apps to create an app.
# To reset app key & secret, change RESET_APP_SETTINGS to True and
# run this script. Remember to set it back out to False afterwards.
RESET_APP_SETTINGS = False
@edgauthier
edgauthier / DropboxSync.py
Last active December 22, 2015 04:19
DropboxSync
import os
import sys
import pickle
import console
import editor
from collections import namedtuple
# I moved 'dropboxlogin' into a sub folder so it doesn't clutter my main folder
sys.path += [os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib')]
import dropboxlogin # this code can be found here: https://gist.github.com/edgauthier/6445941
@edgauthier
edgauthier / Shell.py
Created November 13, 2012 03:06
Shell
# Provides a simple shell with basic
# commands for dealing with files and
# directories.
#
# This script will try and prevent
# unsafe file operations outside of
# Documents directory.
#
# Add a setting named allow_unsafe and
# in the config dict and set to True