Skip to content

Instantly share code, notes, and snippets.

View JackBailey's full-sized avatar

Jack Bailey JackBailey

View GitHub Profile
@vogdb
vogdb / migrate.md
Last active June 12, 2025 07:41
Directus. Migrate from Sqlite to MySQL.
  1. I use this docker-compose for MySQL
services:
 # Database
 db:
    image: mysql:8.0.35
    # volumes:
    #   - docker_mysql_data:/var/lib/mysql
    restart: always
    environment:
@trenutoo
trenutoo / migrate-pterodactyl.md
Last active June 24, 2025 07:10
Pterodactyl panel and wings migration

Pterodactyl Migration

Migrating panel

  1. Backup your hidden .env file containing the decryption APP_KEY from /var/www/pterodactyl

  1. Export the database, in this case ours is named panel
@domkirby
domkirby / sharex_upload.php
Last active September 5, 2022 09:22
ShareX Uploader PHP script
<?php
/*
Sharex php upload
INSTALLATION:
-Fill out $secret_key, $sharexdir (or leave blank), and $domain_url
-Upload this to the root for the selected domain
-Configure ShareX Custom Uploader: https://i.imgur.com/y4WHMTH.png (to get to that menu: https://i.imgur.com/psMj84t.png)
@matthewsuan
matthewsuan / axios.js
Last active December 20, 2024 16:45
Axios request queue-like that limits number of requests at any given time
import axios from 'axios'
const MAX_REQUESTS_COUNT = 5
const INTERVAL_MS = 10
let PENDING_REQUESTS = 0
// create new axios instance
const api = axios.create({})
/**
@MarMed
MarMed / README.md
Last active March 19, 2025 12:55
Routing plex traffic through an SSH tunnel

Routing plex traffic through an SSH tunnel

This guide creates a reverse SSH tunnel to route all Plex server traffic through it.

Step 2 is done on the tunnel, all other steps are done on the plex server.

1. Setup SSH keys (if you already have key based authenthication setup skip to step 2)

On plex server:

@RickyCook
RickyCook / Command.md
Last active November 7, 2023 06:55
Using socat to forward new ports via STDIO in a running Docker container

What?... Why?

Imagine you're messing around in a container, and you install some stuff, add some config, and now it's time to load up your client and check it out! Oh wait, you forgot to forward ports when you created the container! Fear not, all is not lost, for in the world of pipes, and streams, there is always a way to do something disgusting.

The Dockerfile

Example Dockerfile included will install Nginx, and socat in a container, and make Nginx run in foreground mode. To build, and run: