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/jython | |
import sys | |
from org.apache.commons.httpclient.protocol import Protocol | |
from com.vmware.vcloud.sdk import VcloudClient, Organization, Vdc | |
from com.vmware.vcloud.sdk.samples import FakeSSLSocketFactory | |
class VcloudLogin(object): | |
""" |
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
Index: android/src/com/google/android/apps/chrometophone/C2DMReceiver.java | |
=================================================================== | |
--- android/src/com/google/android/apps/chrometophone/C2DMReceiver.java (revision 11) | |
+++ android/src/com/google/android/apps/chrometophone/C2DMReceiver.java (working copy) | |
@@ -82,6 +82,16 @@ | |
} | |
} | |
+ private String cyrketToMarket(String url) { | |
+ String ret = url.substring(32); |
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
function kilo2pound () { printf "%.2f\n" $(( $1 * 2.20462262 )) } | |
function pound2kilo () { printf "%.2f\n" $(( $1 / 2.20462262 )) } | |
function meter2feet () { printf "%.2f\n" $(( $1 * 3.2808399 )) } | |
function feet2meter () { printf "%.2f feet\n" $(( $1 / 3.2808399 )) } | |
function kilometer2miles () { printf "%.2f miles\n" $(( $1 * 0.621371192 )) } | |
function miles2kilometers () { printf "%.2f km\n" $(( $1 / 0.621371192 )) } | |
function celsius2fareinheit () { printf "%.2f fareinheit\n" $(( ($1 * 9/5) + 32 )) } | |
function fareinheit2celsius () { printf "%.2f celsius\n" $(( ($1 - 32) * 5/9 )) } |
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
#!/bin/bash | |
# Author: Chmouel Boudjnah <[email protected]> | |
# Not officially supported by Rackspace only as a best effort basis :) | |
# Define yes to make it to copy to url to clipboard (via a shortened url | |
# service) You need to have the software xclip installed in your system. | |
COPY_URL_TO_CLIPBOARD=yes | |
# Containers to ignore in the list | |
CONTAINERS_TO_IGNORE=".CDN_ACCESS_LOGS" |
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/jython | |
import sys | |
from org.apache.commons.httpclient.protocol import Protocol | |
from com.vmware.vcloud.sdk import VcloudClient, Organization, Vdc | |
from com.vmware.vcloud.sdk.samples import FakeSSLSocketFactory | |
class VcloudLogin(object): | |
""" | |
VcloudLogin: Login to vcloud class |
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
class IllegalDecoratorArgument(Exception): | |
pass | |
class IllegalPassedType(Exception): | |
pass | |
def check_arg(*fargs): | |
def decorator(target): | |
def wrapper(*args, **kwargs): | |
if len(fargs) != len(args): |
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
diff -uw -L /rsyncc:chmouel@acer:/home/chmouel/.xbmc/addons/script.tv.show.next.aired/resources/lib/scraper.py.order-by -L /rsyncc:chmouel@acer:/home/chmouel/.xbmc/addons/script.tv.show.next.aired/resources/lib/scraper.py /tmp/tramp.10818XFG.order-by /tmp/tramp.10818kPM.py | |
--- script.tv.show.next.aired/resources/lib/scraper.py~ | |
+++ script.tv.show.next.aired/resources/lib/scraper.py | |
@@ -9,10 +9,12 @@ | |
import xbmc | |
import xbmcgui | |
import time | |
+import datetime | |
SOURCEPATH = os.getcwd() |
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 | |
# -*- encoding: utf-8 -*- | |
# | |
# Chmouel Boudjnah <[email protected]> | |
import os | |
import cloudservers | |
from subprocess import call | |
API_USER="" | |
API_KEY="" |
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 | |
# -*- encoding: utf-8 -*- | |
__author__ = "Chmouel Boudjnah <[email protected]>" | |
import cloudfiles | |
import tempfile | |
import os | |
FROM_AUTH_USER="" | |
FROM_AUTH_API_KEY="" | |
FROM_CONTAINER="" |
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
__author__ = "Chmouel Boudjnah <[email protected]>" | |
import os | |
import cloudfiles | |
from glance.parallax import db | |
USERNAME = "c" # fill these out for testing | |
API_KEY = "" | |
AUTH_URL = "https://auth.api.rackspacecloud.com/v1.0" |
OlderNewer