Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Pensive

devlinjunker

💭
Pensive
View GitHub Profile
@devlinjunker
devlinjunker / -nextcloud
Last active Aug 22, 2022
Nextcloud on AWS
View -nextcloud
install nextcloud on AWS AMI Instance
@devlinjunker
devlinjunker / how-to.md
Last active Jun 22, 2022
Example How-to Doc
View how-to.md

Before you start ...

When do you need this?

🎮 difficulty level:

View remember.sh
#! /bin/bash
# print last 20 lines
remember() {
cat ~/.bash_history | awk '{ if (NR % 2 == 0) print NR/2,$0 }' | awk '{ array[NR]=$0 } END { for (i=NR-20; i<=NR; i++) print array[i] }'
}
# TODO:
# - [ ] Accept parameters and check if
@devlinjunker
devlinjunker / -https
Last active Jan 17, 2022
HTTPS Setup
View -https
HTTPS Setup/Renewal on AWS
View .bash_history
ls
git clone https://github.com/devlinjunker/shell.git
cls
port
node
port install nvm
sudo port install nvm
vim ~/.zshrc
nvm
exit
View example.bats
#!/usr/bin/env ../../..libs/bats/bin/bats
load '../../../lib/bats-support/load'
load '../../../lib/bats-assert/load'
# ^^ Make sure the above are correct, or make relative ^^
# Locate the script file to test based on .bats file path
SCRIPT_DIR="$BATS_TEST_DIRNAME"<relative_path_from_this_file>
TEST_PREFIX="download-image.sh -";
@devlinjunker
devlinjunker / -matoma
Last active Nov 9, 2020
AWS Matomo Setup
View -matoma
Matoma Setup on AWS
@devlinjunker
devlinjunker / -apache
Last active Nov 8, 2020
Apache Web Server Setup
View -apache
Apache Web Server Setup
@devlinjunker
devlinjunker / -webapp-headers
Last active Oct 8, 2020
Expected Security Headers for Web App
View -webapp-headers
Response Headers we should set with webapps
Strict-Transport-Security
X-Content-Type-Options
X-Frame-Options
X-XSS-Protection
TODO:
Content-Security-Policy