Skip to content

Instantly share code, notes, and snippets.

View mightyBroccoli's full-sized avatar

nico mightyBroccoli

View GitHub Profile
@raulperula
raulperula / README.me
Created March 10, 2017 11:52
How do I save terminal output to a file?
To write the output of a command to a file, there are basically 10 commonly used ways.
Please note that the n.e. in the syntax column means "not existing".
There is a way actually, but it's too complicated to fit into the column. You can find a helpful link in the List section about it.
Overview:
|| visible in terminal || visible in file || existing
Syntax || StdOut | StdErr || StdOut | StdErr || file
==========++==========+==========++==========+==========++===========
@philipstanislaus
philipstanislaus / sane-caching.nginx.conf
Last active April 11, 2024 03:35
Sample Nginx config with sane caching settings for modern web development
# Sample Nginx config with sane caching settings for modern web development
#
# Motivation:
# Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools.
# These tools automatically deactivate all sorts of caching for you, so you always have a fresh
# and juicy version of your assets available.
# At some point, however, you want to show your work to testers, your boss or your client.
# After you implemented and deployed their feedback, they reload the testing page – and report
# the exact same issues as before! What happened? Of course, they did not have developer tools
# open, and of course, they did not empty their caches before navigating to your site.