This file contains hidden or 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
{ | |
"name": "Bucket", | |
"maintenance_mode": false, | |
"ssl_key_path": "/srv/bucket/deployment/production.key", | |
"locations": [ | |
{ | |
"custom_conf_override": false, | |
"pattern": "/static", | |
"custom_conf": "", | |
"path": "/srv/bucket/public", |
This file contains hidden or 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
import os | |
from fabric.api import * | |
from fabric.colors import cyan, yellow, green | |
from fabric.contrib.files import upload_template | |
py_deps = ' gcc libmysqlclient-dev libxml2-dev libpango1.0-dev libglib2.0-dev libcairo2-dev ' | |
def localcfg(): | |
env.hosts = ['localhost'] |
This file contains hidden or 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
user@user-VirtualBox:~/work/wingpanel/build$ pkill wingpanel; ./wingpanel -d | |
[_LOG_LEVEL_INFO 13:48:21.579874] Application.vala:77: Wingpanel version: 0.2.5 | |
[_LOG_LEVEL_INFO 13:48:21.580008] Application.vala:79: Kernel version: 3.2.0-51-generic | |
[_LOG_LEVEL_DEBUG 13:48:21.655231] [Gtk] Connecting to session manager | |
[_LOG_LEVEL_DEBUG 13:48:21.657098] WingpanelApp.vala:41: Activating | |
[_LOG_LEVEL_DEBUG 13:48:21.662512] Settings.vala:158: Loading settings from schema 'org.pantheon.desktop.wingpanel' | |
[_LOG_LEVEL_DEBUG 13:48:21.667181] IndicatorFileModel.vala:41: Blacklisting libappmenu.so | |
[_LOG_LEVEL_DEBUG 13:48:21.667248] IndicatorFileModel.vala:44: Blacklisted Indicators: ,libappmenu.so | |
[_LOG_LEVEL_DEBUG 13:48:21.667479] IndicatorFileModel.vala:48: Indicator Directory: /usr/lib/indicators3/7 | |
[_LOG_LEVEL_DEBUG 13:48:21.667770] IndicatorFileModel.vala:84: LOADING: libapplication.so |
This file contains hidden or 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
var oauthPercentEncode = (function(){ | |
var escapeChars = "!*'();:@&=+$,/?%#[]", | |
matchChars = new RegExp( "([\\" + ( escapeChars.split('').join('\\')) + "])", "gi"); | |
return function( p ) { | |
return p.replace( matchChars, function( char ) { | |
return '%' + ( "" + char ).charCodeAt(0).toString(16).toUpperCase(); | |
}) | |
} |
This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
import subprocess | |
__all__ = ["transform"] | |
__version__ = '0.3' | |
__author__ = 'Christoph Burgmer <[email protected]>' | |
__url__ = 'http://github.com/cburgmer/upsidedown' |
This file contains hidden or 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
GOOGLE_CLIENT_ID = '828226820573-...' | |
GOOGLE_CLIENT_SECRET = 'GjVcxp...' | |
GOOGLE_OAUTH_URL = 'https://accounts.google.com/o/oauth2/auth?scope=https%%3A%%2F%%2Fwww.googleapis.com%%2Fauth%%2Fuserinfo.email+https%%3A%%2F%%2Fwww.googleapis.com%%2Fauth%%2Fuserinfo.profile&state=&redirect_uri=%s&response_type=code&client_id=%s' # add gmail scopes...? | |
GOOGLE_TOKEN_URL = 'https://accounts.google.com/o/oauth2/token' | |
GOOGLE_REDIRECT_URL = 'http://%s/auth/google/callback' % HOST | |
... | |
urlpatterns = patterns(..., |
This file contains hidden or 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
authmodulelist="authuserdb authpam" | |
daemons=5 | |
authdaemonvar=/var/spool/authdaemon/socket | |
DEBUG_LOGIN=0 | |
DEFAULTOPTIONS="" |
This file contains hidden or 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/env python | |
import pyltfs2 | |
import sys | |
url='mysql+mysqlconnector://root:123@localhost/syslink_tapelibrary' | |
ltfs = pyltfs2.LTFS(url) | |
ltfs.delete_tape(name=sys.argv(1)) |
This file contains hidden or 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
from reconfigure.items.bound import BoundData | |
from reconfigure.configs.base import Reconfig | |
from reconfigure.parsers import IniFileParser | |
from reconfigure.builders import BoundBuilder | |
class OperaData (BoundData): | |
pass | |
This file contains hidden or 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
from ajenti.api import * | |
from ajenti.plugins.main.api import SectionPlugin | |
from ajenti.ui import on | |
from ajenti.ui.binder import Binder | |
@plugin | |
class GLSlideShowPrefs (SectionPlugin): | |
default_classconfig = { | |
'option_1_enable': True # etc |