Skip to content

Instantly share code, notes, and snippets.

View devdrops's full-sized avatar
🔥
Paz Entre Nós, Guerra Aos Senhores

Davi Marcondes Moreira devdrops

🔥
Paz Entre Nós, Guerra Aos Senhores
View GitHub Profile
  • Zsh
    • Set as login shell:
    $ ~ cat /etc/shells
    $ ~ sudo chsh -s {path to Zsh bin}
    
  • Oh My Zsh
@devdrops
devdrops / .gitconfig
Created April 26, 2018 02:40 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@devdrops
devdrops / vim-cheats.md
Created February 24, 2018 13:47 — forked from Starefossen/vim-cheats.md
My vim cheat sheet for working with tabs and window splits.

Tabs

New Tab

  • :tabnew - new blank tab
  • :tabedit [file] - open file in tab

Cursor Movement

  • gt (:tabn) - next tab
@devdrops
devdrops / tmux.md
Created February 24, 2018 13:45 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@devdrops
devdrops / tmux-cheatsheet.markdown
Created February 24, 2018 13:42 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@devdrops
devdrops / netrw quick reference.md
Created February 7, 2018 03:02 — forked from t-mart/netrw quick reference.md
A quick reference for Vim's built-in netrw file selector.
Map Action
<F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file
<del> Netrw will attempt to remove the file/directory
- Makes Netrw go up one directory
a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide)
c Make browsing directory the current directory
C Setting the editing window
d Make a directory
@devdrops
devdrops / Dockerfile
Last active October 3, 2017 03:00
DiffCS: proposal for Docker environment
FROM php:7.1-cli
ARG VCS_REF
ARG BUILD_DATE
ARG RELEASE_VERSION
LABEL authors="Davi Marcondes Moreira <[email protected]>, Marcelo Santos <[email protected]>" \
org.label-schema.name="Docker/DiffCS" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.build-date=$BUILD_DATE \
@devdrops
devdrops / instructions.md
Last active July 5, 2017 20:00
VIM basic settings

VIM basic settings

How to install?

curl -o ~/.vimrc https://gist.githubusercontent.com/devdrops/c8a5ee0a52fbe59fe19668ee309302b3/raw/aa7583d6c802f07e0e03f94a999f7ac3bec968b5/vimrc

mkdir -p ~/.vim/syntax

curl -o ~/.vim/syntax/php.vim https://gist.githubusercontent.com/devdrops/c8a5ee0a52fbe59fe19668ee309302b3/raw/a5f6f5386b0e3d4d8b4fe6873052be6991b80186/php.vim
@devdrops
devdrops / instructions.md
Created June 13, 2017 21:09
Como executar validações do SDK

Como executar validações do SDK

  1. Vá na raiz do diretório de pagarme-php.

  2. Faça o checkout do branch a ser avaliado.

  3. Instale as dependências do Composer, conforme abaixo:

    docker-compose run composer install
    
@devdrops
devdrops / lista.md
Created May 31, 2017 02:17
IDÉIAS!

IDÉIAS

Lista de ideias para fazer! \o/

  • Gastos
    • Sistema para acompanhar a evolução dos meus gastos. Por uma interface eu registro o gasto (Telegram?), e num dashboard eu vejo os gastos em comparação. Pode ser hospedado no Heroku e usar o PostgreSQL para persistir os dados. Lá dentro pode ter uma interface web que exibe os gastos conforme as regras que eu quiser.