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
| #!/usr/bin/env bash | |
| # | |
| # Block all ranges from a given ASN via UFW. | |
| # Usage: | |
| # sudo ./block_asn.sh AS1234 ["optional comment"] | |
| # | |
| # Requires: ufw, curl | |
| # | |
| set -euo pipefail |
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 | |
| $OTS = '/usr/bin/ots'; | |
| loadurl(); | |
| if(!isset($_REQUEST['format']) || $_REQUEST['format'] =! 'text'){ | |
| header('Content-Type: text/html; charset=utf-8'); | |
| html_header(); | |
| form(); |
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
| { | |
| "openapi": "3.1.0", | |
| "info": { | |
| "title": "DokuWiki API", | |
| "description": "The DokuWiki API OpenAPI specification", | |
| "version": "12", | |
| "x-locale": "en-US" | |
| }, | |
| "servers": [ | |
| { |
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 | |
| /** | |
| * Rename all files affected by https://github.com/splitbrain/dokuwiki/issues/3698 | |
| * | |
| * Upload this file to your DokuWiki root. It should be placed right next to the doku.php file. Then run | |
| * call it in your browser at https://yourserver.com/yourwiki/turkishfix.php | |
| * | |
| * Delete the file once you're done | |
| */ | |
| if (!defined('DOKU_INC')) define('DOKU_INC', __DIR__ . '/'); |
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
| # SSH bookmark creator | |
| sbm(){ | |
| if [ $# -lt 2 ]; then | |
| echo "Usage: sbm <short> [<user>@]<hostname> [-p <port>]" >&2 | |
| return 1 | |
| fi | |
| short=$1 | |
| arg=$2 |
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 | |
| // composer require phpseclib/phpseclib | |
| require_once('vendor/autoload.php'); | |
| $tenant = 'cosmocode'; | |
| $policy = 'b2c_1_signupandsignin'; | |
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
| #!/usr/bin/php | |
| <?php | |
| echo 'please use https://github.com/splitbrain/dokuwiki-versionfix now'; |
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 | |
| /** | |
| * DokuWiki Plugin jscheck (Action Component) | |
| * | |
| * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html | |
| * @author Andreas Gohr <andi@splitbrain.org> | |
| */ | |
| // must be run within Dokuwiki | |
| if(!defined('DOKU_INC')) die(); |
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
| #!/usr/bin/php | |
| <?php | |
| if(!defined('DOKU_INC')) define('DOKU_INC', realpath(dirname(__FILE__) . '/../') . '/'); | |
| define('NOSESSION', 1); | |
| require_once(DOKU_INC . 'inc/init.php'); | |
| class FixerCLI extends DokuCLI { | |
| protected $dir; |
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
| #! /usr/bin/php | |
| <?php | |
| class AndroidApp { | |
| #0: Trees for Cars by Leo Grand | |
| #1: 0,99 $ | |
| #2: December 11, 2013 | |
| #3: Complete | |
| #4: Android Apps | |
| #5: Transportation |
NewerOlder