Skip to content

Instantly share code, notes, and snippets.

View dotnet-starter-project.md

How to create a scaffold for .NET project

Create the folders

mkdir MyProject

cd MyProject

mkdir src test

@andrericardo
andrericardo / gist:4985092
Created February 19, 2013 11:39
Get Mastercard currency GBP to EUR yesterday rate in Mac OSX
View gist:4985092
curl -silent -d "baseCurrency=GBP&service=getExchngRateDetails&settlementDate=`date -j -v-1d +%m/%d/%Y`" https://www.mastercard.com/psder/eu/callPsder.do | sed -n 's/.*<CURRENCY_NAME>Euro<\/CURRENCY_NAME><CONVERSION_RATE>\([^<]*\)<\/CONVERSION_RATE>.*/\1/p'
@andrericardo
andrericardo / jenkins_with_rvm.md
Created June 13, 2012 11:11
Setup Jenkins with RVM on Centos 5.6
View jenkins_with_rvm.md

Make sure server is updated

yum update

Install prerequisites

yum install gcc automake autoconf libtool make patch java httpd ruby ruby-devel readline-devel zlib-devel

Add jenkins repo and install

View dropwizard-gradle
#!/bin/sh
# /etc/init.d/dropwizard-gradle
#
# Some things that run always
touch /var/lock/dropwizard-gradle
user="andric87"
DROPWIZARD_DIR=/home/andric87/dropwizard-gradle