Skip to content

Instantly share code, notes, and snippets.

View arterrey's full-sized avatar

Adam Terrey arterrey

View GitHub Profile
@arterrey
arterrey / setup
Last active November 6, 2023 10:39
Debian setup for SSL enabled docker workspace with nginx
#!/bin/bash
# This is a script designed to setup a development workstation on Google Cloud
# The underling VM is not designed to be a development environment, but rather
# focuses on filesystem, HTTP routing and docker features. Development environments
# can be managed by a developer by using the devcontainer feature of VS Code via
# devcontainer inside remote connection.
# Here is a sample VM configuration what will work:
# - Machiene Type: e2-highcpu-4
@arterrey
arterrey / NrDrClock.py
Last active July 26, 2016 02:22
Night Remaining Day Remaining Clock
from datetime import datetime, timedelta, date
import math
import sys
import time
class NrDrClock(object):
def __init__(self, from_time):
@arterrey
arterrey / gist:2928492
Created June 14, 2012 06:48
Building a waf based distribution built using buildout (example using pycairo)
[buildout]
parts = pycairo
[pycairo-buildpy]
recipe = zc.recipe.egg
eggs =
interpreter = pycairo-buildpy
bin-dir=${buildout:directory}/bin
[pycairo]
@arterrey
arterrey / hostname-orionvm.conf
Created June 1, 2012 04:39
upstart script to set hostname from the OrionVM $HOSTNAME variable from the /context/context.sh file
# upstart script to detect /context/context.sh and update HOSTNAME contained within
# place in /etc/init folder
# use at your own risk
description "Changes the hostname to HOSTNAME found in the OrionVM context file system"
start on filesystem or runlevel [2345]
script
if [ -f /context/context.sh ]; then
@arterrey
arterrey / buildout.cfg
Created May 11, 2011 07:05
A buildout to build a perl interpreter with modules installed with CPAN
[buildout]
parts =
perl
perl-modules-install
[perl]
recipe = hexagonit.recipe.cmmi
url = http://www.cpan.org/src/perl-5.12.3.tar.gz
configure-command =