Skip to content

Instantly share code, notes, and snippets.

View tizzleh's full-sized avatar

Ty Harlacker tizzleh

  • New Mexico
View GitHub Profile
" IdeaVim Wiki https://github.com/JetBrains/ideavim/wiki
" Find more examples here: https://jb.gg/share-ideavimrc
let mapleader=";"
""" Common settings -------------------------
set showmode
set scrolloff=5
" Do incremental searching.
set incsearch
@tizzleh
tizzleh / vim-tricks.md
Last active September 22, 2022 22:42
VIM Tricks

VIM TRICKS

Replace all occurances:

:%s/foo/bar/g

Replace on certain lines:

:6,10s/foo/bar/g

Jump/Change lists:

Ctrl + o/i and g;

@tizzleh
tizzleh / gunicorn.md
Last active September 7, 2022 23:09
Start gunicorn with Nginx forwarded headers allowed.

Start gunicorn

gunicorn -w 3 --forwarded-allow-ips="10.170.3.217,10.170.3.220" app:server

Nginx server block

server {
    listen 80;
    server_name "";
    location / {
 proxy_pass http://127.0.0.1:8000;