Skip to content

Instantly share code, notes, and snippets.

View arlm's full-sized avatar

Alexandre Rocha Lima e Marcondes arlm

View GitHub Profile
@arlm
arlm / ByteArrayBuilder.cs
Created March 1, 2018 09:57 — forked from jmcd/ByteArrayBuilder.cs
Byte-array builder
public class ByteArrayBuilder
{
private byte[] _buffer;
public int Length { get; set; }
public ByteArrayBuilder()
{
_buffer = new byte[4096];
Length = 0;
}
@arlm
arlm / happy_git_on_osx.md
Last active February 1, 2018 13:08 — forked from trey/happy_git_on_osx.md
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 bash-git-prompt

Configure things:

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

git config --global user.email "[email protected]"

@arlm
arlm / disable-fusion-log.ps1
Created February 1, 2018 08:59 — forked from teamaton/disable-fusion-log.ps1
FusionLog - enable and disable
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name ForceLog
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogFailures
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogResourceBinds
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogPath
@arlm
arlm / qemu_osx_rpi_raspbian_jessie.sh
Created January 24, 2018 14:03 — forked from hfreire/qemu_osx_rpi_raspbian_jessie.sh
How to emulate a Raspberry Pi (Raspbian Jessie) on Mac OSX (El Capitan)
# Install QEMU OSX port with ARM support
sudo port install qemu +target_arm
export QEMU=$(which qemu-system-arm)
# Dowload kernel and export location
curl -OL \
https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie
export RPI_KERNEL=./kernel-qemu-4.1.7-jessie
# Download filesystem and export location
@arlm
arlm / useful_pandas_snippets.py
Created December 12, 2017 12:46 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
# List unique values in a DataFrame column
# h/t @makmanalp for the updated syntax!
df['Column Name'].unique()
# Convert Series datatype to numeric (will error if column has non-numeric values)
# h/t @makmanalp
pd.to_numeric(df['Column Name'])
# Convert Series datatype to numeric, changing non-numeric values to NaN
# h/t @makmanalp for the updated syntax!

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
Imprensa Carro Parafina Geladeira
Litografia Motocicleta Plástico Tocador de discos de vinil
Papel reciclável Bicicleta PVC Bandagem adesiva para curativos
Jardim de infância Helicóptero Lentes de contato de vidro Aspirina
Filtro de café de papel Trem elétrico Espumas de poliuretano Smart-card
Cafeteira elétrica Motor a diesel Jeans
Tecnologia Transporte & Itens Pessoais Software
Bosch Puma SAP (Software ERP)
Siemens Adidas Trivago
Telefunken Hugo Boss Avira
BASF Faber-Castell Wunderlist
SIG Sauer Haribo InnoTek (criadora do VirtualBox)
Roche Montblanc SUSE Linux
Leica Camera Steinway & Sons InnoGames
Blaupunkt Audi Nero AG (Gravação de CD-ROM)
@arlm
arlm / IIS-Functions.ps1
Created March 7, 2017 12:56 — forked from sergejusb/IIS-Functions.ps1
Basic Power-Shell cmdlets to work with IIS 7+
# -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# IIS functions
Import-Module WebAdministration
function Test-WebAppPool($Name) {
return Test-Path "IIS:\AppPools\$Name"
}
function Get-WebAppPool($Name) {
Expression<Func<string, bool>> f = s => s.Length < 5;
ParameterExpression p = Expression.Parameter (typeof (string), "s");
MemberExpression stringLength = Expression.Property (p, "Length");
ConstantExpression five = Expression.Constant (5);
BinaryExpression comparison = Expression.LessThan(stringLength, five);
Expression<Func<string, bool>> lambda = Expression.Lambda<Func<string, bool>> (comparison, p);
Func<string, bool> runnable = lambda.Compile();