Skip to content

Instantly share code, notes, and snippets.

View mcarpenterjr's full-sized avatar
:octocat:
Always be shipping...

Mark Carpenter Jr mcarpenterjr

:octocat:
Always be shipping...
View GitHub Profile
@mcarpenterjr
mcarpenterjr / matter-hook.php
Last active August 25, 2017 13:11
PHP incoming matter-most web-hook handler.
<?php
/**8 MATTERMOST INCOMING WEBHOOK 8**/
/* */
/* NOTE: Use either standalone with URL parameters or include */
/* in a PHP script to naturally call the send_msg_mmst(). */
/* Returns true if the call is succesful, or whatever the */
/* error. */
/* Includes defaults for most parameters to simplify usage. */
/* */
@mcarpenterjr
mcarpenterjr / godaddy_ddns.sh
Created July 17, 2017 15:13
Linux bash script for updating dns on godaddy dynamically. You need a developer account to access the godaddy api to get your secret and token.
#!/bin/bash
# This script is used to check and update your GoDaddy DNS server to the IP address of your current internet connection.
# Special thanks to mfox for his ps script
# https://github.com/markafox/GoDaddy_Powershell_DDNS
#
# First go to GoDaddy developer site to create a developer account and get your key and secret
#
# https://developer.godaddy.com/getstarted
# Be aware that there are 2 types of key and secret - one for the test server and one for the production server
@mcarpenterjr
mcarpenterjr / FizzBuzz.js
Created September 21, 2016 17:35 — forked from jaysonrowe/FizzBuzz.js
FizzBuzz JavaScript solution
for (var i=1; i <= 20; i++)
{
if (i % 15 == 0)
console.log("FizzBuzz");
else if (i % 3 == 0)
console.log("Fizz");
else if (i % 5 == 0)
console.log("Buzz");
else
console.log(i);