Skip to content

Instantly share code, notes, and snippets.

View lramosduarte's full-sized avatar
:octocat:
Working

Leonardo Ramos Duarte lramosduarte

:octocat:
Working
  • Minas Gerais
View GitHub Profile
@william8th
william8th / .tmux.conf
Last active May 23, 2024 18:31
Tmux open new pane in same directory
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B)
set -g prefix C-space
unbind-key C-b
bind-key C-space send-prefix
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
@lramosduarte
lramosduarte / GPGKeys.md
Last active March 9, 2019 23:49
Basic uses for GPG-Keys

GPG keys

Create

Todo

Update expire date public key

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:


🇧🇷 [pt-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS

@squarism
squarism / iterm2.md
Last active May 30, 2024 14:42
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@staltz
staltz / introrx.md
Last active May 30, 2024 18:43
The introduction to Reactive Programming you've been missing
@lpirola
lpirola / lista-de-nacionalidade.txt
Created November 4, 2013 22:12
Lista de países em português com suas respectivas nacionalidades
Antígua e Barbuda - Antiguano
Argentina - Argentino
Bahamas - Bahamense
Barbados - Barbadiano, barbadense
Belize - Belizenho
Bolívia - Boliviano
Brasil - Brasileiro
Chile - Chileno
Colômbia - Colombiano
Costa Rica - Costarriquenho
@j4mie
j4mie / 400or403.md
Created November 20, 2011 20:02
400 or 403?

400 or 403 for invalid form submission?

Conclusion: use 400

The Spec ( http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html )

10.4.1 400 Bad Request

The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.