Skip to content

Instantly share code, notes, and snippets.

[alias]
bu = "!sh -c 'git checkout -b \"$0\" && git push -u origin \"$0\"'"
cb = checkout -b
recent = for-each-ref --count=18 --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(color:cyan)%(authorname)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset)) - %(contents:subject)'
lp = log --pretty=format:'%C(yellow)%h%C(reset) - %C(cyan)%an%C(reset) (%C(green)%cr%C(reset))%C(red)%d%C(reset) - %s'
rh = reset head --hard
@alex-codes
alex-codes / MimeTypes.cs
Created May 5, 2017 00:06
List of common MIME types
public static class MimeTypes
{
public static string Aiff
{
get { return "audio/aiff"; }
}
public static string Avi
{
get { return "video/x-msvideo"; }
@alex-codes
alex-codes / EnvironmentVariables.cs
Created May 5, 2017 00:02
Common Windows environment variables
public static class EnvironmentVariables
{
public static string ApplicationData
{
get { return GetVariable("APPDATA"); }
set { SetVariable("APPDATA", value); }
}
public static string ComputerName
{
@alex-codes
alex-codes / CultureCodes.cs
Last active May 5, 2017 00:00
List of common culture codes
public static class CultureCodes
{
public const string Afrikaans = "af";
public const string Albanian = "sq";
public const string Arabic_Algeria = "ar-dz";
public const string Arabic_Bahrain = "ar-bh";
public const string Arabic_Egypt = "ar-eg";
public const string Arabic_Iraq = "ar-iq";
public const string Arabic_Jordan = "ar-jo";
public const string Arabic_Kuwait = "ar-kw";