Skip to content

Instantly share code, notes, and snippets.

View marchildmann's full-sized avatar

Marc Hildmann marchildmann

View GitHub Profile
@marchildmann
marchildmann / mailgun.php
Last active November 18, 2018 11:00
PHP Mailgun CURL example
<?php
define('MAILGUN_URL', 'https://api.mailgun.net/v3/DOMAIN');
define('MAILGUN_KEY', 'key-123341442922');
function sendmailByMailGun($to,$toname,$mailfromname,$mailfrom,$subject,$html,$text,$tag,$replyto){
$array_data = array(
'from'=> $mailfromname .'<'.$mailfrom.'>',
'to'=>$toname.'<'.$to.'>',
'subject'=>$subject,
/**
* Name: Javascript Tools
* Author: Marc Hildmann
* marc.hildmann@icloud.com
*
*
* Created: 27.01.2020
*
* Description: This is a growing collection of useful Javascript functions
*
@marchildmann
marchildmann / calendar.sql
Created December 7, 2022 17:21
SQLite calendar
CREATE TABLE IF NOT EXISTS calendar (
d date UNIQUE NOT NULL,
days_in_month INT NOT NULL,
day_of_week INT NOT NULL,
weekday TEXT NOT NULL,
quarter INT NOT NULL,
year INT NOT NULL,
month INT NOT NULL,
day INT NOT NULL
);
@marchildmann
marchildmann / setup-webdev.sh
Created March 31, 2025 06:06
macOS Web Development Setup Script - Sets up Apache and PHP 8.4 with Sites directory
#!/bin/bash
# macOS Web Development Setup Script
# For macOS 15 Sequoia - Sets up Apache and PHP 8.4 with Sites directory
# Created on: $(date)
# Make it executable: chmod +x setup-webdev.sh
# Run it: ./setup-webdev.sh
# After running the script, you'll be able to access:
# http://localhost:8080 - Your web server
# http://localhost:8080/info.php - PHP info page
# http://localhost:8080/test.php - A simple PHP test script