Skip to content

Instantly share code, notes, and snippets.

View mniak's full-sized avatar
🌵
Nothing is happening

Mniak mniak

🌵
Nothing is happening
View GitHub Profile
@mniak
mniak / Scripts.md
Last active January 6, 2021 19:09
Scripts Dia-a-dia

Use Braspag private NuGet feed on linux

git update-index --assume-unchanged nuget.config 
bpdt patch-nuget ./nuget.config Braspag any_username $NUGET_PAT

Revert index

@mniak
mniak / Slides.md
Last active June 16, 2020 13:04
Tech Talk aboud integration tests running on containers
@mniak
mniak / .dockerignore
Last active May 22, 2020 15:15
Docker image of mock server with default set of expectaions https://mock-server.com
node_modules/
**/*
!expectations/
!*.json
!*.js
import srt
with open('legenda2.srt') as f:
subs = srt.parse(f.read())
def corrige_coincidencia(anterior, atual):
if anterior is None:
return atual
anterior_linhas = anterior.content.split('\n')
@mniak
mniak / FontsAndColors.vssettings
Last active April 3, 2020 12:04
Visual Studio Settings
<UserSettings>
<ApplicationIdentity version="16.0"/>
<ToolsOptions>
<ToolsOptionsCategory name="Environment" RegisteredName="Environment"/>
</ToolsOptions>
<Category name="Environment_Group" RegisteredName="Environment_Group">
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package">
<PropertyValue name="Version">2</PropertyValue>
<FontsAndColors Version="2.0">
<Theme Id="{1DED0138-47CE-435E-84EF-9EC1F439B749}"/>
@mniak
mniak / AutofacExtensions.cs
Last active March 6, 2020 13:35
Easy decorators for Autofac
using Autofac.Builder;
using Autofac.Core;
using System;
namespace Autofac
{
internal static class AutofacExtensions
{
public static DecoratorRegistry<TInterface> ForInterface<TInterface>(this ContainerBuilder builder)
{
using System.Collections.Generic;
namespace SerialLogger
{
internal static class Crc16
{
public static ushort Compute(IEnumerable<byte> data)
{
const ushort mask = 0x1021;
ushort crc = 0;
@mniak
mniak / iatec.png
Last active November 1, 2018 19:51
iatec.png
@mniak
mniak / keybase.md
Last active March 25, 2021 21:08
Kebase Proof (new one)

Keybase proof

I hereby claim:

  • I am mniak on github.
  • I am mniak (https://keybase.io/mniak) on keybase.
  • I have a public key ASBSZOD1FFX6tcQqmJhil_ztyqC39EWhT5pv1AYA2_i6awo

To claim this, I am signing this object:

@mniak
mniak / index.html
Last active August 1, 2018 03:06 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site em manuten&ccedil;&atilde;o</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>