Skip to content

Instantly share code, notes, and snippets.

View MikeiLL's full-sized avatar

Mike iLL Kilmer MikeiLL

View GitHub Profile
# Aliases here for zsh
# COMMANDS
alias random='openssl rand -base64 32 | pbcopy'
alias s3ltv='s3cmd -c ~/.s3cfg-ltv'
alias s3ofn='s3cmd -c ~/.s3cfg-ofn'
alias zippit="bash ~/Shed/managed-directory-compressor/managed_directory_compressor.sh"
alias affinity="open -a Affinity\ Designer.app"
@MikeiLL
MikeiLL / repeatable-fields-metabox.php
Created March 31, 2021 16:31 — forked from helen/repeatable-fields-metabox.php
Repeating Custom Fields in a Metabox
<?
/**
* Repeatable Custom Fields in a Metabox
* Author: Helen Hou-Sandi
*
* From a bespoke system, so currently not modular - will fix soon
* Note that this particular metadata is saved as one multidimensional array (serialized)
*/
function hhs_get_sample_options() {

Web Design Contract

Based on Contract Killer, an open-source contract for web developers.

Summary:

I’ll always do my best to fulfill your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. I have no desire to trick you into signing something that you might later regret. What I do want is what’s best for both parties, now and in the future.

So in short;

You ([CLIENT COMPANY]), located at [CLIENT ADDRESS] are hiring me ([DEVELOPER]) located at [DEVELOPER ADDRESS] to design and develop a web site for the estimated total price of [QUOTE] as outlined in our previous correspondence.

{
'Happiest Girl - The Pulsating Orbital Vocal Mix': 117.982,
'I Feel Loved - 2007 Remaster': 127.858,
'The Chosen One': 116.079,
'Policy of Truth - 2006 Remaster': 114.209,
'Enjoy the Silence - 2006 Remaster': 112.969,
'Pleasure,
Little Treasure - 2006 Remaster': 132.132,
"Sugar Daddy - Sweet n' Low Mix": 111.91,
'Behind the Wheel - Vince Clarke Remix': 125.052,
// -----------------------
// TypeScript [2.6.2]
// -----------------------
import MSeriesReceiverParser from './mSeriesReceiverParser'
const RECEIVER_VENDOR_ID = 0x0483
const RECEIVER_PRODUCT_ID = 0x5740
const DEVICE_NAME = 'USB Multi-Bike Reciever'
Password:
(None)
ARPT: 112558.838864: CNT(rts_tx)=0 CNT(frag_tx_cnt)=7 CNT(cts_rx_cnt)=0
ARPT: 112558.838868: DequeueTime: 0x4ab2a000 LastTxTime: 0x38dba137 PHYTxErr: 0x0000 RxAckRSSI: 0x0000 RxAckSQ: 0x0000
ARPT: 112558.838879: Raw[0] 1 Valid
ARPT: 112558.838882: [2] 0 IM
ARPT: 112558.838885: [3] 0 PM
ARPT: 112558.838887: [7-4] 0 Suppr
ARPT: 112558.838889: [14:8] 1 Ncons
ARPT: 112558.838891: [15] 0 Acked
<?php
add_filter( 'em_events_build_sql_conditions', 'my_em_scope_conditions',1,2);
function my_em_scope_conditions($conditions, $args){
if( !empty($args['scope']) && $args['scope']=='today-upcoming' ){
$start_date = date('Y-m-d',current_time('timestamp'));
$end_date = date('Y-m-d',current_time('timestamp'));
$start_time = date('H:i',current_time('timestamp'));
$end_time = '23:59';
<?php
/*
Plugin Name: Disable Event Espresso
Plugin URI: http://www.mzoo.org
Description: Disables event espresso plugin files from calls to all but specified pages
Author: mZoo/Mike iLL
Version: 1.0
Author URI: http://www.mzoo.org
*/
@MikeiLL
MikeiLL / convert_svg_to_pdf.sh
Last active October 30, 2019 18:44 — forked from lisaah/convert_svg_to_pdf.sh
Simple shell script to convert all .svg in directory to .pdf
# Dependency:
# sudo apt-get install librsvg2-bin
# or brew install librsvg
find . -type f -name "*.svg" -exec bash -c 'rsvg-convert -h 800 "$0" > "$0".png' {} \;
@MikeiLL
MikeiLL / url_check.py
Last active March 12, 2019 17:14
Check if a URL is valid and points to a live site or not.
def valid_url(url):
if (url.lower() == 'none') or (url == ''):
return False
try:
s = requests.Session()
a = requests.adapters.HTTPAdapter(max_retries=5)
s.mount(url, a)
resp = s.head(url)
return resp.ok
except requests.exceptions.MissingSchema: