View -webapp-headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Response Headers we should set with webapps | |
Strict-Transport-Security | |
X-Content-Type-Options | |
X-Frame-Options | |
X-XSS-Protection | |
TODO: | |
Content-Security-Policy |
View -apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache Web Server Setup |
View -matoma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Matoma Setup on AWS |
View example.bats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 -"; |
View .bash_history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls | |
git clone https://github.com/devlinjunker/shell.git | |
cls | |
port | |
node | |
port install nvm | |
sudo port install nvm | |
vim ~/.zshrc | |
nvm | |
exit |
View -https
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTPS Setup/Renewal on AWS |
View remember.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
View - IPv6 on AWS EC2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enable ssh to EC2 Instance via IPv6 (iPhone hotspot) |
View -nextcloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install nextcloud on AWS AMI Instance |
OlderNewer