- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
cluster: | |
head: "cbt" | |
clients: ["client1","client2","client3"] | |
osds: ["osd1","osd2","osd3"] | |
mons: ["mon1","mon2","mon3"] | |
osds_per_node: 1 | |
fs: xfs | |
mkfs_opts: -f -i size=2048 -n size=64k | |
mount_opts: -o inode64,noatime,logbsize=256k | |
conf_file: /etc/ceph/ceph.conf |
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/env python | |
#coding: utf-8 | |
import os | |
import sys | |
import logging | |
from threading import Thread | |
import Queue | |
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/env python | |
import ast | |
import json | |
import os | |
import subprocess | |
import argparse | |
import sys | |
FNULL = open(os.devnull, 'w') |
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
$pinvokeCode = @" | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Collections.Generic; | |
namespace Resolution | |
{ | |
[StructLayout(LayoutKind.Sequential)] | |
public struct DEVMODE1 | |
{ | |
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] |
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/env bash | |
yum install vala vala-compat wget gcc libevent-devel openssl-devel gtk2-devel libuuid-devel sqlite-devel jansson-devel intltool cmake qt-devel fuse-devel | |
echo "Building and installing seafile client" | |
export version=4.2.8 # change this to your preferred version | |
alias wget='wget --content-disposition -nc' | |
wget https://github.com/haiwen/libsearpc/archive/v3.0.2.tar.gz | |
wget https://github.com/haiwen/ccnet/archive/v${version}.tar.gz |
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
#!/bin/bash | |
############################### | |
# Seafile server backup script (cold sqlite backup) | |
# Author: Nils Kuhnert | |
# Last change: 2014-07-27 | |
# Website: 3c7.me | |
############################### | |
# Variables | |
DATE=`date +%F` |
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/env python3 | |
# -*- coding:utf-8 -*- | |
__author__ = 'Nisests' | |
import requests | |
from bs4 import BeautifulSoup | |
login_url = 'https://www.packtpub.com/' | |
accout_url = 'https://www.packtpub.com/account' |
OlderNewer