Skip to content

Instantly share code, notes, and snippets.

Google Drive Sync Wine Scripting

This is a set of scripts that help running Google Drive Backup and Sync under Wine, with multiple Google accounts.

Each account is given its own Wine prefix (a separate wine configuration).

To install, run install-gdrive-sync google_account

List the accounts set up in ~/.config/gdrive-accounts

/*!
* IPython notebook
*
*/
/* CSS font colors for translated ANSI colors. */
.ansibold {
font-weight: bold;
}
/* use dark versions for foreground, to improve visibility */
.ansiblack {
@p--q
p--q / test2.py
Created December 31, 2016 12:20
test2.py
def gcd(x, y):
if y == 0:
return x
else:
return gcd(y, x % y)
print(gcd(24, 9))
@p--q
p--q / test.py
Created December 31, 2016 12:17
test.py
def HelloWorld_Writer():
import pydevd; pydevd.settrace()
doc = XSCRIPTCONTEXT.getDocument()
doc.getText().setString("Hello World!")
if __name__ == "__main__":
import unopy
XSCRIPTCONTEXT = unopy.connect()
if not XSCRIPTCONTEXT:
print("Failed to connect.")
import sys