I hereby claim:
- I am justinkelly on github.
- I am justinkelly (https://keybase.io/justinkelly) on keybase.
- I have a public key whose fingerprint is CDB0 8D2E 14E3 3A9F E14E E183 C07D 8218 0A00 6212
To claim this, I am signing this object:
select extract( day from diff ) days, | |
extract( hour from diff ) hours, | |
extract( minute from diff ) minutes, | |
extract( second from diff ) seconds, | |
(select Max("timestamp") - Min("timestamp")) diff | |
from equella.audit_log_entry; |
(function () { | |
"use strict"; | |
'use strict'; | |
var app = angular.module('viewCustom', ['angularLoad']); | |
/****************************************************************************************************/ | |
/*In case of CENTRAL_PACKAGE - comment out the below line to replace the other module definition*/ | |
/*var app = angular.module('centralCustom', ['angularLoad']);*/ | |
/****************************************************************************************************/ |
I hereby claim:
To claim this, I am signing this object:
To: [email protected] | |
From: [email protected] | |
Subject: test message | |
Test message for ssmtp. |
#/bin/sh | |
echo "mailhub=${SMTP_HOST}:${SMTP_PORT}" > /etc/ssmtp/ssmtp.conf | |
echo "AuthUser=${SMTP_USER}" >> /etc/ssmtp/ssmtp.conf | |
echo "AuthPass=${SMTP_PASS}" >> /etc/ssmtp/ssmtp.conf | |
echo "UseSTARTTLS=YES" >> /etc/ssmtp/ssmtp.conf |
Date.prototype.yyyymmdd = function() { | |
var yyyy = this.getFullYear().toString(); | |
var mm = (this.getMonth()+1).toString(); // getMonth() is zero-based | |
var dd = this.getDate().toString(); | |
return yyyy + (mm[1]?mm:"0"+mm[0]) + (dd[1]?dd:"0"+dd[0]); // padding | |
}; | |
d = new Date(); | |
$date = d.yyyymmdd(); | |
editor = atom.workspace.activePaneItem |
//trim left and right white space | |
String.prototype.trim = function() { | |
return this.replace(/^\s+|\s+$/g, ""); | |
}; | |
//get call number | |
var CALL = document.getElementById("holdingKey").value; | |
var CALL_LIST = CALL.split(','); | |
var NUMB = CALL_LIST.slice(-1)[0]; | |
var CALL_NUMBER = NUMB.split('=').slice(-1)[0]; |
<?php | |
$path ="lib/"; | |
set_include_path(get_include_path() . PATH_SEPARATOR . $path); | |
require_once 'lib/Zend/Pdf.php'; | |
// LOAD PDF DOCUMENTS | |
$pdf1 = Zend_Pdf::load('first.pdf'); | |
$pdf2 = Zend_Pdf::load('second.pdf'); | |
// WE WILL MERGE OUR TWO PDF FILES INTO A NEW ZEND_PDF OBJECT | |
$pdfMerged = new Zend_Pdf(); |
<?php | |
$user = $_SERVER['PHP_AUTH_USER']; | |
$date = date("Y-m-d H:i:s"); | |
$myFile = "download_log.txt"; | |
$fh = fopen($myFile, 'a') or die("can't open file"); | |
$stringData = "Date , ". $date ." , User , ". $user ."\n"; | |
fwrite($fh, $stringData); | |
fclose($fh); |