Skip to content

Instantly share code, notes, and snippets.

View AlbertoMonteiro's full-sized avatar
😎
Writting every day lines fo happy code

Alberto Monteiro AlbertoMonteiro

😎
Writting every day lines fo happy code
View GitHub Profile
@rponte
rponte / using-uuid-as-pk.md
Last active October 30, 2024 19:58
Não use UUID como PK nas tabelas do seu banco de dados

Pretende usar UUID como PK em vez de Int/BigInt no seu banco de dados? Pense novamente...

TL;TD

Não use UUID como PK nas tabelas do seu banco de dados.

Um pouco mais de detalhes

@AlbertoMonteiro
AlbertoMonteiro / alberto-theme.psm1
Last active August 14, 2021 10:25
My powershell theme
#requires -Version 2 -Modules posh-git
function Write-Theme {
param(
[bool]
$lastCommandFailed,
[string]
$with
)
@giggio
giggio / links.md
Last active April 20, 2022 21:03
Links palestra "Usando um ambiente Linux completo no Windows com WSL e VSCode"
@PashCracken
PashCracken / WSL-with-zsh-and-powerlevel9k.png
Last active September 4, 2023 07:28
WSL, zsh and Powerlevel10k
WSL-with-zsh-and-powerlevel9k.png
@fragsalat
fragsalat / decorator.js
Created February 27, 2019 23:38
Aurelia computedFrom array of objects
import {Parser, Expression, ComputedExpression, Binding, Scope, createOverrideContext} from 'aurelia-binding';
class ComputedListExpression extends Expression {
/**
* @param {String} expressionStr Expression string for one dependency
*/
constructor(expressionStr: string) {
super();
const parser = new Parser();
@AlbertoMonteiro
AlbertoMonteiro / comandos.md
Created December 13, 2017 12:57
Docker sucesso
docker run -it --mount source=my-vol,target=c:/app microsoft/dotnet-framework powershell
docker network ls
docker volume create my-vol
docker volume inspect my-vol
@AlbertoMonteiro
AlbertoMonteiro / collations.md
Created August 10, 2017 12:14
Collation Sql Server ignorar acentos, cedilha e case
@AlbertoMonteiro
AlbertoMonteiro / delete_order_version_elastic_beanstalk.js
Last active September 6, 2017 19:26
Script to delete order version of Elastic Beanstalk in AWS Console
jQuery("table").find("input[type=checkbox]").each((i,e) => { setTimeout(() => { if(i >= 100) jQuery(e).click(); }, 0); })
@Danielku15
Danielku15 / Example.html
Created February 25, 2016 19:53
A MediaTypeFormatter for WebApi for multipart/form-data including file uploads
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>File Upload example</title>
<link href="/Content/bootstrap.css" rel="stylesheet" />
</head>
<body>
<form action="api/Upload" method="post">
<div class="form-group">
@rvl
rvl / git-pushing-multiple.rst
Created February 9, 2016 11:41
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just