Skip to content

Instantly share code, notes, and snippets.

View anon987654321's full-sized avatar

anon987654321

View GitHub Profile
#!/usr/bin/env zsh
#
# 11038420120702 BACKS UP IMPORTANT FOLDERS
#
# Requires: md5deep64
#
# backup [-t]
#
# -t Simulate backup

/etc/rc.d/coolest_app_ever

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
#!/usr/bin/env zsh
#
# CLEANS UP TEXT FILES
#
# Dependency check
function die {
print >&2 "$@"
exit 1
}
#!/usr/bin/env zsh
#
# LISTS DIRECTORIES AND FILES
#
# tree [-a]
#
# -a Include files
#
setopt nullglob
@anon987654321
anon987654321 / 1 - Intro.md
Last active May 31, 2020 11:10
OpenBSD man pages

Alternative restructuring to OpenBSD man pages

Brought to you by Boyz II Man:

Problem

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.

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
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
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
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
commit 33f71feec0bfa11a108d7adebd5e7581cfb26b29
Author: dev <dev@dev.my.domain>
Date: Mon Mar 30 12:20:46 2020 +0200
Make first user to register admin
diff --git a/app/models/user.rb b/app/models/user.rb
index 9c72148..5339e94 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb