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 | |
# | |
# Build a virtual environment suitable for running appengine. | |
# This uses virtualenvwrapper to make the virtual environment | |
# and modifies the postactivate/postdeactivate scripts to make | |
# the appengine code happy. | |
# | |
# Usage: | |
# $ curl -s https://raw.github.com/gist/2628491 | bash | |
# |
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 | |
import json | |
import bottle | |
from bottle import static_file, route, run, request, abort, response | |
import simplejson | |
import pymongo | |
from pymongo import Connection | |
import datetime | |
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
Ext.require(['Ext.data.*', 'Ext.grid.*']); | |
Ext.define('Equipement', { | |
extend: 'Ext.data.Model', | |
fields: [{ | |
name: '_id', | |
type: 'int', | |
useNull: true | |
}, 'name', 'plateforme'] | |
}); |
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 | |
clear | |
declare -i rxnow txnow txlast rxlast | |
while true | |
do | |
chain=`ifconfig $1|grep bytes` | |
rxnow=`echo $chain | cut -d ":" -f2 | cut -d " " -f1` | |
txnow=`echo $chain | cut -d ":" -f3 | cut -d " " -f1` |
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 imaplib | |
from pprint import pprint | |
from email.parser import HeaderParser | |
from django.core.mail import EmailMultiAlternatives | |
from email.mime.message import MIMEMessage | |
from django.conf import settings | |
import os,random,sys | |
from email import Charset | |
from email.mime.image import MIMEImage |
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
http://getsatisfaction.com/foursquare/topics/europe_main_thread_for_merges_edits | |
1) Edit and Merge | |
Venue Name: | |
Address: | |
Cross Street: | |
City: | |
State/Country: | |
Postal Code: | |
Lat/Long: |
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 <Python.h> | |
#ifndef WIN32 | |
# include <sys/types.h> | |
# include <sys/socket.h> | |
# include <net/if.h> | |
# include <netdb.h> | |
# if HAVE_SOCKET_IOCTLS |
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
# imageDownloader.py | |
# Finds and downloads all images from any given URL recursively. | |
# FB - 201009094 | |
import urllib2 | |
from os.path import basename | |
import urlparse | |
from BeautifulSoup import BeautifulSoup # for HTML parsing | |
global page | |
page = 1 | |
print page |
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
title Github implementation of crash database interface | |
alt Github credential is not present | |
Client->Client: Prompt username | |
alt is X session: | |
Client->Github:Open browser to ask autorisation |
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
POST /uploader/download-to-bitcasa HTTP/1.1 | |
Host: portal.bitcasa.com | |
Connection: keep-alive | |
Content-Length: 124 | |
Accept: */* | |
Origin: chrome-extension://jbebdjcjllheeclffnofhgcimmlkkbon | |
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22 | |
X_REQUESTED_WITH: XMLHttpRequest | |
Content-Type: application/x-www-form-urlencoded; charset=UTF-8 | |
DNT: 1 |
OlderNewer