Skip to content

Instantly share code, notes, and snippets.

View Nebuchadrezzar's full-sized avatar
🏠
Working from home

Nebuchadrezzar Nebuchadrezzar

🏠
Working from home
View GitHub Profile
import os
import sys
from contextlib import contextmanager
from copy import deepcopy
@contextmanager
def no_output():
original_stdout = sys.stdout
sys.stdout = open(os.devnull, "w")
@romainl
romainl / grep.md
Last active June 15, 2024 03:32
Instant grep + quickfix

FOREWORDS

I don't mean the snippet at the bottom of this gist to be a generic plug-n-play solution to your search needs. It is very likely to not work for you or even break things, and it certainly is not as extensively tested and genericised as your regular third-party plugin.

My goal, here and in most of my posts, is to show how Vim's features can be leveraged to build your own high-level, low-maintenance, workflows without systematically jumping on the plugins bandwagon or twisting Vim's arm.


Instant grep + quickfix

@plentz
plentz / nginx.conf
Last active June 27, 2024 21:05
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048