Skip to content

Instantly share code, notes, and snippets.

View adammatthews's full-sized avatar

Adam Matthews adammatthews

View GitHub Profile
@adammatthews
adammatthews / okta_home_netzone.py
Last active January 16, 2023 00:16
Okta Network Zone - Auto Set your Home IP
#!/usr/bin/env python
#
## Script to update an Okta Network Zome named "Home Allowed" with your home ISP's public IP address.
## Ensure there is only 1 IP range in this Network Zone.
##
## Created by: Adam Matthews
## Date: 11th Jan 2023
#
@adammatthews
adammatthews / gist:578bb67632b41960e7f1
Last active August 29, 2015 14:12 — forked from davekelly/gist:3918937
Intercom.io Magento CE Integration
<?php
/*
* /app/design/frontend/default/your_theme/template/page/intercom-io.phtml
*/
// Settings for the intercom.io app.
// Thanks to http://stackoverflow.com/a/14092378/1916670 (http://stackoverflow.com/users/452902/b4nz41) for this.
function convertMysqlDateTimeToUnixTimeStamp($date) {