Skip to content

Instantly share code, notes, and snippets.

View arthurbragaa's full-sized avatar

Arthur arthurbragaa

View GitHub Profile
@arthurbragaa
arthurbragaa / command.sh
Last active August 17, 2017 09:11 — forked from metaskills/command.sh
Ubuntu 16.04 Install Latest FreeTDS
sudo apt-get install wget
sudo apt-get install build-essential
sudo apt-get install libc6-dev
wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.27.tar.gz
tar -xzf freetds-1.00.27.tar.gz
cd freetds-1.00.27
./configure --prefix=/usr/local --with-tdsver=7.3
make
make install
def sprintf(format)
format = format.to_s
if format.index("%").nil?
return format
end
return format.gsub(/%\{[^}]+\}/) do |tok|
# Take the inside of the %{ ... }
key = tok[2 ... -1]
@arthurbragaa
arthurbragaa / about.md
Created October 17, 2016 18:46 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer