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
FWC 4 | |
FWC 6 | |
FWC 12 | |
FWC 16 | |
QAT 1 | |
QAT 6 | |
QAT 8 | |
QAT 10 | |
QAT 12 | |
QAT 14 |
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
rabbitmqctl add_user test test | |
rabbitmqctl set_user_tags test administrator | |
rabbitmqctl set_permissions -p / test ".*" ".*" ".*" |
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
$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; |
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
xxx@RT-AC87U-C698:/tmp/home/root# nvram show | grep dns_probe | |
dns_probe=0 | |
size: 55132 bytes (10404 left) | |
dns_probe_host=dns.msftncsi.com | |
dns_probe_content=131.107.255.255 fd3e:4f5a:5b81::1 | |
xxx@RT-AC87U-C698:/tmp/home/root# nvram set dns_probe_content=0.0.0.0 | |
xxx@RT-AC87U-C698:/tmp/home/root# nvram set dns_probe_host="" | |
xxx@RT-AC87U-C698:/tmp/home/root# nvram commit |
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
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d | |
git fetch --prune |
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 | |
echo 'default locale: ' . \Locale::getDefault(); | |
echo PHP_EOL; | |
echo 'default timezone: ' . \date_default_timezone_get(); | |
echo PHP_EOL; | |
// see http://tools.ietf.org/html/rfc3339#section-5.8 for example datetimes | |
// bug report on missing fractions support: https://bugs.php.net/bug.php?id=51950 | |
// feature request for fractions support in constructor: https://bugs.php.net/bug.php?id=49779 |
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.5' | |
services: | |
postgres: | |
container_name: be_postgres | |
image: postgres | |
environment: | |
POSTGRES_USER: super | |
POSTGRES_PASSWORD: super | |
PGDATA: /data/postgres |
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
05 1 30 * * root /usr/bin/certbot renew --post-hook "systemctl reload httpd" |
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
kill $(ps aux | grep '[p]hp' | awk '{print $2}') |
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 | |
# Stop all containers | |
docker stop $(docker ps -a -q) | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
NewerOlder