This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Service\Notification\PushNotification; | |
use Exception; | |
// composer require edamov/pushok | |
// https://github.com/edamov/pushok | |
use Pushok\AuthProvider; | |
use Pushok\Client; | |
use Pushok\Notification; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<HTML XMLNS:HTA><HEAD> | |
<TITLE>App Without A Cool Acronym</TITLE> | |
<HTA:APPLICATION id=oApp APPLICATIONNAME="IDHERE" | |
BORDER="thick" CAPTION="yes" | |
icon="http://dkcoin8.com/images/whatsapp-cool-clipart-9.vnd.microsoft.icon" | |
SHOWINTASKBAR="yes" SINGLEINSTANCE="yes" SYSMENU="yes" | |
WINDOWSTATE="normal" SCROLL="yes" SCROLLFLAT="yes" VERSION="1.0"> | |
</HTA:APPLICATION> | |
<SCRIPT language=JScript> | |
function WriteFile(FilePath, Content) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Lookup the observable object or value of a field safely no matter if it is static or observable or even exists | |
* @syntax kov([scope,]period_delimited_lookup_string[,ifmissing]) | |
* @returns value or ifmissing | |
* @author Eric Freed | |
*/ | |
function kov(a, b, c, orig_f, orig_scope) { | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/get-set-up-for-amazon-ec2.html | |
(in the IAM section) | |
Create New Group called "Administrators" (with the AdministratorAccess policy) | |
Create IAM users and add to the group | |
In the "dashboard" section, edit the account alias to make *alias*.signin.aws.amazon.com/console | |
On the IAM homepage, finish the 5 security steps | |
(in the EC2 section) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OdysysCache { | |
protected $_key = 'abc'; | |
protected $_secret = 'abc123xyz'; | |
protected $_bucket = 'odysyscache'; | |
/** | |
* Write a file to the S3 Bucket | |
* @param String $file_name | |
* @param mixed $file_data | |
* @param String $file_type Optional MIME type, or will be auto set from the file extention |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: DoxyGen Integration | |
* Plugin URI: http://www.fivetalent.com/ | |
* Description: Enables shortcodes to embed a doxygen site into a page | |
* Version: 1.0 | |
* Author: Eric Freed / Five Talent | |
*/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Will convert a float to an html fraction, guessing denominators up to 16. Handles errors from rounding to 2 decimals. | |
*/ | |
function AsFraction(num) { | |
if (num == "" || isNaN(num)) // sanity check | |
return num; | |
var int = Math.floor(num) | |
, decimal = num - int; | |
if (decimal < 0.005) // whole number, don't show fraction | |
return int; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include 'accountfunctions.php'; | |
requireUser('t1'); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// No configuration needed, will automatically find the Apache log folder and read error.log | |
// Initialy displays the last 2k of contents and auto updates (and auto scrolls) as new lines show up | |
// Can enter a search phrase in the UI to ignore any new lines that do (or don't) contain the phrase | |
$tail = new PHPTail(GetApacheLogPath()); | |
if(isset($_GET['ajax'])) { //We're getting an AJAX call | |
echo $tail->getNewLines($_GET['lastsize'], $_GET['grep'], $_GET['invert']); | |
exit(); | |
} | |
// Regular GET/POST call, print out the GUI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* print_r and die. Pass any number of params, each one will be separated by an hr | |
**/ | |
function prd() { | |
while(ob_get_level()) | |
ob_end_flush(); | |
foreach (func_get_args() as $i => $arg) { | |
echo $i?'<hr>':'<pre>'; | |
if ($arg === null) echo '<span style="background-color:#333;color:#FFF;">null</span>'; | |
else if ($arg === true) echo '<span style="background-color:#333;color:#FFF;">true</span>'; |
NewerOlder