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
services: | |
traccar: | |
image: traccar/traccar:6.4-alpine | |
container_name: traccar | |
hostname: traccar | |
restart: unless-stopped | |
# remove networks if not using containerized nginx-proxy | |
networks: | |
- local-dev | |
environment: |
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
whois(){ /usr/bin/whois `echo $1|cut -d'/' -f3` } |
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
whois(){ /usr/bin/whois `echo $1|awk -F[/:] '{print $4}'` } |
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
whois(){ /usr/bin/whois `echo $1|awk -F[/:] '{print $4}'` } |
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
whois(){ /usr/bin/whois `echo $1|awk -F[/:] '{print $4}'` } |
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
whois(){ /usr/bin/whois `echo $1|awk -F[/:] '{print $4}'` } |
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
/* Use get_canonical_url to help a domain transition when both domains are active (SEO) and avoiding penality | |
* apply this on old domain and specify new domain | |
* Jeff Laflamme <jeff@geekho.asia> | |
*/ | |
add_filter( 'get_canonical_url', 'geekho_get_canonical_url' ); | |
function geekho_get_canonical_url( $canonical_url ) { | |
return preg_replace('/oldsite\.com/','newsite.com', $canonical_url); | |
} |
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
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json| \ | |
jq '.prefixes[] | select(.region == "ap-southeast-1")| select(.service == "EC2").ip_prefix' |
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
docker exec postgres9 psql -U postgres -c 'create database <database name>;' |
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
docker exec -it postgres9 pg_dump -Upostgres > backup.sql |
NewerOlder