WesleyBallard.com
Home Software Links DDD Prints
Interesting Software
Static Site Generator
Source
Static Site Generator Usage:
Usage: ./ssg.sh SOURCE-FILES-DIR DESTINATION-DIR SITE-NAME SITE-PREFIX
Example: ./ssg.sh ~/website-src /var/www/website WesleyBallard.com http://
Artha - Offline Dictionary
Source
With the program running highlight a word a press CTL + ALT + W to get the definition.
Evolution - Desktop Email Client
Source
Supports Email, Calenar, Contacts, Tasks, Memos.
yt-dlp - YouTube Download Utility
Source
Best video and best audio:
yt-dlp --no-overwrite --format bv+ba YOUTUBE-LINK
Best video, best audio, write description file, embed data:
yt-dlp \
--no-overwrite \
--format bv+ba \
--write-description \
--embed-subs \
--embed-thumbnail \
--embed-metadata \
--embed-chapters \
--embed-info-json \
YOUTUBE-LINK
1080p video, best audio, write desciption file, embed data, add upload date to filename:
yt-dlp \
--no-overwrite \
--format "bv*[height=1080]+ba/b" \
--write-description \
--windows-filenames \
--progress \
--embed-subs \
--embed-thumbnail \
--embed-metadata \
--embed-chapters \
--embed-info-json \
-o "%(upload_date>%Y-%m-%d)s - %(title)s.%(ext)s" \
Youtube-Link
GuestMount - Mount Disk Images To Host
Source
Mount VMWare Disk Image:
guestmount -a diskimage.vmdk -i --ro /mnt/MountPoint
KeePassXC - Local Password Manager
Source
After installation, open settings under 'Tools' then 'Settings'
Click tab 'General', under 'Basic Settings' Check the boxes for
'Automatically launch KeePassXC at system startup'.
'Minimize window after unlocking database'
Scroll to bottom under 'User Interface', Check the boxes for
'Show a system tray icon'
'Hide window to system tray when minimized'
Click 'OK'
RSync - File Syncing Utility
Source
Sync from EXT4 to NTFS formated drives:
Writing to a NTFS filesystem requires 'fuse' and 'ntfs-3g' to be installed.
Using '-a' will attempt to match security permissions which is not possible with NTFS.
This results in all files being listed, rather than just the new/modified files.
rsync -rtvin --progress Source-Dir/ Destination-Dir/
-n (Dry-Run) (Remove this option to actually copy files)
-r (Recursive)
-t (Preserve modification times)
-v (Verbose)
-i (Itemize Changes) (Output a change-summary for all updates)
TCPDump - Network Packet Capture
Source - sudo apt get install tcpdump
Capture incoming ICMP packets
sudo tcpdump -i NETWORK-DEVICE-NAME icmp
Capture TCP packets on port 80
sudo tcpdump tcp port 80
XWD - Capture window to a PNG
Source
Click window to be captured
xwd | xwdtopnm | pnmtopng > Output.png
Debian Debug
Source
Check boot log
sudo journalctl -b
Shred - Securely Erase HDD
sudo shred -v -z -n1 /dev/sdc
-v = Display progress
-z = Write all zeros to drive to obscure drive wipe.
-n1 = Times to wipe the drive. ( Wipe once in this example.)
SSH - Secure Shell
Source
Source
Generate an SSH key
ssh-keygen
-----
Copy public key to a server
ssh-copy-id -i ~/.ssh/id_rsa.pub -p SSH-PORT user@hostame.tld
-----
Find the fingerprint of your SSH key
ssh-keygen -lf ~/.ssh/id_KEYTYPE
-----
Find the fingerprint of SSH host key
ssh-keygen -lf /etc/ssh/ssh_host_KEYTYPE_key
Git - Version Control
Don't list untracked files for the git status command.
git status -uno
setxkbmap - Keyboard Mapping
Swap the Escape and Caps Lock key
setxkbmap -option caps:swapescape
Add to ~/.profile
Other options are possible:
caps:none to deactivate
caps:escape to make it an additional escape
caps:super to make it an additional super (windows) key.
SetCap - Set File Capabilities
Allow binary ran as non-priviliaged user to bind to low ports ex. 80, 443.
sudo setcap CAP_NET_BIND_SERVICE=+eip /path/to/binary
VIM - Text Editor
Search and replace first occurrence on one line.
:s/searchtext/replacetext/
Search and replace With Confirmation first occurrence on one line.
:s/searchtext/replacetext/c
Search and replace all occurrences on one line.
:s/searchtext/replacetext/g
Search and replace all occurrences in the file.
:%s/searchtext/replacetext/g
Search Case-Insensitive and replace all occurrences in the file.
:%s/searchtext/replacetext/gi
EXIFTool - Image MetaData Removal
Remove metadata from all images in the directory where the command is executed.
exiftool -overwrite_original -recurse -all= *
Brasero - Graphical CD/DVD Burner
Source
MiniCom - Serial Communication
Example:
Monitor device /dev/ttyUSB0 with baudrate 9600.
minicom -D /dev/ttyUSB0 -b 9600
Send Characters To Serial Device:
Press: CTRL+A
Press: O
Arrow Down To "Serial Port Setup"
Press: ENTER
Disable "Hardware Flow Control"
Press: F
Exit The Menu
Press: ESC
Save The Settings As Default
Arrow Down To "Save Setup As DFL"
Press: Enter
Exit The Menu
Press: ESC