Skip to content

Instantly share code, notes, and snippets.

View palalatypus's full-sized avatar
👋
hello world!

Joe palalatypus

👋
hello world!
View GitHub Profile
@palalatypus
palalatypus / README.md
Created July 27, 2026 12:18
Debugging DigitalOcean MongoDB Connectivity in Podman vs. Podman-Compose

Improved Prompt

"My app connects to DigitalOcean Managed MongoDB via podman run, but fails via podman-compose. What networking, DNS, or Podman rootless differences cause this, and how do I fix it?"


The Issue Explained Simply

DigitalOcean uses an IP whitelist ("Trusted Sources").

Method 2: Using flarectl (Cloudflare's CLI Tool)

If you prefer clean CLI syntax instead of writing raw curl commands, you can use flarectl, a CLI wrapper built by Cloudflare.

Step 1: Install flarectl

If you have Go installed:

go install github.com/cloudflare/cloudflare-go/cmd/flarectl@latest
@palalatypus
palalatypus / devops-with-podman.md
Created July 26, 2026 05:23
how to do basic devops

For a Docker locally + Podman in production setup, the common flow is:

Production server using Podman Compose

cd /path/to/project

git pull

podman-compose build
@palalatypus
palalatypus / digitalocean-mern-stack-setup-prompt.md
Created July 25, 2026 14:05
Digitalocean mern stack setup prompt

Build a Production-Ready DigitalOcean MERN Stack with Managed MongoDB

Create a complete, production-ready MERN-stack application deployment setup using:

  • React
  • Node.js
  • Express
  • TypeScript
  • DigitalOcean Ubuntu VPS/Droplet
  • DigitalOcean Managed MongoDB
@palalatypus
palalatypus / linux_advanced.md
Created July 25, 2026 06:31
linux advanced overview

Myria-glot Academy

Myria is the other word for 'many', alternative to 'poly'

Advanced Linux Tools, Editors, SSH, Git, sed, and awk

This guide continues from the Linux basics and introduces terminal shortcuts, text editors, text processing, remote server access, SSH keys, Git, and GitHub.


1. Terminal Keyboard Shortcuts

@palalatypus
palalatypus / PALUWAGAN_2.0.md
Created July 12, 2026 12:29
What is Paluwagan

What is Paluwagan?

Paluwagan is a traditional Filipino community savings system based on trust, discipline, and bayanihan (mutual cooperation). It is a form of a Rotating Savings and Credit Association (ROSCA), a model that has existed around the world for generations under different names.

How It Works

A group of people voluntarily agrees to contribute a fixed amount of money on a regular schedule (weekly or monthly).

For example:

@palalatypus
palalatypus / README.md
Last active June 14, 2026 01:56
Taiwanese directions and phrases

Taiwan Tourist Survival Guide

Milk Tea, Directions, Numbers, MRT, and Common Phrases


How Mandarin Tones Work

Taiwanese Mandarin uses tones. Think of them as pitch patterns.

| Symbol | Meaning | Example |

@palalatypus
palalatypus / claude-anki-quiz.php
Created June 8, 2026 03:25
claude-anki-quiz.php
#!/usr/bin/env php
<?php
// ANSI escape codes for terminal formatting
$reset = "\033[0m";
$green = "\033[32m";
$red = "\033[31m";
$yellow = "\033[33m";
$cyan = "\033[36m";
$bold = "\033[1m";
@palalatypus
palalatypus / ExportToAstro.php
Created May 28, 2026 16:29
vibe coded laravel to astro files
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Request;
use Illuminate\Support\Facades\File;
use Symfony\Component\DomCrawler\Crawler;
@palalatypus
palalatypus / GIST.md
Created May 27, 2026 15:28
quick guide to generating your ssh keys on linux

Setting up SSH keys with the correct permissions is a classic "do it once, do it right" task. If the permissions are too loose, SSH will actually refuse to use the keys for security reasons.

Here is the quick, step-by-step guide to generating an Ed25519 key pair and setting the exact permissions needed for your ~/.ssh directory and files.


Step 1: Generate the Ed25519 Key Pair

Open your terminal and run the following command. The -t flag specifies the type, and -C adds a comment (usually your email) to help you identify the key.