Skip to content

Instantly share code, notes, and snippets.

View stroehleina's full-sized avatar

Andreas Stroehlein stroehleina

View GitHub Profile
@jftuga
jftuga / less.md
Last active January 30, 2026 19:00
Using the LESS environment variable

set LESS environment variable to: -SXIFRs in your .bash_profile or .bashrc:

  • -S: chop lines, side scroll with left/right arrow keys
  • -X: leave contents on screen when less exits
  • -I: ignore case when searching with / or ?
  • -F: quit immediately when the entire file fits in one screen
  • -R: enable colored output
  • -s: squeeze blank lines into a single blank line

useful:

@bradtraversy
bradtraversy / mongodb_cheat_sheet.md
Last active February 8, 2026 18:42
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@justincbagley
justincbagley / How_to_Convert_Markdown_to_PDF.md
Last active February 9, 2026 12:23
How To Convert Markdown to PDF

How to convert markdown to PDF:

This post reviews several methods for converting a Markdown (.md) formatted file to PDF, from UNIX or Linux machines.

Using Pandoc:

$ pandoc How_I_got_svg-resizer_working_on_Mac_OSX.md -s -o test1.pdf