Skip to content

Instantly share code, notes, and snippets.

View m3nd3s's full-sized avatar

Almir Mendes m3nd3s

View GitHub Profile
@m3nd3s
m3nd3s / NERDTree.mkd
Last active November 23, 2023 13:45
My Vim Cheat Sheet

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

@m3nd3s
m3nd3s / binary_counter.pde
Created March 17, 2012 21:59
Contador binário utilizando 3 LEDs
/**
* CONTADOR BINÁRIO COM ARDUINO E 3 LEDS
*
**/
// Pinos dos LEDs
int ledPin1 = 4;
int ledPin2 = 5;
int ledPin3 = 6;
@m3nd3s
m3nd3s / shell.mkd
Last active October 24, 2018 17:14
Shell presentation

%title: Shell Linux %author: Almir Mendes %date: 2018-09-27

-> Shell Linux <-

-> Uma pequena talk sobre comandos shell <-


@m3nd3s
m3nd3s / prettycsv.sh
Created March 12, 2018 20:05
Console Pretty CSV
#!/bin/bash
PATH=$PATH:/usr/bin:/bin:/usr/local/bin
while [ "$1" != "" ]; do
case $1 in
-s ) shift
SEPARATOR=$1
;;
* ) FILEPATH=$1
@m3nd3s
m3nd3s / nginx.conf
Created April 12, 2017 20:17 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@m3nd3s
m3nd3s / nginx.conf
Created October 10, 2014 14:10
Nginx: Navegação Liberada por IP
#
# Diretiva http {}
#
http {
# ...
geo $developer {
default no;
#177.206.31.159/32 yes; # IP que terá liberação
@m3nd3s
m3nd3s / helper.rb
Created November 13, 2013 13:33
Helper do Mendes
#encoding: utf-8
module M3nd3s
def me_ajuda!
"NÃO"
end
end
@m3nd3s
m3nd3s / gitconfig
Created November 1, 2013 16:15
Git config
[user]
name = NOME
email = EMAIL
[color]
branch = auto
diff = auto
status = auto
ui = true
[color "branch"]
current = yellow reverse
brew update
brew versions FORMULA
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
#
brew update
brew versions FORMULA
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
#