Skip to content

Instantly share code, notes, and snippets.

View kingpinzs's full-sized avatar

Jeremy King kingpinzs

View GitHub Profile
@kingpinzs
kingpinzs / *README.md
Created July 17, 2025 18:43 — forked from ruvnet/*README.md
ChatGPT Codex Agent.md and environment setup script

Getting Started with ChatGPT Codex + Mastra Agents

Step-by-Step Instructions

  1. Open the ChatGPT Codex task setup panel. This is where you configure your environment before starting a task.

  2. Locate the "Setup Script" field. You’ll see a note that internet access is disabled after the script runs.

@kingpinzs
kingpinzs / appenedQueryString.js
Last active October 20, 2023 23:54
add query string to all links using javascript
document.addEventListener("DOMContentLoaded", function() {
updateLinksWithQuery();
});
function updateLinksWithQuery() {
var querystring = window.location.search.substring(1); // Remove the leading '?'
var globalDomain = window.location.hostname; // Extract the domain from the URL
if (querystring) {
var links = document.querySelectorAll("a");
/* file:///Users/henryhuman/Documents/04_Business/Bootstrap%20Creative/GitHub%20repositories/bootstrap-classes-list/bootstrap4.5.0.html */
.accordion
.active
.alert
.alert-danger
.alert-dark
.alert-dismissible
.alert-heading
.alert-info
version: '2'
services:
mariadb:
image: mariadb
volumes:
- /srv/Configs/Databases/Moodle:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=moodle
- MYSQL_ROOT_USER=root
- MYSQL_DATABASE=moodle
@kingpinzs
kingpinzs / gist:0421b571cd438c2318f476e0279a4acb
Created September 28, 2021 21:20
Comma separated javascript object value data
programValue[1] = {"100% Online": "O", "On Campus": "C","Virtual Classroom": "V"};
//VER 1
var count = 1 ;
for (let locationType in programValue[1]) {
listOfLocationTypes += programValue[1][locationType];
if (count < Object.keys(programValue[1]).length) {
listOfLocationTypes += ', ';
}
count++;
}
@kingpinzs
kingpinzs / dragit_installer.py
Created December 20, 2019 04:51
install dragit
#!/usr/bin/python
# coding=utf-8
import os
import sys
NEED_APT_GET = ['PiCar-V', 'PiSmart']
class Installer_TK(object):
try:
import tkinter as tk
@kingpinzs
kingpinzs / phonenumbercheck
Last active October 8, 2019 14:48
regex for phone number
^(((\([2-9]\d{2}\)\s?)|([2-9]\d{2}([\-\. ]))|([2-9]\d{2}))\d{3}([-. ]?\5)\d{4})$|^(((\([2-9]\d{2}\)\s?)|([2-9]\d{2}))((\d{3}(\-|.))|\d{3})\d{4})$
(208)734-3391
208-734-3391
(208) 734-3391
2087343391
208.734.3391
208 734 3391
(208)734.3391
#everything below should fail
(208.734.3391
@kingpinzs
kingpinzs / keybase.md
Created September 9, 2019 19:38
keybase

Keybase proof

I hereby claim:

  • I am kingpinzs on github.
  • I am kingpinzs (https://keybase.io/kingpinzs) on keybase.
  • I have a public key ASBCxBI49RbdfNvSFoY9wn41rh88r44FHvaP1DI_5ZBCWQo

To claim this, I am signing this object:

@kingpinzs
kingpinzs / gist:3b34b2a6853b37d158341a5ebf522556
Created July 11, 2019 20:58
Cool easy way to make words pleural in php
page<?= sizeof($disclosure_links) > 1 ? 's' : ''; ?>
//smooth scroll to top
$("#back-to-form").click(function(e) {
e.preventDefault();
$([document.documentElement, document.body]).animate({
scrollTop: $("#anchor__contact-form").offset().top - 70
}, 1000);
});