Skip to content

Instantly share code, notes, and snippets.

View knghtbrd's full-sized avatar

Joseph Carter knghtbrd

View GitHub Profile
@fpytloun
fpytloun / init.vim
Last active February 10, 2020 11:42
Neovim config
""" Common behavior
" Theme and colors
let base16colorspace=256
set background=dark
" Disable stupid backup and swap files - they trigger too many events for file
" system watchers
set nobackup
set nowritebackup
set noswapfile
@crittermike
crittermike / wget.sh
Last active October 30, 2024 20:38
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.
@htammen
htammen / xsa login via bitwarden.md
Last active July 20, 2020 14:53
securely login via shell

Want to securely login to command line tools without exposing your credentials?

  • Install one of the Bitwarden clients (https://github.com/bitwarden)
  • Create your secure passwords with the Bitwarden client
    • Here I created a secure item with the namen xsa-engine
  • Install the Bitwarden CLI (https://github.com/bitwarden/cli)
  • At command line login to the Bitwarden CLI (bw login)
  • Write a script like the following to securely connect to your applications / servers. Here I connect to the HANA XSA server via xs client.
  • chmod 755 xsa_login.sh