Skip to content

Instantly share code, notes, and snippets.

View jonjomckay's full-sized avatar
🚀
¯\_(ツ)_/¯

Jonjo McKay jonjomckay

🚀
¯\_(ツ)_/¯
View GitHub Profile

Writing Style Prompt

  • Focus on clarity: Make your message really easy to understand.
    • Example: "Please send the file by Monday."
  • Be direct and concise: Get to the point; remove unnecessary words.
    • Example: "We should meet tomorrow."
  • Use simple language: Write plainly with short sentences.
    • Example: "I need help with this issue."
  • Stay away from fluff: Avoid unnecessary adjectives and adverbs.
  • Example: "We finished the task."
@NatElkins
NatElkins / cloud-init.yaml
Created March 8, 2025 22:09
cloud-init script for VPS
#cloud-config
# Enable automatic package updates and upgrades during cloud-init execution
package_update: true
package_upgrade: true
packages:
# Security and Hardening
- ufw
- fail2ban
@lefuturiste
lefuturiste / countries.sparql
Last active December 14, 2022 20:59
wikidata sparql query
# prfgen get richest countries and sort by gdp
SELECT
?pop ?gdp ?drivingSideLabel
?alpha2 ?alpha3
?country
?countryLabel
?callingCode
(GROUP_CONCAT(DISTINCT ?tldLabel; separator = ", ") AS ?tlds)
(GROUP_CONCAT(DISTINCT ?timezoneOffset; separator = ", ") AS ?timezones)
(GROUP_CONCAT(DISTINCT ?continentLabel; separator = ", ") AS ?continents)
@triangletodd
triangletodd / README.md
Last active September 11, 2025 14:20
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@imniko
imniko / borderlands3.js
Last active November 22, 2023 11:13 — forked from axxag/borderlands3.js
Borderlands3-Epic-NucleusCoop. This is a forked version of the original to make the script compatible with latest Epic version.
Game.DirSymlinkExclusions = [
"OakGame\\Binaries\\Win64",
];
Game.FileSymlinkExclusions = [
"steam_api64.dll",
"steam_appid.txt",
"xinput1_3.dll"
];
Game.GameName = "Borderlands 3";
Game.HandlerInterval = 100;
@GavinRay97
GavinRay97 / Pulumi.production.yaml
Created June 29, 2020 23:00
Deploy Hasura on Fargate, including creating a Route53 Domain w/ Cert Manager certificate, and Load Balancer configured for HTTPS on new domain
config:
aws:region: us-east-2
my-project:HASURA_GRAPHQL_DATABASE_URL:
secure: <snipped>
@TRPB
TRPB / arch-macbook2018.md
Last active August 18, 2025 05:01
Guide: Running Arch on a 2018 MacBook Pro

Hardware Prerequisites

You'll need at least the following hardware:

  • At least 3 USB-A to USB-C converters or hub with enough ports for at least 3 USB devices if all your devices are USB-A then:
  • A USB drive
  • A USB keyboard
  • USB to Ethernet adapter, compatible USB dongle or USB tethering on a phone
@lightrush
lightrush / README.md
Created November 3, 2017 05:18
X11vnc Systemd Unit File

X11vnc Systemd Unit File

This Systemd unit file starts X11VNC on boot

  1. Set VNC password: sudo x11vnc -storepasswd [YOUR VNC PASSWORD] /etc/x11vnc.passwd
  2. Install Systemd Unit File
sudo cp [path to]/vnc.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable vnc.service
@arkady-emelyanov
arkady-emelyanov / haproxy.cfg
Last active October 25, 2023 22:02
haproxy check: postgresql is master
# Sample haproxy postgresql master check
#
# haproxy listen: 5431
# pg, instance #1 listen: 5432 (master node)
# pg, instance #2 listen: 5433 (replica node)
# external failover, promoting replica to master in case of failure
# passwordless auth for user web
# template1 database is accessible by user web
#
# haproxy will pass connection to postgresql master node:
@krisleech
krisleech / 00-README.md
Created August 3, 2017 11:43
UptimeRobot Ansible and v2 API notes

When an interger is sent for monitor>type an internal error occurs. If a string is sent as in the main.yml example it is okay.

When an internal error occurs a 200 response not 500 is sent.

When an error occurs (e.g. monitor already exists) a 200 response is sent.