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
-- Note: only supported in GXP21xx and GRP26xx series | |
-- Grandstream Phone Params - phone requires a statically assigned address or internal DNS name! | |
set PhoneAddr to "172.16.XXX.XXX" | |
set PhonePasswd to "mySecretPassphrase" | |
-- Tomedo replaces the xxx with the callee number | |
set CallTarget to "xxx" | |
-- execute webhook via curl http get | |
do shell script "curl -X GET \"http://" & PhoneAddr & "/cgi-bin/api-make_call?passcode=" & PhonePasswd & "&hs=1&phonenumber=" & CallTarget & "\"" |
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
# MU rewrites | |
url.rewrite-once = ( | |
"^/(.*/)?files/$" => "/index.php", | |
"^/(.*/)?files/(.*)" => "/wp-content/blogs.php?file=$2", | |
"^(/wp-admin/.*)" => "$1", | |
"^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "/$2", | |
"^/([_0-9a-zA-Z-]+/)?(.*\.php)" => "/$2", | |
"^/(.*)/?$" => "/index.php" | |
) |
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
<pre class="EnlighterJSRAW" data-enlighter-language="php"><?php | |
echo "https://home.url/"; | |
echo ":)"; | |
?></pre> |
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
/* Origin: https://github.com/AndiDittrich/EnlighterJS/blob/v2.10.1/Source/Themes/MooTwo.css */ | |
/* Line 16,17,33 are modified to change the background color */ | |
/* Inline specific styles */ | |
span.greenEnlighterJS{ | |
border-radius: 4px; | |
background-color: #f0f0f1; | |
border: solid 1px #f0f0f1; | |
} |
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
var _crypto = require('crypto'); | |
// generic string hashing | |
function hash(input, algo, type){ | |
// string input ? | |
if (typeof input !== 'string'){ | |
input = JSON.stringify(input); | |
} | |
// create hash algo |
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
var _request = require('request'); | |
var _xml2js = require('xml2js').parseString; | |
function fetchFeed(url, cb){ | |
_request({ | |
url: url, | |
headers: { | |
'User-Agent': ' Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0' | |
} | |
}, function (error, response, xml){ |
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
// SPDX-License-Identifier: MPL-2.0 | |
// AES Encryption/Decryption with AES-256-GCM using random Initialization Vector + Salt | |
// ---------------------------------------------------------------------------------------- | |
// the encrypted datablock is base64 encoded for easy data exchange. | |
// if you have the option to store data binary save consider to remove the encoding to reduce storage size | |
// ---------------------------------------------------------------------------------------- | |
// format of encrypted data - used by this example. not an official format | |
// | |
// +--------------------+-----------------------+----------------+----------------+ |