Object-oriented programming in Lua is an often-debated topic and people normally assume that Lua, by default, has no way to implement object-oriented programming. However, obviously, there are multiple ways to implement object-oriented programming, which I will demonstrate in this article.
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/zsh | |
output="$1" | |
if [ "$MODE" = "internal-run-command" ]; then | |
shift | |
# Run the command | |
"$@" | |
# Capture the output, removing empty lines from the end of the file. |
The goal of this document is to describe the desired user experience for the next generation of "sig" and it's predecessor "git-signatures"
These were useful prototypes but significant improvement is needed before widespread use.
this assumes you have Docker installed. if you don't, just run the .sql script against a clean pgsql instance.
i've included two PGP keys. one is called "working.asc", one is called "breaking.asc". the working one has a single UID, the breaking one has two UIDs. they are still one single key.
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/sh | |
set -e | |
# fat stax of hax | |
# expects files in Music~/<artist>/<album>/<song>-<song ID>.opus | |
# modify to your liking | |
cat > /dev/null <<LICENSE_BLOB | |
MIT License |
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 | |
set -e | |
get_modtime() { | |
curl -qs https://hub.docker.com/v2/repositories/vandor2012/website/tags/ \ | |
| jq -r '.results | map(select(.name == "latest")) | .[0].last_updated' | |
} | |
datetime_to_unix() { | |
date -d "$1" +%s |
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 | |
set -eufo pipefail | |
user="$1" | |
logger "Handling user login $user" | |
psql "postgresql://ssh_auth:sheiJoh9chei7eezae9v@userdb-attempt-too-do-user-989073-0.db.ondigitalocean.com:25060/userdb?sslmode=require" \ | |
-t --pset border=0 \ |
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
[defaults] | |
inventory = ./hosts |
NewerOlder