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
| """ | |
| Delete S3 bucket with contents, with S3 Multi-Object Delete. | |
| This script makes you delete S3 bucket quickly. | |
| Before using this script, please install boto | |
| $ pip install boto | |
| and setup ~/.boto config |
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
| # Description: | |
| # Messing around with the curator.im API. | |
| # | |
| # Commands: | |
| # hubot curator - give you random girl photo from curator.im | |
| module.exports = (robot) -> | |
| robot.respond /(curator|girl)/i, (msg) -> | |
| msg.http("http://curator.im/api/stream/") | |
| .query({ |
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
| # Description: | |
| # Positive plugin, it just anwsers you "超充實der!" | |
| # | |
| module.exports = (robot) -> | |
| robot.respond /今天.*|How's going/i, (msg) -> | |
| msg.send "超充實der!" |
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
| """ | |
| Requirements: | |
| * A Wordpress Blog | |
| * Python Packages: Markdown, PyYAML, python-wordpress-xmlrpc | |
| >>> pip install Markdown python-wordpress-xmlrpc PyYAML | |
| WARNING: |
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 requests | |
| import urllib | |
| import json | |
| import logging | |
| logger = logging.getLogger(__name__) | |
| class FacebookLike(object): | |
| def __init__(self, access_token, user_id): |
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 Crypto.Hash.SHA | |
| import Crypto.PublicKey.RSA | |
| import Crypto.Signature.PKCS1_v1_5 | |
| import base64 | |
| import time | |
| KEY_PAIR_ID = "your_key_pair_id" | |
| PRIV_KEY_FILE = "pk-xxxxxxxxxx.pem" |
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 sys | |
| import requests | |
| import urllib | |
| PUTIO_ACCESS_TOKEN = '<token>' | |
| PUTIO_API_URL = 'https://api.put.io/v2/files/upload' | |
| url = 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
| echo "This script requires superuser access to install apt packages." | |
| echo "You will be prompted for your password by sudo." | |
| # clear any previous sudo permission | |
| sudo -k | |
| # run inside sudo | |
| sudo sh <<SCRIPT | |
| apt-get update -y | |
| apt-get upgrade -y |
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
| data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== |
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
| module WEBrick | |
| module HTTPServlet | |
| class DjangoHandler < AbstractServlet | |
| def initialize(server, name) | |
| super(server, name) if( server ) | |
| @root_path = Compass.configuration.project_path | |
| @script_filename = name | |
| end |