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 / 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
@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 / 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 / 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