View SonisSlack.cfm
<cfoutput>
<cfif #StructKeyExists(FORM, "token")#>
<cfif #FORM.token# NEQ '##############'>
Sorry, Authentication Failed
<cfelse>
<cfif #FORM.channel_id# NEQ "############">
What are you doing?!?!!?? This channel is not authenticated - stop trying to break stuff.
<cfelse>
<cfif #FORM.text# EQ "restart">
@#FORM.user_name# - Sonis is restarting
View LunchBot.cfm
<cfoutput>
<cfif #StructKeyExists(FORM, "token")#>
<cfif #FORM.token# NEQ '#PUBLICKEY##'>
Sorry, Authentication Failed
<cfelse>
<cfset resturants = "BW3, Roosters, Wendys, Gibbys, Tuscan Table, El Palmor, Goodwins Family
Resturant, Cardo's Pizza, Zanzy's Pizza, High Court Cafe, Arby's, Grand Buffett, McDonalds, KFC, Richie's New York Corner Deli, ">
<cfset objRandomReport=ArrayNew(1)>
View AD-Search.ps1
$username = Read-Host -Prompt 'Type in the username:?'
csvde -f searchAD.txt -p subtree -l "sAMAccountName,cn,distinguedName" -r "(&(objectClass=User)(sAMAccountName=$username))"
Import-Csv .\searchAD.txt | Out-GridView -Title "Active Directory"
View Add WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
View blazerPadding.css
/* Padding and Margins */
/* 0 */
.padding-top-0 {
padding-top: 0px;
}
.padding-bottom-0 {
padding-bottom: 0px;
}
.padding-left-0 {
View Tool List
Homebrew
https://brew.sh/
Oh-My-Zsh
https://github.com/robbyrussell/oh-my-zsh/
Lepton
http://hackjutsu.com/Lepton/
iTerm2 version 3
View isLocal.js
var isLocal = location.host.includes('localhost');
View Milliseconds -to-seconds.js
function millisToMinutesAndSeconds(millis) {
var minutes = Math.floor(millis / 60000);
var seconds = ((millis % 60000) / 1000).toFixed(0);
return minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
}
View Select2Demo.markdown

Select2 Demo

Example useage of Select2 to add and edit multiple activities to user. This gives freedom of dynamic communication and action plans that can be quickly edited and customized on a user by user basis.

A Pen by John Bocook on CodePen.

License.

View js-date-compare.js
var myDate = '05/05/2019';
var today = new Date();
function process(date) {
var parts = date.split("/");
return new Date(parts[2], parts[1] - 1, parts[0]);
}
if (process(myDate) <= today) {