http protocol "https_reverse_proxy" {
[...]
# CSPs to help reduce the risk of Cross-Site Scripting
# https://content-security-policy.com/
# Hosts that require custom CSPs
match request header "Host" value "myapp1.com" tag "myapp1"
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 zsh | |
# | |
# 11038420120702 BACKS UP IMPORTANT FOLDERS | |
# | |
# Requires: md5deep64 | |
# | |
# backup [-t] | |
# | |
# -t Simulate backup |
Commandline works fine:
# doas -u apps sh -c 'cd /home/apps/coolest_app_ever ; /home/apps/.gem/bin/bundle exec
/home/apps/.gem/bin/pumactl --config-file /home/apps/coolest_app_ever/config/puma.rb start'
Puma starting in single mode...
* Version 4.3.3 (ruby 2.6.6-p146), codename: Mysterious Traveller
* Min threads: 0, max threads: 16
* Environment: production
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 zsh | |
# | |
# CLEANS UP TEXT FILES | |
# | |
# Dependency check | |
function die { | |
print >&2 "$@" | |
exit 1 | |
} |
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 zsh | |
# | |
# LISTS DIRECTORIES AND FILES | |
# | |
# tree [-a] | |
# | |
# -a Include files | |
# | |
setopt nullglob |
Brought to you by Boyz II Man:
Many newcomers to the OpenBSD project find the man pages hard to follow, and often report they had to resort to 3rd party books instead, in which they learned almost immediately due to their tendency to have a simple, non-technical language.
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
commit a33ef0b33c72c03ca3713a5b35104e3094627523 | |
Author: dev <dev@dev.my.domain> | |
Date: Wed Jan 1 00:00:00 2020 -0100 | |
Spam protection with text-based CAPTCHAs | |
diff --git a/Gemfile b/Gemfile | |
index d009330..172128e 100644 | |
--- a/Gemfile | |
+++ b/Gemfile |
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
commit e7f6af15c65397c1e185aadfd10ce46c99fb1fdd | |
Author: dev <dev@dev.my.domain> | |
Date: Wed Jan 1 00:00:00 2020 -0100 | |
Add avatars with EXIF removal | |
diff --git a/Gemfile b/Gemfile | |
index 172128e..d6b9b2c 100644 | |
--- a/Gemfile | |
+++ b/Gemfile |
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
commit 65d2ec3355e0d12f20d97480c9748e6276338bb3 | |
Author: dev <dev@dev.my.domain> | |
Date: Mon Mar 30 12:51:52 2020 +0200 | |
Add approval routes | |
diff --git a/config/routes.rb b/config/routes.rb | |
index 5786e6a..6b1bac1 100644 | |
--- a/config/routes.rb | |
+++ b/config/routes.rb |
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
commit c34330afa6646893f058e54ddbe29fa9118046e6 | |
Author: dev <dev@dev.my.domain> | |
Date: Wed Jan 1 00:00:00 2020 -0100 | |
Add comments to posts | |
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb | |
new file mode 100644 | |
index 0000000..40e773d | |
--- /dev/null |