https://developers.google.com/drive/api/v3/reference/files/emptyTrash?apix=true&apix_params=%7B%7D#try-it
Este blog é como um sótão....um local para guardar... Links Textos etc... Tudo o que um dia poderá fazer falta.
quinta-feira, janeiro 31, 2019
phpmyadmin error #1698 - Access denied for user 'root'@'localhost'
mysqli_real_connect(): (HY000/1698): Access denied for user 'phpmyadmin'@'localhost'
A ligação como utilizador de controlo definida na sua configuração falhou.
mysqli_real_connect(): (HY000/1698): Access denied for user 'root'@'localhost'
sudo mysql -u root
use mysql
update user set plugin='' where User='root';
flush privileges;
exit
quarta-feira, janeiro 30, 2019
Ocs Reports Warning: date(): It is not safe to rely on the system's timezone setting
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_files.php on line 20 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_files.php on line 21 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_files.php on line 20 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_files.php on line 21 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_files.php on line 20 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_files.php on line 21 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_files.php on line 20 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_files.php on line 21 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_files.php on line 20 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/ocsinventory-reports/ocsreports/require/function_files.php on line 21
no ficheiro php.ini adicionar
date.timezone = Europe/Lisbon
http://php.net/manual/en/timezones.europe.php
terça-feira, janeiro 29, 2019
sábado, janeiro 26, 2019
Prevent "Remote UNIX connection" messages in the CLI
Prevent "Remote UNIX connection" messages in the CLI
This results in frequent messages being written to the Asterisk CLI, announcing the connection and disconnection of a remote Unix system.
If these become confusing, or inhibit the ease with which the CLI is used, reporting of this message can be disabled.
To disable the "Remote UNIX connection" messages, edit /etc/asterisk/asterisk.conf, and add the line:
hideconnect = yes
To the options section of the configuration file:
Then save the file, and restart Asterisk:
sudo /etc/init.d/asterisk restart
Fonte https://sites.google.com/site/comxwiki/the-asterisk-cli/prevent-remote-unix-connection-messages-in-the-cli
sexta-feira, janeiro 25, 2019
GLPI 416 tables not migrated to InnoDB engine.
ERRO 416 tables not migrated to InnoDB engine.
abrir terminal
cd /usr/share/glpi/scripts/
php innodb_migration.php
Aguardar e já está :)
abrir terminal
cd /usr/share/glpi/scripts/
php innodb_migration.php
Aguardar e já está :)
GLPI Zend OPcache teste da extensão
Zend OPcache teste da extensão
yum install epel-release
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum install php-opcache
adicionar no ficheiro php.ini
zend_extension=php_opcache.dll
verificar se esta tudo correcto
php -v
yum install epel-release
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum install php-opcache
adicionar no ficheiro php.ini
zend_extension=php_opcache.dll
verificar se esta tudo correcto
php -v
APCu extension is not present
APCu extension is not present error

yum intall apcu*
Y
Editar o ficheiro
/etc/php.ini
adicionar
extension=php_opcache.dll

yum intall apcu*
Y
Editar o ficheiro
/etc/php.ini
adicionar
extension=php_opcache.dll
Your database engine version seems too old: 5.5.60. GLPI Fix
yum update
rpm -Uvh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
yum -y install mysql mysql-server
rpm -qa | grep mysql
chkconfig mysqld on
service mysqld start
rpm -Uvh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
yum -y install mysql mysql-server
rpm -qa | grep mysql
chkconfig mysqld on
service mysqld start
quarta-feira, janeiro 23, 2019
segunda-feira, janeiro 21, 2019
A minha lista branca Whitelist de dominios
a lista ira sendo atualizada em https://github.com/ViPeR5000/files/blob/master/whitelist |
domingo, janeiro 20, 2019
terça-feira, janeiro 15, 2019
sábado, janeiro 12, 2019
quarta-feira, janeiro 09, 2019
segunda-feira, janeiro 07, 2019
quinta-feira, janeiro 03, 2019
quarta-feira, janeiro 02, 2019
Organização Pi hole
/etc/.pihole/
This directory is a clone of the
pi-hole
repo 132. During installation, the repository is cloned here so the files Pi-hole needs can be copied to your system.
/etc/cron.d/
pihole
: thecron
file that runs scheduled tasks such as flushing the log file or downloading the latest updates from the blocklist sources
/etc/dnsmasq.d/
01-pihole.conf
: the config specific to Pi-hole that controls howdnsmasq
functions02-pihole-dhcp.conf
: the config file used when Pi-hole’s DHCP server is active03-wildcard.conf
: used for wildcard blacklisting
/etc/lighttpd/
lighttpd.conf
: this is used to configure the Web server to respond to black holed domains and return a 404 of a blank Webpage. It also contains X-Headers and a few other settings.external.conf
: this is a user-created file that can be used to modify the Web server. These changes will persist through updates, unlike if you were to manually editlighttpd.conf
/etc/pihole/
This is where most of Pi-hole’s config files exist. It contains:
adlists.default
: the list of URLs where the block lists are sourced fromadlists.list
: a custom user-defined list of URLs to source just likeadlists.default
. If created it will overrideadlists.default
, but by default it does not exist until the user creates it.blacklist.txt
: a user-defined list of additional domains to block 143gravity.list
: perhaps Pi-hole’s most important file–it is a hosts file with all of the domains that are being blockedinstall.log
: a log file generated during installationlist.n.domain
: these are the raw lists that are downloaded. You may have several others depending whether or not you use additional block listslocal.list
: this contains local list entries such aspi.hole
so you can access the Web interface via name instead of IP.logrotate
: this is the config file that controls howlogrotate
handles flushing the log filesetupVars.conf
: this file contains variables needed to effectively setup and configure Pi-holewhitelist.txt
: a user-defined list of domains to be whitelisted 63. Pi-hole does generate this file during installation as it adds the domains that host the lists so they are not inadvertently blocked
/opt/pihole
- individual scripts 55 that are called by
pihole
coltable
: used for showing colors in the output of scripts
/usr/local/bin/
pihole
: this is the command that lets you control and configure your Pi-hole 156 installation
/run
pihole-FTL.pid
: the process ID used by FTLpihole-FTL.port
the port number used by FTL (defaults to 4711)
/var/
/var/log
pihole.log
: This is the log file that contains all of the DNS queries Pi-hole handles as well as the queries that were blocked. See this post to learn how to interpret this file.pihole_debug.log
: This is the log file generated bypihole -d
. This is stored locally, but you also have the option to upload it to our secure serverpihole-FTL.log
: This is the log file that contains information handled by our FTL engine 43.
/var/log/lighttpd/
access.log
: this log contains entries from blocked domains (and the web interface). It is useful for visualizing Pi-hole 67.error.log
: this log file contains errorslighttpd
may run into
/var/www/html
/var/www/html/admin
- This folder contains all the files needed for the admin interface and is simply a clone of the repo 54.
/var/www/html/pihole
- This folder contains the blank HTML page that is delivered in place of advertisements.
- It also contains the blockpage if you try to directly visit a domain that is blocked
terça-feira, janeiro 01, 2019
octoprint Can't Connect to UI Loading Failed -- Socket connection failed
octoprint.log
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.0.0.28
- octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:10.0.0.28
basta desativar o adblocker deste site e fica tudo a funcionar.