Skip to content

Instantly share code, notes, and snippets.

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

Jonjo McKay jonjomckay

🚀
¯\_(ツ)_/¯
View GitHub Profile
@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 May 3, 2024 15:10
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 November 20, 2023 13:21
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.

@systemed
systemed / gist:be2d6bb242d2fa497b5d93dcafe85f0c
Last active April 10, 2024 03:49
Routing algorithm implementations
(Dijkstra and plain A* are generally not included here as there are thousands of
implementations, though I've made an exception for rare Ruby and Crystal versions,
and for Thor, Mapzen's enhanced A*. )
A* Ruby https://github.com/georgian-se/shortest-path
A* Crystal https://github.com/petoem/a-star.cr
A* (bidirectional with shortcuts) C++ https://github.com/valhalla/valhalla
NBA* JS https://github.com/anvaka/ngraph.path
NBA* Java https://github.com/coderodde/GraphSearchPal
NBA* Java https://github.com/coderodde/FunkyPathfinding
@briansmith
briansmith / how-to-generate-and-use-private-keys-with-openssl-tool.md
Last active April 11, 2024 17:02
How to generate & use private keys using the OpenSSL command line tool

How to Generate & Use Private Keys using OpenSSL's Command Line Tool

These commands generate and use private keys in unencrypted binary (not Base64 “PEM”) PKCS#8 format. The PKCS#8 format is used here because it is the most interoperable format when dealing with software that isn't based on OpenSSL.

OpenSSL has a variety of commands that can be used to operate on private key files, some of which are specific to RSA (e.g. openssl rsa and openssl genrsa) or which have other limitations. Here we always use