Skip to content

Instantly share code, notes, and snippets.

🤘

Styxit styxit

🤘
Block or report user

Report or block styxit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View key base.md

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 Feb 12, 2018
A php script that can be used on a Synology Nas to revive Pushover notifications. https://styxit.com/2014/05/10/synology-pushover.html
View synology-pushover.php
<?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 / hookmeup.coffee
Last active Aug 29, 2015
hubot random nsfw image
View hookmeup.coffee
# Configures the plugin
module.exports = (robot) ->
# waits for the string "hubot nsfw" or "hubot hook me up" to occur
robot.respond /hook me up|nsfw/i, (msg) ->
# Configures the url of a remote server
msg.http('http://titsnarse.co.uk/random_json.php')
# and makes an http get call
.get() (error, response, body) ->
# passes back the image source
msg.send 'http://titsnarse.co.uk'+JSON.parse(body).src
View SoapClientTimeout.class.php
//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;
You can’t perform that action at this time.