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
| """ | |
| Produces load on all available CPU cores. | |
| Requires system environment var STRESS_MINS to be set. | |
| """ | |
| from multiprocessing import Pool | |
| from multiprocessing import cpu_count | |
| import time | |
| import os |
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
| Vagrant.configure("2") do |config| | |
| # Other box urls: https://www.bram.us/2014/09/24/modern-ie-vagrant-boxes | |
| config.vm.box = "modern.ie/win7-ie11" | |
| config.vm.box_url = 'http://aka.ms/vagrant-win7-ie11' | |
| # big timeout since windows boot is very slow | |
| config.vm.boot_timeout = 500 | |
| # Port forward WinRM (Windows Remote Management) and RDP |
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
| Queries do AD no Graylog (NXLog) | |
| ================================ | |
| Mapear: | |
| Usuário – Criação, Exclusão, Modificação, Bloqueio e Desbloqueio. | |
| Computador - Criação, Exclusão, Modificação, Bloqueio e Desbloqueio. | |
| Grupos - Criação, Exclusão, Modificação, Alteração de membros. | |
| Logon – Tentativas falhas de Logon, Logons com sucesso. | |
| Categorias Filtradas: |
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
| #!/usr/bin/env sh | |
| tail -f /var/log/apache2/gosquared*access.log | awk ' | |
| BEGIN { blocked_ips="" } | |
| / http/ { | |
| if (! index(blocked_ips, $1)) { | |
| // append this ip to our internal blocked_ips list | |
| blocked_ips = blocked_ips " " $1 | |
| "date" | getline current_time |