Skip to content

Instantly share code, notes, and snippets.

mattstein / ploi-mastodon-nginx.conf
Created February 18, 2023 01:29
Ploi nginx Config for Mastodon
View ploi-mastodon-nginx.conf
# Ploi Webserver Configuration, do not remove!
include /etc/nginx/ploi/*;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
upstream backend {
server fail_timeout=0;
mattstein / db-test.php
Last active March 28, 2023 23:01
PHP MySQL/PostgreSQL Connection Test
View db-test.php
* Database Connection Tester
* A quick-and-dirty standalone script for checking PHP’s connection to a
* MySQL (or MariaDB) or PostgreSQL database.
* To use, enter the settings below and run the following from your terminal:
* ```
* php -f db-test.php
View deploy.php
namespace Deployer;
require 'recipe/common.php';
require 'recipe/rsync.php';
set('application', 'workingconcept/wrkcpt-craft');
set('repository', '');
$shared = [
View deploy.yml
name: Forge Deploy
# - master
- develop

Keybase proof

I hereby claim:

  • I am mattstein on github.
  • I am mattstein ( on keybase.
  • I have a public key ASDwLlks6Mvqiz48RjCBpsDYvi17-xvDTKdtJSiAnS6Bzwo

To claim this, I am signing this object:

mattstein /
Created December 16, 2018 05:02
Shell script for updating fathom analytics binary on Centmin Mod linux.
CUR_VERSION="$(fathom version | cut -d' ' -f3)"
NEW_VERSION="$(curl -s | grep tag_name | cut -d'v' -f2 | cut -d'"' -f1)"
echo "Current Version: $CUR_VERSION => New Version: $NEW_VERSION"
if [ "$NEW_VERSION" != "$CUR_VERSION" ]; then
echo "Installing version ${NEW_VERSION}..."