Skip to content

Instantly share code, notes, and snippets.

View igorferreira's full-sized avatar
🏠
Working at Sulamerica

Igor Ferreira igorferreira

🏠
Working at Sulamerica
View GitHub Profile
@igorferreira
igorferreira / git-buffer-size
Created February 7, 2018 13:31 — forked from josephmilla/git-buffer-size
Increase git buffer size
git config http.postBuffer 524288000 #Set to 500MB
@igorferreira
igorferreira / cntlm.md
Created September 30, 2019 14:14 — forked from ZackStone/cntlm.md
Como instalar e configurar o Cntlm.

Instalar e configurar o Cntlm

Página de download: https://sourceforge.net/projects/cntlm/files/

Gerar senha criptografada

  • Após a instalação, vá até a pasta em que o software foi instalado (normalmente C:\Program Files (x86)\Cntlm\).
  • Segure o Shift e clique com o botão direto em uma área em branco dentro da pasta, e selecione a opção Abrir janela de comando aqui.
  • No prompt de comando que será aberto, digite cntlm -H. Será pedido sua senha, entre com a senha do Windows (usuário de rede) e tecle enter.
  • Será gerado alguns parâmetros como o trecho abaixo:
@igorferreira
igorferreira / git-aliases.md
Created October 9, 2020 13:55 — forked from kelvinst/git-aliases.md
Git alias - seja rápido, seja breve!

Git alias - seja rápido, seja breve!

Git freak como sou, precisava compartilhar algo útil sobre ele, claro. E, já que não vejo muito por aí o pessoal usando, resolvi falar dos alias do git! É um recurso que eu uso muito, e nunca entendi porque muitas pessoas não são adeptas. 😕

Pelo nome você já deve perceber que os alias no git são atalhos. Atalhos pro quê? São atalhos para comandos do git e até comandos shell se você quiser. E é bem fácil cadastrar um alias:

$ git config --global alias.st status
@igorferreira
igorferreira / diagrams.md
Created August 16, 2022 19:17 — forked from blackcater/diagrams.md
Markdown Diagrams

Diagrams

Markdown Preview Enhanced supports rendering flow charts, sequence diagrams, mermaid, PlantUML, WaveDrom, GraphViz, Vega & Vega-lite, Ditaa diagrams. You can also render TikZ, Python Matplotlib, Plotly and all sorts of other graphs and diagrams by using Code Chunk.

Please note that some diagrams don't work well with file exports such as PDF, pandoc, etc.

Flow Charts

This feature is powered by flowchart.js.

@igorferreira
igorferreira / Change-Java-Home.ps1
Created October 18, 2023 22:35 — forked from Smail/Change-Java-Home.ps1
Change Java Home via PowerShell, Scoop and OpenJDK
# You need to add %JAVA_HOME%bin to the beginning of your Path variable
$version = $args[0].trim()
$helpText = "To change to the latest OpenJDK version enter 'latest', otherwise enter the version you want to use." + [Environment]::NewLine + "Usage: Change-Java-JDK (latest|\d|-{0,2}help)"
if ($version -eq "latest") {
$version = ""
} elseif ($version -match "^\s*-{0,2}help\s*$") {
Write-Host $helpText
return
} elseif (!($version -match "^\d+$")) {