Skip to content

Instantly share code, notes, and snippets.

Avatar

Keith Bennett keith-bennett-gbg

View GitHub Profile
@p3t3r67x0
p3t3r67x0 / openssl_commands.md
Last active Aug 2, 2022
Some list of openssl commands for check and verify your keys
View openssl_commands.md

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@carlbennett
carlbennett / linux-cheatsheet.sh
Last active Mar 20, 2022
Cheatsheet for Fedora, CentOS, and RedHat family members of Linux
View linux-cheatsheet.sh
# Fix user and directory permissions:
find . -type f -print0 | sudo xargs -0 chmod 664
find . -type d -print0 | sudo xargs -0 chmod 775
# Copy user permissions to group permissions:
chmod -R g=u .
# Make new files inherit the group of the container directory
chmod g+s <directory>
@dannguyen
dannguyen / wget-snapshotpage.md
Last active May 14, 2022
Use wget to snapshot a page and its necessary visual dependencies
View wget-snapshotpage.md

Use wget to mirror a single page and its visible dependencies (images, styles)

Money graphic via State of Florida CFO Vendor Payment Search

Graphic via State of Florida CFO Vendor Payment Search (flair.myfloridacfo.com)

This is a quick command I use to snapshot webpages that have a fun image I want to keep for my own collection of WTFViz. Why not just right-click and save the image? Oftentimes, the webpage in which the image is embedded contains necessary context, such as captions and links to important documentation just incase you forget what exactly that fun graphic was trying to explain.