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 / install-vsix-appveyor.ps1
Created May 28, 2016 00:58 — forked from FeodorFitsner/install-vsix-appveyor.ps1
Installing VSIX extension from command line
$vsixPath = "$($env:USERPROFILE)\sqlite-wp81-winrt-3081002.vsix"
(New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/5d97faf6-39e3-4048-a0bc-adde2af75d1b/file/132406/15/sqlite-wp81-winrt-3081002.vsix', $vsixPath)
"`"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII
& .\install-vsix.cmd
@arlm
arlm / .gitignore
Created June 2, 2016 11:58 — forked from chuckdee68/.gitignore
Default Visual Studio .gitignore
# git ignore file
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
@arlm
arlm / App.xaml.cs
Created June 2, 2016 15:58 — forked from emoacht/App.xaml.cs
Check an app's DPI awareness.
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
MessageBox.Show(
String.Format("IsProcessDPIAware: {0}", IsProcessDPIAware()) + Environment.NewLine +
String.Format("GetDpiAwareness: {0}", GetDpiAwareness()));
}
Região Instituição Fim dos endereços
Endereços de alto nível IANA1 31/01/2011
Ásia e Pacífico APNIC 19/04/2011
Europa, Leste Asiático e Oriente Médio RIPE NCC 14/07/2012
América Latina e Caribe LACNIC 10/06/2014
Estados Unidos e Canadá ARIN 24/07/2015
África AFRINIC 22/04/20182
  • 1 - Autoridade para Atribuição de Números da Internet: Instituição que aloca os endereços mundialmente, distribuindo entre regiões e outros interesses especiais.
Informação IPv4 IPv6
Tamanho do endereço 32 bits (4 bytes) 128 bits (16 bytes)
Total de endereços 232 = 4.29 * 109 2128 = 3.4 * 1038
@arlm
arlm / ProgramInlineAsm.cs
Created August 19, 2016 13:25 — forked from xoofx/ProgramInlineAsm.cs
Shows how to use the prototype inline IL ASM with Roslyn
using System;
using System.IO;
using System.Runtime.CompilerServices;
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Method)]
internal class CompilerIntrinsicAttribute : Attribute { }
}
<PropertyGroup>
<AndroidKeyStore>True</AndroidKeyStore>
<AndroidSigningKeyStore>my.keystore</AndroidSigningKeyStore>
<AndroidSigningStorePass>secret store password</AndroidSigningStorePass>
<AndroidSigningKeyAlias>alias</AndroidSigningKeyAlias>
<AndroidSigningKeyPass>other password</AndroidSigningKeyPass>
</PropertyGroup>
@arlm
arlm / amarcondes_COEXNB01 2016-09-20 15_01_21.trx
Last active September 20, 2016 16:26
Last test results for the localization problem on PInvoke tests (https://github.com/AArnott/pinvoke/issues/274)
<?xml version="1.0" encoding="UTF-8"?>
<TestRun id="e68ff7fe-f3a0-4356-b7d1-6dd5e38a183f" name="amarcondes@COEXNB01 2016-09-20 15:01:21" runUser="coextantint\amarcondes" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Times creation="2016-09-20T15:01:21.5961133+02:00" queuing="2016-09-20T15:01:21.5961133+02:00" start="2016-09-20T15:01:21.6231083+02:00" finish="2016-09-20T15:01:39.9729197+02:00" />
<TestSettings name="default" id="07e4586e-d17b-48d2-9c60-878c403162a1">
<Execution>
<TestTypeSpecific />
</Execution>
<Deployment runDeploymentRoot="amarcondes_COEXNB01 2016-09-20 15_01_21" />
<Properties />
</TestSettings>
@arlm
arlm / LogFile.udl.xml
Created September 28, 2016 09:08 — forked from mmdemirbas/LogFile.udl.xml
Custom log file syntax highlighting for Notepad++
<NotepadPlus>
<UserLang name="LogFile" ext="log">
<Settings>
<Global caseIgnored="yes" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">[(0])0</Keywords>
<Keywords name="Folder+"></Keywords>
@arlm
arlm / msbuild-feedback.md
Created September 28, 2016 12:26 — forked from sayedihashimi/msbuild-feedback.md
MSBuild feedback

MSBuild Feedback

This feedback is on the experience of using MSBuild, not just on msbuild.exe

Not in any order, I may sort them later.

Have people want to author scripts using MSBuild

Today creating and maintaining MSBuild scripts is challenging. Some of the challenges for the user include.