Straight to Maintenance
Initialize the droplet with dokku app pre-setup
require 'bundler/vlad' | |
require 'vlad/rvm' | |
set :default_stage, 'production' | |
set :shared_paths, { | |
'log' => 'log', | |
'system' => 'public/system', | |
'pids' => 'tmp/pids', | |
'sockets' => 'tmp/sockets', |
#!/bin/bash | |
# Call this script from a local git repo to set up a dropbox remote you can push and pull to | |
# I keep this script under ~/Dropbox/git/gitbox.sh | |
# Inspired from http://stackoverflow.com/questions/1960799/using-gitdropbox-together-effectively | |
PWD=`pwd` | |
PROJECT=`basename $PWD` | |
pushd $HOME/Dropbox/git | |
git init --bare $PROJECT.git |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Hosting; | |
using System.IO; | |
using System.Globalization; | |
namespace My.Helpers | |
{ |
ko.bindingHandlers.number = { | |
update: function (element, valueAccessor, allBindings, viewModel, bindingContext) { | |
var value = ko.unwrap(valueAccessor()); | |
valueAccessor = function () { | |
return value.toString().replace('.', ','); | |
}; | |
ko.bindingHandlers.text.update(element, valueAccessor, allBindings, viewModel, bindingContext); | |
} | |
}; |
# credit for getting me going in the right direction | |
# http://blogs.lessthandot.com/index.php/uncategorized/access-git-commits-during-a-teamcity-build-using-powershell/ | |
# these properties should be entered into your configuration parameters section | |
$project = "%Octopus.Project%" | |
$deployTo = "%Octopus.DefaultEnvironment%" | |
$buildVersion = "%BuildVersion%" | |
$octopusApiKey = "%Octopus.BuildDeployBot.APIKey%" | |
$octopusServer = "%Octopus.Server.Url%" |
using System.Windows; | |
using log4net; | |
namespace Namespace | |
{ | |
/// <summary> | |
/// Interaction logic for App.xaml | |
/// </summary> | |
public partial class App : Application | |
{ |
#!/bin/bash | |
# | |
# Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 11.10 Oneiric Ocelot box | |
# http://wildfish.com | |
# add the ubuntu gis ppa | |
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable | |
sudo apt-get update |
#!/bin/bash | |
# | |
# Install Postgres 9.1, PostGIS 2.0 and pgRouting on a clean Ubuntu 12.04 install (64 bit) | |
# updated to PostGIS 2.0.1 | |
# basics | |
apt-get install python-software-properties | |
apt-add-repository ppa:sharpie/for-science # To get GEOS 3.3.3 | |
# install the following pacakages |
# | |
# Assumptions | |
# | |
# 1. If you have a Octopus release deployed, say 1.0.0.73, there is a git | |
# tag set for that commit in GitHub that is "v1.0.0.73". | |
# | |
# 2. You have TeamCity label each successful build in GitHub with the format | |
# "v{build number}. Sidenote: it appears that TeamCity only labels the | |
# default branch, but not feature branches. | |
# |
Initialize the droplet with dokku app pre-setup