This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# git config annex.iwebftp-hook "/usr/local/bin/git-annex-ftp.py -s prefix.iweb-storage.com -u prefix-admin -p password" | |
# git annex initremote iwebftp type=hook hooktype=iwebftp encryption=none | |
from ftplib import FTP, error_perm | |
import os, argparse | |
parser = argparse.ArgumentParser(description='Combined hook for FTP remotes in git-annex') | |
parser.add_argument('-s', '--server', required=True, help='the FTP host name or IP address') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define COGL_ENABLE_EXPERIMENTAL_API | |
#include <stdlib.h> | |
#include <cogl/cogl.h> | |
#include <clutter/clutter.h> | |
/* TrContainerActor * | |
********************/ | |
typedef struct _TrContainerActor TrContainerActor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <clutter/clutter.h> | |
static gboolean | |
on_key_press (ClutterActor *stage G_GNUC_UNUSED, | |
ClutterEvent *event, | |
gpointer data) | |
{ | |
guint key_symbol; | |
ClutterActor *rect = CLUTTER_ACTOR (data); |