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
#!/bin/bash | |
# Function to display usage | |
usage() { | |
echo "Usage: $0 [--json-file=<path_to_json_file> | --listen] --url=<target_url> [--striptags=0|1]" | |
echo "Examples:" | |
echo " $0 --json-file=./test.json --url=http://192.168.4.22/api/v4/member/webhook/" | |
echo " $0 --listen --url=http://192.168.4.22/api/v4/member/webhook/ --striptags=0" | |
echo "Note: HTML tags are stripped from response by default (--striptags=1) using PHP's strip_tags. Use --striptags=0 to disable." | |
exit 1 |
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 | |
//https://gist.github.com/dapepe/9956717 | |
/** | |
* Creates a markdown document based on the parsed documentation | |
* | |
* @author Peter-Christoph Haider <[email protected]> | |
* @package Apidoc | |
* @version 1.00 (2014-04-04) | |
* @license GNU Lesser Public License | |
*/ |
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
._* | |
.DS_Store | |
.svn | |
/publish |
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://treehousetim.com/2011/12/13/hiding-values-in-urls-using-php/ | |
header( 'content-type: text/plain' ); | |
$h = ''; | |
if ( array_key_exists( 'h', $_GET ) && ! empty( $_GET['h'] ) ) | |
{ | |
$test = unserialize( gzuncompress( base64_decode( urldecode( urldecode( $_GET['h'] ) ) ) ) ); | |
if ( is_array( $test ) ) | |
{ |
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
<? | |
// COPYRIGHT 2015 by TIM GALLGHER ([email protected]) | |
// http://treehousetim.com/2015/04/08/new-json-streaming-output-code/ | |
//The MIT License (MIT) | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
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
<? | |
// https://gist.github.com/gists/3406693 | |
// 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 | |
// 2012-08-20 - treehousetim added an additional option to support xignite.com api key auth |