dig o-o.myaddr.l.google.com txt @ns1.google.com +short
# OR
nslookup -type=txt o-o.myaddr.l.google.com ns1.google.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
version: "3.8" | |
services: | |
traefik: | |
image: traefik:v2.4.9 | |
deploy: | |
replicas: 1 | |
placement: | |
constraints: [node.role == manager] | |
ports: |
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: "3.9" | |
services: | |
traefik: | |
# Use the latest v3.0.x Traefik image available | |
image: traefik:v3.0 | |
ports: | |
# Listen on port 80, default for HTTP, necessary to redirect to HTTPS | |
- target: 80 | |
published: 80 |
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 | |
function md5_file_large($file_path) { | |
if (!file_exists($file_path)) { | |
return false; | |
} | |
$chunk_size = 1024 * 1024; // 1MB | |
$md5_hash = hash_init('md5'); | |
$file = fopen($file_path, 'rb'); |
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 | |
$_xdebug_code_coverage = new class { | |
private $coverage; | |
private $covFile; | |
public function __construct() | |
{ | |
require_once __DIR__ . '/../vendor/autoload.php'; | |
$uid = uniqid(); |
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
$ composer licenses -f summary | |
-------------- ------------------------ | |
License Number of dependencies | |
-------------- ------------------------ | |
MIT 113 | |
BSD-3-Clause 30 | |
Apache-2.0 5 | |
LGPL-3.0 2 | |
LGPL-2.1 1 | |
BSD-2-Clause 1 |
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
netsh wlan show profiles | |
netsh wlan show profile "name=wifiname" key=clear |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
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
Saving output from 'text to speech' to a file on Mac OS X | |
``` | |
say -o hello.flac -v 'Alex' 'Hello, my name is Alex' | |
``` |
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 | |
/** | |
* @mixin \Illuminate\Support\Collection | |
* | |
* @psalm-suppress UndefinedMethod | |
* @psalm-suppress UndefinedThisPropertyFetch | |
* @psalm-suppress UndefinedThisPropertyAssignment | |
*/ | |
class CollectionMixin |
NewerOlder