Skip to content

Instantly share code, notes, and snippets.

View alMubarmij's full-sized avatar

alMubarmij alMubarmij

  • Saudi Arabia
  • 19:50 (UTC +03:00)
View GitHub Profile
@alMubarmij
alMubarmij / download-site.md
Created June 15, 2025 09:00 — forked from pmeinhardt/download-site.md
download an entire page (including css, js, images) for offline-reading, archiving… using wget

If you ever need to download an entire website, perhaps for off-line viewing, wget can do the job — for example:

$ wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains website.org --no-parent  www.website.org/tutorials/html/

This command downloads the website www.website.org/tutorials/html/.

The options are:

  • --recursive: download the entire website
  • --domains website.org: don't follow links outside website.org
@alMubarmij
alMubarmij / download-site.md
Created June 15, 2025 09:00 — forked from pmeinhardt/download-site.md
download an entire page (including css, js, images) for offline-reading, archiving… using wget

If you ever need to download an entire website, perhaps for off-line viewing, wget can do the job — for example:

$ wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains website.org --no-parent  www.website.org/tutorials/html/

This command downloads the website www.website.org/tutorials/html/.

The options are:

  • --recursive: download the entire website
  • --domains website.org: don't follow links outside website.org
@alMubarmij
alMubarmij / bookmarklets.js
Created May 3, 2025 10:20 — forked from stoerr/bookmarklets.js
A couple of ChatGPT bookmarklets to summarize text from the current page, or generate text
/* jshint -W028 */
// bookmarklets to summarize the shown webpage.
// replace XXXInsertAPIKeyHereXXX with your API key to use these bookmarklets.
// this summarizes the text on the page. (We might have to cut it down to 3000 words, because the API has a limit of 3000 words.)
javascript:(async () => {
var apikey = "XXXInsertAPIKeyHereXXX";
const maxwordcount = 2500;
try {
@alMubarmij
alMubarmij / Run Commands.md
Created December 7, 2024 18:09 — forked from godmaster007/Run Commands.md
[Windows 11] #markdown

Windows 11 Run Command List

Open Run: win+r

  • Startup App Folder: shell:startup

Another directory for start apps

C:\ProgramData\Microsoft\Windows\Start Menu\Programs

@alMubarmij
alMubarmij / openssl.MD
Created May 8, 2021 13:29 — forked from jchandra74/openssl.MD
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome

Artisan
// Displays help for a given command
php artisan --help OR -h
// Do not output any message
php artisan --quiet OR -q
// Display this application version
php artisan --version OR -V
// Do not ask any interactive question
php artisan --no-interaction OR -n
// Force ANSI output