Skip to content

Instantly share code, notes, and snippets.

View MikeiLL's full-sized avatar

Mike iLL Kilmer MikeiLL

View GitHub Profile
<?php
require_once('../lists/admin/PHPMailer/PHPMailerAutoload.php');
//include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
$mail = new PHPMailer();
$body = file_get_contents('contents.html');
$body = eregi_replace("[\]",'',$body);
$mail->IsSMTP(); // telling the class to use SMTP
@MikeiLL
MikeiLL / app.js
Last active March 23, 2024 23:32
import {Loader} from '@googlemaps/js-api-loader';
class Map {
constructor() {
this.$el = document.querySelectorAll('.acf-map');
this.map = null;
this.loader = new Loader({
apiKey: 'my_key',
@MikeiLL
MikeiLL / GMPconfig.log
Created March 12, 2024 02:14
More Pike Install Build Modules (manually added -lgmp in both linker_options)
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.72. Invocation command line was
$ /Users/mikekilmer/pike/src/modules/Gmp/configure --disable-option-checking --prefix=/usr/local 'LDFLAGS=-L/usr/local/opt/postgresql@15/lib -L/usr/local/opt/icu4c/lib -L/usr/local/lib -L/usr/local/Cellar/gmp/6.3.0/lib' 'CPPFLAGS=-I/usr/local/opt/ruby/include -I/usr/local/opt/postgresql@15/include -I/usr/local/opt/icu4c/include -I/usr/local/include -I/usr/local/opt/ruby/include' --cache-file=/dev/null --srcdir=/Users/mikekilmer/pike/src/modules/Gmp
## --------- ##
## Platform. ##
@MikeiLL
MikeiLL / gist:7b0e1ff30f909a6194908c025234e3a3
Last active March 11, 2024 13:27
Make Pike output on osX
```
Configure arguments:
Use `make CONFIGUREARGS="..." ...' to change them.
They will be retained in the build directory.
Making all in build/darwin-22.6.0-x86_64
#### Making static: modules/CommonLog
#### Making static: modules/DVB
#### Making static: modules/FSEvents
#### Making static: modules/Fuse
@MikeiLL
MikeiLL / .stylelintrc
Created May 20, 2023 19:22
Bootstrap 5 Ignores
{
"plugins": ["stylelint-scss"],
"customSyntax": "postcss-scss",
"extends": [
"@roots/bud-sass/stylelint-config",
"@roots/sage/stylelint-config"
],
"rules": {
"no-descending-specificity": null,
"selector-class-pattern": null,
@MikeiLL
MikeiLL / composer-private-package-github-token.md
Created April 10, 2018 14:54 — forked from jeffersonmartin/composer-private-package-github-token.md
Generate a GitHub Personal Access Token for Private Composer Packages

Generate a GitHub Personal Access Token for Private Composer Packages

If you're trying to load a private repository with Composer/Laravel, we'll need to generate a GitHub Personal Access Token (similar to OAuth token) to access the repository during a composer install without entering credentials.

If you have used other Github packages from {my-org} before, you may be able to skip this step.

  1. Visit https://github.com/settings/tokens.

  2. Click Generate new token.

@MikeiLL
MikeiLL / gist:6771f8d41f197e23398188881108bc28
Created September 2, 2021 02:41
Roots/Trellis Ansible Log
TASK [connection : Announce which user was selected] ***************************
39447 1630547938.14962: sending task start callback
39447 1630547938.14965: entering _queue_task() for 192.168.50.5/debug
39447 1630547938.14967: Creating lock for debug
39447 1630547938.15122: worker is 1 (out of 1 available)
39447 1630547938.15166: exiting _queue_task() for 192.168.50.5/debug
39447 1630547938.15228: done queuing things up, now waiting for results queue to drain
39447 1630547938.15231: waiting for pending results...
39470 1630547938.15392: running TaskExecutor() for 192.168.50.5/TASK: connection : Announce which user was selected
39470 1630547938.15497: in run() - task 787b8ab3-5afa-c129-75a7-000000000016
ffmpeg -i input.aif -i image.png -filter_complex \
"[0:a] showwaves=mode=cline:s=1600x900:colors=Magenta|Azure|White[sw]; \
color=s=1600x900:c=#f40b0f[bg]; \
[bg] [1:v] overlay=(1600-820)/2:(900-770)/2:enable='between(t,0,20)'[mid]; \
[mid] [sw] overlay=format=auto:shortest=1,format=yuv420p[v]" \
-map "[v]" -map 0:a -c:a copy output.mkv
@MikeiLL
MikeiLL / oscilattor_player.py
Last active May 9, 2021 13:07
Oscilloscope from File
'''
Jupyter Notebook code to generate a stream of matplotlib canvas plots
based on PyAudio data for a wav file.
original source https://stackoverflow.com/a/6951154/2223106
Also need to brew install portaudio on OSX or in an ENV perhaps
pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio
# ffmpeg -i song.mp3 -acodec pcm_u8 -ar 22050 song.wav
# use Node's blc to check broken links
# see: https://github.com/stevenvachon/broken-link-checker
# this might make gettext available in env
PATH=$PATH:/Applications/Poedit.app/Contents/MacOS
PATH=/usr/local/lib:/usr/local/bin:/usr/local/sbin:~/bin
PATH=$PATH:/Library/Python/2.7/site-packages/
PATH="$HOME/.npm-packages/bin:$PATH"