Skip to content

Instantly share code, notes, and snippets.

View fsiefken's full-sized avatar

Francis Siefken fsiefken

View GitHub Profile
@pjvds
pjvds / install-mono-on-docker-container.sh
Created October 27, 2013 17:54
Script that installs Mono 3.2.3 on ubuntu docker container.
apt-get install -y wget build-essential gettext autoconf automake libtool
wget http://download.mono-project.com/sources/mono/mono-3.2.3.tar.bz2
bunzip2 -df mono-3.2.3.tar.bz2
tar -xf mono-3.2.3.tar
cd mono-3.2.3
./configure --prefix=/usr/local; make; make install
rm -rf /tmp/*
apt-get remove --purge wget build-essential gettext autoconf automake libtool
@gufranco-zz
gufranco-zz / ubuntuInitialConfiguration.sh
Last active December 17, 2015 06:49
My Ubuntu 13.10 initial configuration
#!/bin/sh
# System upgrade
echo "Updating repositories and upgrading system"
sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove
clear
# Install Unity Tweak Tool
echo "Installing Unity Tweak Tool"
sudo apt-get -y install unity-tweak-tool
@trey
trey / happy_git_on_osx.md
Last active September 19, 2024 16:23
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@miura1729
miura1729 / gist:1630141
Created January 18, 2012 01:09
Benchmark result ytl 2012-01-18 ver and ruby 2.0.0 (2012-01-14 trunk 34305) Cygwin and Widnwos vista
user system total real
bm_so_binary_trees.rb
ytl 17.377000 6.036000 23.585000 ( 37.127000)
ytl compile 2.308000 5.615000 7.939000 ( 19.806000)
ytl unboxed 7.346000 6.269000 13.646000 ( 26.070000)
ruby 58.343000 2.011000 60.384000 ( 78.321000)
user system total real
bm_so_matrix.rb
ytl 3.478000 5.740000 9.234000 ( 19.361000)
ytl compile 2.682000 5.677000 8.375000 ( 18.128000)
@cstrahan
cstrahan / SolarInfo.cs
Created January 6, 2011 05:06
A sunrise/sunset calculator.
using System;
using System.Diagnostics;
namespace SunriseCalculator
{
public class SolarInfo
{
public double SolarDeclination { get; private set; }
public TimeSpan EquationOfTime { get; private set; }
public DateTime Sunrise { get; private set; }
@samstokes
samstokes / regex-groups-global.rb
Created November 18, 2009 03:28
How to extract groups from a regex match in Ruby without globals or temporary variables. Code snippets supporting http://blog.samstokes.co.uk/post/251167556/regex-style-in-ruby
if "foo@example.com" =~ /@(.*)/
$1
else
raise "bad email"
end
# => "example.com"