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
| <!doctype html> | |
| <html lang="de"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| </head> | |
| <body> |
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
| <body> | |
| <div style="max-width: 800px;margin: 0 auto;"> | |
| <div style="background-color: gray;height:1000px;z-index:2;position:relative;"></div> | |
| <div class="paracontainer"> | |
| <div class="fixc" style="position:fixed;width:100%;max-width: 800px;top:400px;z-index:1;overflow-y:auto;max-height:100vh"> | |
| <div class="inner" style="z-index:1;height:600px;"> | |
| <h1>Jetzt neu</h1> |
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 | |
| # use with: manual_auth_hook = /usr/local/sbin/dns-challenge.sh | |
| if [ -z "$CERTBOT_DOMAIN" ] || [ -z "$CERTBOT_VALIDATION" ] | |
| then | |
| echo "EMPTY DOMAIN OR VALIDATION" | |
| exit -1 | |
| fi |
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 | |
| // Use https://github.com/kronthto/ao-archive/blob/master/src/Omi/Reader/OmiReader.php for actual/complete parsing of omi.tex | |
| // The approach below was a poor try because I didn't understand the fileformat | |
| $filename = 'D:\Games\Ace\Ace Online War Of The Sky\Res-Tex\omi.tex'; | |
| $handle = fopen($filename, 'rb'); | |
| $parts = []; |
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 | |
| class Field | |
| { | |
| public $x; | |
| public $y; | |
| public function __construct(int $x, int $y) | |
| { | |
| $this->x = $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
| # Extract a single database from an all-databases gzipped dump | |
| gunzip -c mysql_dump_all_dbs.sql.gz | sed -n '/^-- Current Database: `dbimlookingfor`/,/^-- Current Database: `/p' > dbimlookingfor.sql | |
| # https://stackoverflow.com/a/1013956/7362396 | |
| # Skim tables from a huge mysql db dump (thanks https://stackoverflow.com/a/26379517/7362396) | |
| sed -r '/INSERT INTO `(geocoding_ips|GeoPC_Places_URL|cachetags|cache_render)`/d' dump.sql > dump_skimmed.sql | |
| # Apache2: 410 Gone a site | |
| RewriteEngine on | |
| RewriteRule ^.*$ - [G,L] |
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 | |
| // Will select random numbers from [1,MAX_NUM] | |
| const MAX_NUM = 20000; | |
| // Will build and check SAMPLES triplets | |
| const SAMPLES = 2500000; | |
| /** @var int[]|array $factorCacheMap */ | |
| $factorCacheMap = []; |
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 | |
| set -u | |
| DAYS=30 | |
| BACKDAYS=5 | |
| CERTDIR=/etc/ssl/private/ | |
| backinform=$(date -d "$BACKDAYS days ago" +%s) |