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
| DEBIAN_FRONTEND=noninteractive sudo add-apt-repository ppa:ondrej/php | |
| DEBIAN_FRONTEND=noninteractive sudo apt-get update | |
| DEBIAN_FRONTEND=noninteractive sudo apt-get install git autoconf automake libtool m4 make gcc -y | |
| DEBIAN_FRONTEND=noninteractive sudo apt-get install php8.4 -y | |
| DEBIAN_FRONTEND=noninteractive sudo apt-get install php8.4-redis php8.4-gd php8.4-mbstring php8.4-zip php8.4-intl php8.4-curl php8.4-dom php8.4-xml php8.4-dev -y | |
| curl -fL --output /tmp/pie.phar https://github.com/php/pie/releases/latest/download/pie.phar \ | |
| && sudo mv /tmp/pie.phar /usr/local/bin/pie \ | |
| && sudo chmod +x /usr/local/bin/pie |
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
| strRestoreFolder = "G:\Document" | |
| strOriginalFolder = "E:\Document" | |
| bolDoIt = false | |
| strAffectedFiles = "odt, ods, odp, odm, odc, odb, doc, docx, docm, wps, xls, xlsx, xlsm, xlsb, xlk, ppt, pptx, pptm, mdb, accdb, pst, dwg, dxf, dxg, wpd, rtf, wb2, mdf, dbf, psd, pdd, eps, ai, indd, cdr, jpg, jpe, jpg, dng, 3fr, arw, srf, sr2, bay, crw, cr2, dcr, kdc, erf, mef, mrw, nef, nrw, orf, raf, raw, rwl, rw2, r3d, ptx, pef, srw, x3f, der, cer, crt, pem, pfx, p12, p7b, p7c, pdf, tif" | |
| arrAffectedFiles = Split(arrAffectedFiles, ", ") | |
| Set dicAffectedFiles = CreateObject("Scripting.Dictionary") |
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 | |
| define('PUSHOVER_API_KEY', '<API KEY>'); //Replace with your API Key | |
| $userKey = (isset($_GET['u']) ? $_GET['u'] : '<DEFAULT USER ID>'); //Default user or group | |
| $response = json_decode(file_get_contents('php://input'), true); | |
| switch ($response["Type"]) { | |
| case "SubscriptionConfirmation": | |
| //For this use case, we will just automatically subscribe, we could forward this via email, |
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 | |
| //Variables, set these | |
| $xmlrpc_fullurl = "http://www.example.com/cgi-bin/mt/mt-xmlrpc.cgi"; // path to your mt-xmlrpc.cgi file | |
| $blog_id = "3"; //The blog ID to post to, as IFTTT has no options for this we force it. | |
| //Fetch the request and turn it into an XML element for editing | |
| $request_body = file_get_contents('php://input'); | |
| $methodCall = new SimpleXMLElement($request_body); | |
| //Check if the title includes a blog id in the form "title {x}" |
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 | |
| header("Content-Type: application/rss+xml; charset=utf-8"); | |
| error_reporting(E_ALL); | |
| ini_set("display_errors", 0); | |
| define('STEAM_USER', $_GET['u']); | |
| define('LIST_URL', "http://steamcommunity.com/id/".STEAM_USER."/screenshots/?appid=0&sort=newestfirst&browsefilter=myfiles&view=grid"); | |
| include('extlib/ganon/ganon.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
| #!/bin/sh | |
| REQUESTS=10000 | |
| COUNT=250 | |
| BEES=4 | |
| KEYNAME=<whateveryourkey.pem is> | |
| GROUP=public | |
| while getopts "h:r:c:b:" opt; do | |
| case $opt in |
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
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> | |
| <script src="jquery.cookie.js"></script> | |
| <div id="other-yams"> | |
| <div id="oy-close">X</div> | |
| <h3>Got the right YAMS?</h3> | |
| <div id="oy-text">This is the site for YAMS, a tool to make running your own Minecraft server as easy as possible.<br /> | |
| Looking to play on the family friendly public Minecraft server "<a href="http://www.darrenstraight.com/minecraft.php" target="_blank">Yet Another Minecraft Server</a>"?</div> | |
| </div> | |
| <script type="text/javascript"> | |
| $(document).ready(function() { |
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
| $.ajaxSetup({ | |
| url: '/api/', | |
| type: 'POST', | |
| dataType: 'json' | |
| }); | |
| //------ e.g. 1, just need to specify data | |
| $.ajax({ | |
| data: 'serverid=' + YAMS.admin.selectedServer + '&action=save-server-settings&' + $('#settings-form').serialize() |
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
| function createDialog(strName, intWidth, strHeader, strTemplate, funcOnLoad, objButtons) { | |
| var dialog = $('<div id="' + strName + '"><div style="text-align: center"><img src="/assets/images/ajax-loader.gif" /></div></div>').dialog({ | |
| modal: true, | |
| open: function () { | |
| if (typeof (strTemplate) != "undefined") $(this).load(strTemplate, funcOnLoad); | |
| }, | |
| close: function (event, ui) { | |
| $(this).remove(); | |
| }, | |
| width: intWidth, |
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
| function preventBack(){ | |
| try{ | |
| history.forward(); | |
| setTimeout('preventBack()', 500); | |
| }catch(e){} | |
| } | |
| preventBack(); |
NewerOlder