quinta-feira, janeiro 31, 2019

Purge Gdocs

https://developers.google.com/drive/api/v3/reference/files/emptyTrash?apix=true&apix_params=%7B%7D#try-it


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

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

Tour de Zwift - Stage 8

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á :)


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

APCu extension is not present

APCu extension is not present error

264jk44.jpg

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

segunda-feira, janeiro 21, 2019

A minha lista branca Whitelist de dominios

adf.ly www.adf.ly bit.ly www.bit.ly goo.gl ow.ly www.ow.ly ota-downloads.nvidia.com ae01.alicdn.com 0.client-channel.google.com 1drv.com 2.android.pool.ntp.org akamaihd.net akamaitechnologies.com akamaized.net alluremedia.com.au amazonaws.com android.clients.google.com api.ipify.org app-api.ted.com app.plex.tv appleid.apple.com apps.skype.com appsbackup-pa.clients6.google.com appsbackup-pa.googleapis.com apt.sonarr.tv aspnetcdn.com attestation.xboxlive.com ax.phobos.apple.com.edgesuite.net bing.com brightcove.net bufferapp.com c.s-microsoft.com cdn.cloudflare.net cdn.embedly.com cdn.optimizely.com cdn.vidible.tv cdn2.optimizely.com cdn3.optimizely.com cdnjs.cloudflare.com cert.mgt.xboxlive.com clientconfig.passport.net clients1.google.com clients2.google.com clients3.google.com clients4.google.com clients5.google.com clients6.google.com cpms.spop10.ams.plex.bz cpms35.spop10.ams.plex.bz crisp.chat cse.google.com ctldl.windowsupdate.com d2c8v52ll5s99u.cloudfront.net d2gatte9o95jao.cloudfront.net dashboard.plex.tv dataplicity.com def-vef.xboxlive.com delivery.vidible.tv dev.virtualearth.net device.auth.xboxlive.com display.ugc.bazaarvoice.com displaycatalog.mp.microsoft.com dl.delivery.mp.microsoft.com dl.dropbox.com dl.dropboxusercontent.com dns.msftncsi.com download.sonarr.tv drift.com driftt.com dynupdate.no-ip.com ec-ns.sascdn.com ecn.dev.virtualearth.net edge.api.brightcove.com eds.xboxlive.com feeds.feedburner.com filament.io fonts.gstatic.com forums.sonarr.tv g.live.com geo-prod.do.dsp.mp.microsoft.com geo3.ggpht.com giphy.com github.com github.io googleapis.com gravatar.com gstatic.com help.ui.xboxlive.com hls.ted.com i.s-microsoft.com i.ytimg.com i1.ytimg.com icloud.com imagesak.secureserver.net img.vidible.tv imgix.net imgs.xkcd.com instantmessaging-pa.googleapis.com intercom.io j.mp jquery.com jsdelivr.net keystone.mwbsys.com lastfm-img2.akamaized.net licensing.xboxlive.com linkedin.com linuxtracker.org live.com login.aliexpress.com login.live.com login.microsoftonline.com m.hotmail.com manifest.googlevideo.com meta-db-worker02.pop.ric.plex.bz meta.plex.bz meta.plex.tv microsoft.com microsoftonline.com msftncsi.com my.plexapp.com nexusrules.officeapps.live.com nine.plugins.plexapp.com no-ip.com node.plexapp.com notify.xboxlive.com ns1.dropbox.com ns2.dropbox.com o1.email.plex.tv o2.sg0.plex.tv ocsp.apple.com office.com office.net office365.com officeclient.microsoft.com om.cbsi.com onedrive.live.com outlook.live.com outlook.office365.com pinterest.com placehold.it placeholdit.imgix.net players.brightcove.net plex.tv pricelist.skype.com products.office.com proxy.plex.bz proxy.plex.tv proxy02.pop.ord.plex.bz pubsub.plex.bz pubsub.plex.tv raw.githubusercontent.com reddit.com redirector.googlevideo.com res.cloudinary.com s.gateway.messenger.live.com s.marketwatch.com s.shopify.com s.youtube.com s.ytimg.com s1.wp.com s2.youtube.com s3.amazonaws.com sa.symcb.com secure.avangate.com secure.brightcove.com secure.surveymonkey.com services.sonarr.tv sharepoint.com skyhook.sonarr.tv skype.com spclient.wg.spotify.com ssl.p.jwpcdn.com staging.plex.tv status.plex.tv support.microsoft.com surveymonkey.com synology.com t.co t0.ssl.ak.dynamic.tiles.virtualearth.net t0.ssl.ak.tiles.virtualearth.net tawk.to tedcdn.com themoviedb.com thetvdb.com tinyurl.com title.auth.xboxlive.com title.mgt.xboxlive.com tvdb2.plex.tv tvthemes.plexapp.com twimg.com twitter.com ui.skype.com unsplash.com v.shopify.com video-stats.l.google.com videos.vidible.tv vimeo.com widget-cdn.rpxnow.com wikipedia.org win10.ipv6.microsoft.com wordpress.com wp.com viper5000.net ws.audioscrobbler.com www.dataplicity.com www.googleapis.com www.icloud.com www.linuxtracker.org www.msftncsi.com www.no-ip.com www.plex.tv www.solaredge.com www.synology.com www.twitter.com www.xboxlive.com www.youtube-nocookie.com xbox.ipv6.microsoft.com xboxexperiencesprod.experimentation.xboxlive.com xflight.xboxlive.com xkms.xboxlive.com xsts.auth.xboxlive.com yahoo.com youtu.be youtube-nocookie.com youtube.com yt3.ggpht.com min-saude.pt mordomo.gov.pt qgis.org ptempresas.pt smartcloudpt.pt airc.pt edubox.pt portalautarquico.pt compraspublicas.com portaldasfinancas.gov.pt api-global.netflix.com ichnaea.netflix.com appboot.netflix.com secure.netflix.com viper5000.net bombeiros-portugal.net zwift.com hass.io cloud.iot reactrjs.com criteo.net

a lista ira sendo atualizada em

https://github.com/ViPeR5000/files/blob/master/whitelist

quarta-feira, janeiro 02, 2019

Organização Pi hole


Resultado de imagem para unix folders




/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: the cron 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 how dnsmasq functions
  • 02-pihole-dhcp.conf: the config file used when Pi-hole’s DHCP server is active
  • 03-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 edit lighttpd.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 from
  • adlists.list: a custom user-defined list of URLs to source just like adlists.default. If created it will override adlists.default, but by default it does not exist until the user creates it.
  • blacklist.txt: a user-defined list of additional domains to block 143
  • gravity.list: perhaps Pi-hole’s most important file–it is a hosts file with all of the domains that are being blocked
  • install.log: a log file generated during installation
  • list.n.domain: these are the raw lists that are downloaded. You may have several others depending whether or not you use additional block lists
  • local.list: this contains local list entries such as pi.hole so you can access the Web interface via name instead of IP.
  • logrotate: this is the config file that controls how logrotate handles flushing the log file
  • setupVars.conf: this file contains variables needed to effectively setup and configure Pi-hole
  • whitelist.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/

/run

  • pihole-FTL.pid: the process ID used by FTL
  • pihole-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 by pihole -d. This is stored locally, but you also have the option to upload it to our secure server
  • pihole-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 errors lighttpd 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





basta desativar o adblocker deste site e fica tudo a funcionar.

LinkWithin

Related Posts Widget for Blogs by LinkWithin