Skip to content

Instantly share code, notes, and snippets.

View tumelo-mapheto's full-sized avatar
:octocat:

Tumelo Mapheto tumelo-mapheto

:octocat:
  • 127.0.0.1
  • 02:30 (UTC +02:00)
View GitHub Profile
@tumelo-mapheto
tumelo-mapheto / open-cmder-here.md
Created April 30, 2023 09:49 — forked from hamzahamidi/open-cmder-here.md
"Open Cmder Here" in context menu

"Open Cmder Here" in context menu

Edit 04/2021:

As of the lastest versions, just execute the following command .\cmder.exe /REGISTER ALL per Documentation.

Original Solution

To add an entry in the Windows Explorer context menu to open Cmder in a specific directory, paste this into a OpenCmderHere.reg file and double-click to install it.

@tumelo-mapheto
tumelo-mapheto / wget.sh
Created February 14, 2023 15:29 — forked from crittermike/wget.sh
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@tumelo-mapheto
tumelo-mapheto / postgres-cheatsheet.md
Created March 23, 2022 20:46 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)