Skip to content

Instantly share code, notes, and snippets.

View davekobrenski's full-sized avatar

Dave Kobrenski davekobrenski

View GitHub Profile
@davekobrenski
davekobrenski / .gitignore
Created August 11, 2023 15:41
Directus / MySQL gitignore
mysql/*
init/*
snapshots/*
directus/uploads/*
public
public/*
.DS_Store
*.DS_STORE
config.sh
@davekobrenski
davekobrenski / ssabThemeData.json
Last active July 13, 2023 15:17
SSAB Theme data - proposed structure
{
"themeID": "uniqueID"
"themeName": "string",
"themeDescription": "text",
"colorPalette": {
"A1": "E8FFC8",
"A2": "B5F687",
"A3": "4B7351",
"A4": "254D2F",
"B1": "FFB6B6",
@davekobrenski
davekobrenski / comed-eloqua-sample.json
Last active February 26, 2020 20:31
ComEd Eloqua JSON Sample
{
"email": "user@domain.com",
"language": "english",
"actions": [
{
"actionLinkURL": "https://www.comed.com/SmartEnergy/InnovationTechnology/Pages/GreenButtonConnect.aspx",
"actionName": "Green Button Connect",
"actionName_es": "[Spanish TBD]",
"bodyText": "Green Button provides customers easy access to their energy usage information. You can access data in a manner that’s easy to use, convenient and secure. You can also share data to get personalized information about possible energy savings.",
"bodyText_es": "[Spanish TBD]",
@davekobrenski
davekobrenski / 1-OLD-iwlm-fields-topics.json
Last active February 19, 2020 16:37
IWLM API data change
{
"fields": {
"4aff0ccf-8ad0-4d39-9514-9dfc139fcef8": "Activist",
"e25a4022-f5df-4b94-b092-03945a8ec631": "Adventurer",
"195815f4-c432-4496-9828-83ce97ad2200": "Artist",
"5c6f0b65-8492-4d42-b3ab-9acbaedbfe09": "Athlete",
"7c89814c-d41b-487e-b204-11d197e43c79": "Entrepreneur",
"3da679e8-274a-402c-9c20-503aa03e4bbc": "Healer",
"63c50fc9-1fff-4bcb-ba5c-cee918982be7": "Philanthropist",
"7e4dbe65-abc1-4f1d-8761-30dd81a3a044": "Public official",
@davekobrenski
davekobrenski / moments.json
Created February 17, 2020 18:32
IWLM moments json - by decade
{
"thumbnailRatios": {
"square": [
500,
500
],
"landscape": [
500,
375
],
@davekobrenski
davekobrenski / unlink-api.php
Last active September 11, 2015 11:43
Auth0 API (php): Unlink Account from User Profile
@davekobrenski
davekobrenski / test.css
Last active September 8, 2015 17:04
Test markdown gist
#my-id {
border:none;
}
@davekobrenski
davekobrenski / remove-timemachine-backups.sh
Last active August 29, 2015 14:20
Mac OS X: Delete old Time Machine backups
sudo tmutil delete /Volumes/MyDrive/Backups.backupdb/Path-To-Backup/2011*
@davekobrenski
davekobrenski / gist:0f6fe7b26d37649b1867
Last active August 29, 2015 14:17
PHP header() and Content-Type for JSON
<?php
header('Content-Type: application/json');
//do json-ish things here...
?>
@davekobrenski
davekobrenski / frequencies.php
Last active March 3, 2023 17:33
PHP Array of Musical Frequencies
<?php
/**
* Musical Notes to Frequency Table
*
* This array contains all of the notes on a piano with their
* corresponding frequencies. The array is organized into octaves
* making it easy to loop through and output, for example, an html chart
* of notes and frequencies.
*