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 plistlib | |
import json | |
import tkFileDialog | |
import re | |
import sys | |
file_to_open = tkFileDialog.askopenfilename(message="Select an existing plist or json file to convert.") | |
converted = None |
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
import redis | |
import web | |
SESSION = 'SESSION:' | |
class RedisStore(web.session.Store): | |
"""Store for saving a session in redis: | |
import rediswebpy | |
session = web.session.Session(app, rediswebpy.RedisStore(), initializer={'count': 0}) |
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
package main | |
import "fmt" | |
type LLNode struct { | |
data string | |
next *LLNode | |
} | |
type LList struct { |
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 | |
''' | |
This script will upload the contents of a directory to a document in | |
CouchDB. It preserves all of the directory structures and is great | |
for uploading static websites to be served from CouchDB. | |
''' | |
import tkFileDialog | |
import couchdbkit | |
import os | |
import sys |
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
# satisfy dependencies | |
sudo apt-get -y update | |
sudo apt-get -y install curl | |
sudo apt-get -y build-dep couchdb | |
sudo apt-get -y install libmozjs185-dev libicu-dev libcurl4-gnutls-dev libtool erlang-eunit erlang-os-mon erlang-nox g++ | |
# get source code, build, and install | |
wget http://mirrors.gigenet.com/apache/couchdb/source/1.5.0/apache-couchdb-1.5.0.tar.gz | |
tar -zxvf apache-couchdb-1.5.0.tar.gz | |
cd apache-couchdb-1.5.0 | |
./configure |
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 | |
""" | |
This script demonstrates how a CouchDB OS Daemon can be written in Python. | |
For more information on CouchDB OS Daemons, please read here: | |
http://couchdb.readthedocs.org/en/latest/config/externals.html | |
""" | |
import json | |
import sys |
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
package main | |
import ( | |
"net/http" | |
"net/url" | |
"net/http/httputil" | |
"github.com/pokstad/go-couchdb/couchdaemon" | |
"github.com/pokstad/go-couchdb" | |
"time" | |
"sync" |
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 | |
# --- Version history --- | |
# 0.4: added variable to store file path, and $2 for base file name | |
# added variable to store desired reporting interval | |
# 0.3: added $1 to send in process ID at run time. | |
# 0.2: switched to $SECONDS for the loop. works. | |
# 0.1: didn't work well at all. | |
# --- Version history --- | |
# Usage: cputrack [PID] [filename] |
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
// Copyright 2011 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// HTTP reverse proxy handler | |
package goengine | |
import ( | |
"io" |
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
# Dockerfile extending the generic Go image with application files for a | |
# single application. | |
FROM gcr.io/google_appengine/golang | |
COPY . /go/src/app | |
RUN go-wrapper download | |
RUN go-wrapper install -tags appenginevm |
OlderNewer