Skip to content

Instantly share code, notes, and snippets.

View codingleo's full-sized avatar
🚀
Hey, ho, let's code!

Leonardo Ribeiro codingleo

🚀
Hey, ho, let's code!
View GitHub Profile
@codingleo
codingleo / nginxproxy.md
Created December 16, 2016 19:52 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@codingleo
codingleo / rd_integration.md
Last active March 8, 2017 20:38
Resultados Digitais - Integração de Formulários com JQuery

#RD Station - Resultados Digitais ##Integração de formulários com JQuery


Abaixo, função simples para integração de qualquer formulário com resultados digitais.

/**
* @attr identificador - É o identificador do formulário. Deve ser uma STRING
* @attr form_id - É o ID do formulário. Deve ser uma STRING. Ex.:  - use: "#form1" na/o função / método.
@codingleo
codingleo / settings.json
Created June 20, 2024 16:15 — forked from ixahmedxi/settings.json
VSCode settings.json
{
// open json editor for settings
"workbench.settings.editor": "json",
// Theme
"workbench.colorTheme": "Aura Dark",
"workbench.iconTheme": "moxer-icons",
// Change font
"editor.fontFamily": "Geist Mono",
@codingleo
codingleo / keybindings.json
Created June 20, 2024 16:15 — forked from ixahmedxi/keybindings.json
Vscode neovim keybindings.json
[
{
"command": "vscode-neovim.compositeEscape1",
"key": "j",
"when": "neovim.mode == insert && editorTextFocus",
"args": "j"
},
{
"command": "vscode-neovim.compositeEscape2",
"key": "k",
@codingleo
codingleo / init.vim
Created June 20, 2024 16:16 — forked from ixahmedxi/init.vim
vscode neovim init.vim
" packadd quickscope
" execute 'luafile ' . stdpath('config') . '/lua/settings.lua'
function! s:manageEditorSize(...)
let count = a:1
let to = a:2
for i in range(1, count ? count : 1)
call VSCodeNotify(to == 'increase' ? 'workbench.action.increaseViewSize' : 'workbench.action.decreaseViewSize')
endfor
endfunction