Skip to content

Instantly share code, notes, and snippets.

View draft13's full-sized avatar
🎲
I would rather be playing a board game.

Robert draft13

🎲
I would rather be playing a board game.
View GitHub Profile
@draft13
draft13 / flow.md
Created March 6, 2019 15:20
tomcat sso flow
Browser Load Balancer Tomcat
HTTPS-> (Configured SSL) HTTP->
SAML/SSO
http mstrWeb <- <- <-HTTP mstrWeb

Keybase proof

I hereby claim:

  • I am draft13 on github.
  • I am rburkej (https://keybase.io/rburkej) on keybase.
  • I have a public key ASAo8DcSDs2MvU1y-ncLA0CaEdNjDTRSIsDlG3yg03JMwAo

To claim this, I am signing this object:

du -sh * | sort -h
<!-- begin olark code -->
<script data-cfasync="false" type='text/javascript'>/*<![CDATA[*/window.olark||(function(c){var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",z=c.name,r="load";var nt=function(){
f[z]=function(){
(a.s=a.s||[]).push(arguments)};var a=f[z]._={
},q=c.methods.length;while(q--){(function(n){f[z][n]=function(){
f[z]("call",n,arguments)}})(c.methods[q])}a.l=c.loader;a.i=nt;a.p={
0:+new Date};a.P=function(u){
a.p[u]=new Date-a.p[0]};function s(){
a.P(r);f[z](r)}f.addEventListener?f.addEventListener(r,s,false):f.attachEvent("on"+r,s);var ld=function(){function p(hd){
hd="head";return["<",hd,"></",hd,"><",i,' onl' + 'oad="var d=',g,";d.getElementsByTagName('head')[0].",j,"(d.",h,"('script')).",k,"='",l,"//",a.l,"'",'"',"></",i,">"].join("")}var i="body",m=d[i];if(!m){
@draft13
draft13 / attendance_view.sql
Created November 25, 2013 21:43
Attendance view for new staff page.
SELECT servicedate,
nats_worshiplocations.location,
sum(attendance) as all_grownups,
sum(children) as all_children
FROM nacdmisc.nats_attendance inner join nacdmisc.nats_worshiplocations
on nats_attendance.locationID = nats_worshiplocations.locationID
WHERE servicedate > NOW() - INTERVAL 8 WEEK
group by servicedate, nats_attendance.locationID;
@draft13
draft13 / new_gist_file
Created August 21, 2013 18:18
Set checkbox onload based on Cookie value
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function setCookie(c_name,value,expiredays) {
var exdate=new Date()
exdate.setDate(exdate.getDate()+expiredays)
document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate)
@draft13
draft13 / new_gist_file
Created June 24, 2013 18:18
Get Cookie Value
function getCookie(c_name)
{
var c_value = document.cookie;
var c_start = c_value.indexOf(" " + c_name + "=");
if (c_start == -1)
{
c_start = c_value.indexOf(c_name + "=");
}
if (c_start == -1)
{
@draft13
draft13 / new_gist_file
Created June 24, 2013 18:16
Set a javascript cookie.
function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays===null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}