- Amazon Alexa:
^device-metrics-us(\-\d)?.amazon.com$
- Amazon App Authorization Api:
^fls-(\w{2}).amazon.com$
- Amazon Mobile Associates Api:
^mas-(\w{3}).amazon.com$
This file contains 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 | |
# https://sourceforge.net/projects/ezthumb/ | |
function create_thumbnail { | |
ext="$1" | |
find . -type f -name "*.${ext}" -printf '%h\0' | sort -zu | while IFS= read -r -d '' dir; do | |
ezthumb --grid 8x5 --format "jpg@99" "${dir}/*.${ext}" | |
#echo "${dir}/*.${ext}" |
This file contains 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
find . \ | |
-name "*.conf" \ | |
-o -name "Dockerfile" \ | |
-o -name ".dockerignore" \ | |
-o -name ".gitignore" \ | |
-o -name ".gitkeep" \ | |
-o -name "*Jenkinsfile" \ | |
-o -name "*.js" \ | |
-o -name "*.json" \ | |
-o -name "*.lock" \ |
This file contains 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 | |
$benchMark = new class() { | |
const MEASUREMENT_BLOCKS = 20; | |
const ITERATIONS = 100000; | |
private function variant1(): void | |
{ | |
// Implement variant 1 here | |
} |
This file contains 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
version: '2' | |
services: | |
boinc: | |
image: boinc/client | |
container_name: boinc | |
restart: always | |
network_mode: host | |
pid: host | |
volumes: | |
- boinc:/var/lib/boinc |
This file contains 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 \DateTime; | |
use Lcobucci\JWT\Builder; | |
use Lcobucci\JWT\Parser; | |
use Lcobucci\JWT\Signer\Hmac\Sha512; | |
use Lcobucci\JWT\Signer\Key; | |
use Lcobucci\JWT\ValidationData; | |
class JwtUtils |
This file contains 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 | |
namespace Games\Game\Planetbase; | |
use Wa72\HtmlPageDom\HtmlPageCrawler; | |
/** | |
* @see https://games-blog.de/planetbase-cheats/4566/ | |
*/ | |
class CheatManager |
This file contains 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 | |
# Check for root | |
if [[ "$(id -u)" != "0" ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
# Remove old kernels | |
apt autoremove |
This file contains 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 | |
namespace Application\Console\Command\Remote; | |
use DavaHome\Console\Command\AbstractCommand; | |
use GuzzleHttp\Client; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\DomCrawler\Crawler; |
This file contains 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 | |
# https://unix.stackexchange.com/a/249238 | |
echo "Start watching for new files" | |
> watch.log | |
while true | |
do | |
touch watch.log | |
sleep 10 | |
find . -type f -cnewer ./watch.log | tee -a watch.log |
NewerOlder