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 | |
| VENV=$1 | |
| if [ -z $VENV ]; then | |
| echo "usage: runinenv [virtualenv_path] CMDS" | |
| exit 1 | |
| fi | |
| . ${VENV}/bin/activate | |
| shift 1 | |
| echo "Executing $@ in ${VENV}" | |
| exec "$@" |
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 | |
| import subprocess | |
| from BeautifulSoup import * | |
| fn = '/Users/parente/todo.html' | |
| title = "Pete's Public Todo List" | |
| subprocess.call(['osascript','todo.scpt']) | |
| f = file(fn) | |
| b = BeautifulSoup(f.read()) | |
| f.close() |
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
| ''' | |
| Copyright (c) Peter Parente 2011. All Rights Reserved. | |
| Licensed under the WTFPL. http://sam.zoy.org/wtfpl/ | |
| ''' | |
| class Clock: | |
| def __init__(self, seconds=600): | |
| self.meetingTime = seconds | |
| self.meetingTimeTaken = 0 | |
| self.userCount = 0 | |
| self.users = {} |
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
| # generic Python imports | |
| import datetime | |
| import os | |
| import sched | |
| import sys | |
| import tempfile | |
| import threading | |
| import time | |
| # need PyObjC on sys.path...: |
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 | |
| # activate the virtualenv | |
| . ~/envs/coweb_demo_latest/bin/activate | |
| # reinstall coweb to the env | |
| cd ~/src/coweb | |
| git pull origin master | |
| cd servers/python | |
| pip install . | |
| # deploy the cowebx demos to the env |
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
| .ui-menu { | |
| width: 300px !important; | |
| } |
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
| body { | |
| font-family: 'Helvetica Neue', sans; | |
| background: #ffffff; | |
| color: #222; | |
| margin: 2em auto; | |
| padding: 0 2em; | |
| width: 48em; | |
| line-height: 1.5em; | |
| font-size: 16px; | |
| font-weight: 300; |
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/sh | |
| # stash in a new loc | |
| mv /vagrant/.ssh /vagrant/.keys > /dev/null 2>&1 | |
| # copy keys into the VM | |
| cp /vagrant/.keys/github ~vagrant/.ssh/ > /dev/null 2>&1 | |
| chown vagrant:vagrant ~vagrant/.ssh/github | |
| chmod 600 ~vagrant/.ssh/github | |
| cp /vagrant/.keys/bitbucket ~vagrant/.ssh/ > /dev/null 2>&1 | |
| chown vagrant:vagrant ~vagrant/.ssh/bitbucket |
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
| Sally sells seashells by the seashore. | |
| The shells Sally sells are surely from the sea. | |
| Sally sells seashells by the seashore. | |
| The shells Sally sells are surely from the sea. | |
| Sally sells seashells by the seashore. | |
| The shells Sally sells are surely from the sea. | |
| Sally sells seashells by the seashore. | |
| The shells Sally sells are surely from the sea. | |
| Sally sells seashells by the seashore. | |
| The shells Sally sells are surely from the sea. |
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
| ==> virtualbox: Waiting 4s for boot... | |
| ==> virtualbox: Typing the boot command... | |
| panic: EOF | |
| goroutine 50 [running]: | |
| log.Panic(0x7f296424bfa0, 0x1, 0x1) | |
| /Users/mitchellh/go/src/pkg/log/log.go:307 +0xaa | |
| github.com/mitchellh/packer/packer/rpc.func·001() | |
| /Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/rpc/builder.go:73 +0x23e | |
| created by github.com/mitchellh/packer/packer/rpc.(*builder).Run |