quarta-feira, 27 de novembro de 2019

Forçar ações automática GLPI



#Força a ativação da tarefa de envio de email

*/1 * * * * php /var/www/html/glpi/front/cron.php --force mailgate

*/1 * * * * root php /var/www/html/glpi/front/cron.php --force mailgate

*/1 * * * * /usr/bin/php5.6 /var/www/html/glpi/front/cron.php --force mailgate

*/1 * * * * /usr/bin/php7.0 /var/www/html/glpi/front/cron.php --force mailgate

*/1 * * * * /usr/bin/php7.1 /var/www/html/glpi/front/cron.php --force mailgate

*/1 * * * * root php /var/www/html/glpi/front/cron.php --force queuedmail


Em outras palavras:

Ele força a execução da tarefa "mailgate" de 1 em 1 minuto


Perceba que coloquei para diversas versões do php, você precisa saber qual é a sua e adicionar a linha conforme sua versão

Aqui, no meu caso, resolveu.

Espero ter ajudado.

Abraço!

terça-feira, 22 de outubro de 2019

Iframe cortando margens

<html>
<head>
    <title></title>
</head>
<body>
<div id="content">
<div style="height:800px;"><iframe frameborder="0" height="120%" scrolling="no" src="/portal/p/1/ecmnavigation?app_ecm_navigation_doc=244" style="position:absolute;
            top:-100px; left:-80px;" width="110%"></iframe></div>
</div>
</body>
</html>

sexta-feira, 11 de outubro de 2019

How to disable Amazon Kindle Keyboard screensaver

By default if you leave your Kindle Keyboard idle for 10 minutes without turning a page, it will enter screensaver mode (sleep mode). There are times you just need it to stay on a page without going in to screensaver mode. This post will show you how you can disable the screensaver mode.
ress Home button.

Press Del button. This will bring up the search box.
Type ;debugOn and press Enter.
Type ~disableScreensaver and press Enter.
Type ;debugOff and press Enter.
Once you have disabled the screensaver mode, you can manually switch to screensaver mode by using the power slider.


Re-enable screensaver mode
Press Home button.
Press Del button. This will bring up the search box.
Type ;debugOn and press Enter.
Type ~resumeScreensaver and press Enter.
Type ;debugOff and press Enter.

quinta-feira, 15 de agosto de 2019

Ativar opção de conta nunca expira no Office 365

Comando via powershell


Comandos para conectar ao PowerShell
Set-executionpolicy unrestricted
Set-ExecutionPolicy RemoteSigned
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session
Connect-Msolservice -Credential $LiveCred

Configura pra não expirar mais a senha
Set-MSOLUser -UserPrincipalName usuario@dominio.com -PasswordNeverExpires $true

Consulta o usuário
Get-MsolUser -UserPrincipalName usuario@dominio.comr |fl

quarta-feira, 17 de julho de 2019

Dicas Específicos


  • Localizar programas que tratam por grupo de usuários
    • usuar_grp_usuar.cod_grp_usuar = 'XXX'

segunda-feira, 11 de março de 2019

Ver processos e matar no Linux

Comando via SHELL
  • htop
  • F4 (filtra por nome) + Enter
  • Seleciona o processo
  • F9 (Abre menu kill)
  • Comando 9

terça-feira, 12 de fevereiro de 2019

Office 365 Produto Não Licenciado

Se você tem o Office 365 ou Office 2016 e está acusando a mensagem de "Produto Não Licenciado" basta seguir os passos abaixo para reativar


  1. C:\program files\Microsoft office\office16>cscript ospp.vbs /dstatus
  2. Quando pegar o KEY, rode o comando para apagar o status da instalação com essa licença. C:\program files\Microsoft office\office16>cscript ospp.vbs /unpkey: XXXXX
  3. Verifique as credenciais de Windows para saber se existe algo do Office e apague se tiver.
  4. Abra um programa do Office e verifique se ira pedir para ativar novamente, caso não, terá realmente que refazer a instalação.