REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\DateTime\Servers" /v 0 /t REG_SZ /d "c.ntp.br" /f
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
| HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run --- 32 Bits | |
| HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run -- 64 Bits | |
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/sh | |
| # A simple script for remotely rebooting a Ubiquiti UniFi access point | |
| # Version 1.0 (Dec 15, 2015) | |
| # by Steve Jenkins (http://www.stevejenkins.com/) | |
| # Requires sshpass (https://sourceforge.net/projects/sshpass/) which | |
| # is probably available via dnf, yum, or apt on your *nix distro. | |
| # USAGE |
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
| ip hotspot host print count-only where bypassed # Quantidade de hosts no Bypass do Hotspot | |
| ip hotspot host print count-only where bypassed to-address ~"10.97" # Apenas 10.97 | |
| ip dhcp-server lease print count-only where dynamic # Quantidade de hosts no lease do DHCP-Server | |
| :put ([/interface pppoe-client monitor PPPoE_Redenilf once as-value]->"uptime") # Uptime PPPoE | |
| interface pppoe-server print count-only where service=service1 # Contagem de PPPoE por servidor |
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
| @echo on & @setlocal enableextensions | |
| @echo ========================= | |
| @echo Turn off the time service | |
| net stop w32time | |
| @echo ====================================================================== | |
| @echo Set the SNTP (Simple Network Time Protocol) source for the time server | |
| w32tm /config /syncfromflags:manual /manualpeerlist:"0.it.pool.ntp.org 1.it.pool.ntp.org 2.it.pool.ntp.org 3.it.pool.ntp.org" | |
| @echo ============================================= | |
| @echo ... and then turn on the time service back on | |
| net start w32time |
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 | |
| TIMESTAMP=$(date +"%Y%m%d") | |
| BACKUP_DIR="/dados/bkp_mysql/$TIMESTAMP" | |
| MYSQL_USER="root" | |
| LINUX_USER="root" | |
| MYSQL=/usr/bin/mysql | |
| MYSQL_PASSWORD="password" | |
| MYSQLDUMP=/usr/bin/mysqldump |
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
| version: '3.1' | |
| networks: | |
| web: | |
| external: true | |
| services: | |
| wordpress: | |
| image: wordpress | |
| labels: |
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
| version: '2' | |
| services: | |
| wordpress: | |
| image: wordpress:latest # https://hub.docker.com/_/wordpress/ | |
| ports: | |
| - "80:80" # change ip if required | |
| volumes: | |
| - ./config/php.conf.uploads.ini:/usr/local/etc/php/conf.d/uploads.ini | |
| - ./wp-app:/var/www/html # Full wordpress project | |
| #- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development |
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
| version: '2' | |
| networks: | |
| web: | |
| external: true | |
| services: | |
| portainer: | |
| image: portainer/portainer | |
| container_name: portainer | |
| labels: | |
| - traefik.backend=portainer |
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
| docker run --name phpmyadmin -d --link mysql_server -p 8081:80 -e PMA_HOST=mysql_server --network wordpress_wordpress-network phpmyadmin/phpmyadmin |