Skip to content

Instantly share code, notes, and snippets.

View styxit's full-sized avatar
🤘

Floris Ankersmit styxit

🤘
View GitHub Profile

Keybase proof

I hereby claim:

  • I am styxit on github.
  • I am styxit (https://keybase.io/styxit) on keybase.
  • I have a public key whose fingerprint is B353 DF52 12AA B7A5 A8D2 BB13 19A5 B79B 4712 8AE6

To claim this, I am signing this object:

@styxit
styxit / synology-pushover.php
Last active February 5, 2020 11:31
A php script that can be used on a Synology Nas to revive Pushover notifications. https://styxit.com/2014/05/10/synology-pushover.html
<?php
/************************************/
/********** CONFING START ***********/
// Only allow request made by localhost?
// Set this to false if this script is not running on your synology webserver (less secure)
$localOnly = true;
/********** CONFING END *************/
/************************************/
@styxit
styxit / SoapClientTimeout.class.php
Created July 24, 2012 12:18 — forked from RobThree/SoapClientTimeout.class.php
PHP SoapClient with timeout
//Drop-in replacement for PHP's SoapClient class supporting connect and response/transfer timeout
//Usage: Exactly as PHP's SoapClient class, except that 3 new options are available:
// timeout The response/transfer timeout in milliseconds; 0 == default SoapClient / CURL timeout
// connecttimeout The connection timeout; 0 == default SoapClient / CURL timeout
// sslverifypeer FALSE to stop SoapClient from verifying the peer's certificate
class SoapClientTimeout extends SoapClient
{
private $timeout = 0;
private $connecttimeout = 0;
private $sslverifypeer = true;