Skip to content

Instantly share code, notes, and snippets.

@andrericardo
andrericardo / dotnet-starter-project.md
Last active April 19, 2023 19:27
cheatsheet dotnet command line commands to quickly setup new projects and solution

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
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

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

#!/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