Skip to content

Instantly share code, notes, and snippets.

View gblmarquez's full-sized avatar
🏡
Focused on people for growth the business

Gabriel Marquez gblmarquez

🏡
Focused on people for growth the business
View GitHub Profile
@gblmarquez
gblmarquez / ErrorBuilder.cs
Created October 30, 2014 18:47
Result Envelop
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
@gblmarquez
gblmarquez / conemu.xml
Created April 27, 2015 15:07
conemu.xml
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2015-04-27 12:06:15" build="150420">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{PowerShell (Admin)}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
@gblmarquez
gblmarquez / gist:dd23213a5afc1fe0f854
Created June 18, 2015 00:58
test oauth2 with resource owner
var oauth2 = require('./lib/simple-oauth2.js')({
clientID: 'roclient',
clientSecret: 'secret',
site: 'http://id.conube.com.br',
tokenPath: '/connect/token'
});
var request, result, error;
var params = {
@gblmarquez
gblmarquez / config.fish
Last active August 29, 2015 14:26 — forked from anonymous/config.fish
.config/fish/config.fish
# Remove default fish greeting
set --erase fish_greeting
# Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
# Plugins
# Path to your custom folder (default path is ~/.oh-my-fish/custom)
#set fish_custom $HOME/dotfiles/oh-my-fish
public string GetExceptionMessage(Exception exception)
{
DateTime now = System.DateTime.Now;
StringBuilder error = new StringBuilder();
error.AppendLine("\nException classes:\t");
error.Append(GetExceptionTypeStack(exception));
error.AppendLine("\nException messages:\t");
error.Append(GetExceptionMessageStack(exception));
@gblmarquez
gblmarquez / 0mq_install.sh
Created April 27, 2012 18:48 — forked from flores/0mq_install.sh
centos | debian zeromq install (from source)
#!/bin/bash
# doesn't remove packages. just beginning/sharing script for the install.
if [ -e /etc/redhat-release ]; then
yum install -y gcc gcc-c++ make autoconf automake e2fsprogs-devel glibc-devel libuuid-devel
elif [ -e /etc/debian_version ]; then
apt-get install -y build-essential uuid-dev
else
echo "sorry, this script only installs on RedHat/CentOS or Debian/Ubuntu boxes"
exit 2
@gblmarquez
gblmarquez / AzureEmulatorManager.cs
Created August 26, 2013 23:09
Windows Azure emulator utility class to start, stop and kill: storage and compute emulators.
public static class AzureEmulatorManager
{
public static AzureStorageEmulatorManager Storage = AzureStorageEmulatorManager.Instance;
public static AzureComputeEmulatorManager Compute = AzureComputeEmulatorManager.Instance;
}
public class AzureStorageEmulatorManager
{
private const string StorageEmulatorProcessName = "DSServiceLDB";
private const string EmulatorPath = @"C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\csrun.exe";
@gblmarquez
gblmarquez / gist:f7917b0275cc1c033f3a
Created February 11, 2016 21:14
Documentação TaxationType
/// Tributação dentro do mesmo município
WithinCity = 1,
/// Tributação fora do município
OutsideCity = 2,
/// Exportação
Export = 4,
/// Isento
@gblmarquez
gblmarquez / bootstrap.sh
Last active July 13, 2016 20:43
mac bootstrap
brew cask install google-chrome
brew cask install firefox
brew cask install skype
brew cask install spotify
brew cask install iterm2
brew cask install atom
brew cask install virtualbox --appdir=/Applications
brew install azukiapp/azk/azk