Skip to content

Instantly share code, notes, and snippets.

View stroehleina's full-sized avatar

Andreas Stroehlein stroehleina

  • Berlin, Germany
View GitHub Profile
@jftuga
jftuga / less.md
Last active August 9, 2024 22:06
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 September 19, 2024 17:29
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 August 27, 2024 09:13
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