Skip to content

Instantly share code, notes, and snippets.

View andrematias's full-sized avatar
🏠
Working from home

André Matias andrematias

🏠
Working from home
View GitHub Profile
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --tern-completer' }
Plug 'eslint/eslint'
Plug 'dense-analysis/ale'
Plug 'pangloss/vim-javascript' " JavaScript support
Plug 'leafgarland/typescript-vim' " TypeScript syntax
@andrematias
andrematias / md5Filecompare.ps1
Last active April 29, 2021 17:41
Um script basico para gerar um md5 de arquivos e compara-los
Param (
$FirstFile = $(throw "Um primeiro arquivo eh requerido"),
$SecondFile = $(throw "Um segundo arquivo eh requerido")
)
function md5hash($path)
{
$md5 = new-object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
$file = [System.IO.File]::Open($path,[System.IO.Filemode]::Open, [System.IO.FileAccess]::Read)
try {
@andrematias
andrematias / INSTALL.md
Created March 20, 2022 09:58 — forked from takeit/INSTALL.md
Write to NTFS on macOS Sierra (osxfuse + ntfs-3g)
  1. Install osxfuse:
brew cask install osxfuse
  1. Reboot your Mac.

  2. Install ntfs-3g:

@andrematias
andrematias / __upload_file.md
Created March 21, 2022 19:36 — forked from maxivak/__upload_file.md
PHP upload file with curl (multipart/form-data)

We want to upload file to a server with POST HTTP request. We will use curl functions.

// data fields for POST request
$fields = array("f1"=>"value1", "another_field2"=>"anothervalue");

// files to upload
$filenames = array("/tmp/1.jpg", "/tmp/2.png");