Skip to content

Instantly share code, notes, and snippets.

View devlinjunker's full-sized avatar
💭
Pensive

devlinjunker

💭
Pensive
View GitHub Profile
@devlinjunker
devlinjunker / -matoma
Last active November 9, 2020 07:48
AWS Matomo Setup
Matoma Setup on AWS
@devlinjunker
devlinjunker / -https
Last active January 17, 2022 03:36
HTTPS Setup
HTTPS Setup/Renewal on AWS
@devlinjunker
devlinjunker / -webapp-headers
Last active October 8, 2020 22:23
Expected Security Headers for Web App
Response Headers we should set with webapps
Strict-Transport-Security
X-Content-Type-Options
X-Frame-Options
X-XSS-Protection
TODO:
Content-Security-Policy
@devlinjunker
devlinjunker / -apache
Last active November 8, 2020 23:11
Apache Web Server Setup
Apache Web Server Setup
@devlinjunker
devlinjunker / example.bats
Created January 27, 2021 03:03
BATS Example File
#!/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 / .bash_history
Created September 23, 2021 16:54
Setup OSX History
ls
git clone https://github.com/devlinjunker/shell.git
cls
port
node
port install nvm
sudo port install nvm
vim ~/.zshrc
nvm
exit
@devlinjunker
devlinjunker / -nextcloud
Last active February 25, 2024 05:54
Nextcloud Notes
install nextcloud on AWS AMI Instance
@devlinjunker
devlinjunker / remember.sh
Created February 11, 2022 18:16
Reminder script
#! /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 / how-to.md
Last active June 22, 2022 23:02
Example How-to Doc

Before you start ...

❓ When do you need this?

🎮 difficulty level:

@devlinjunker
devlinjunker / -email
Last active November 27, 2023 05:20
Setting up Sending Email from EC2
Changes to EC2 Instance to enable sending email