This file contains 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
{"lastUpload":"2020-08-12T03:56:30.010Z","extensionVersion":"v3.4.3"} |
This file contains 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
/* Global Reset */ | |
body { | |
-webkit-text-size-adjust: 100%; | |
-ms-text-size-adjust: 100%; | |
} | |
body, p, h1, h2, h3, h4, h5, h6, img, table, td, #emailBody { | |
margin-top: 0; | |
margin-left: 0; | |
margin-right: 0; |
This file contains 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
<?php | |
function featureShell($cmd, $cwd) { | |
$stdout = array(); | |
if (preg_match("/^\s*cd\s*$/", $cmd)) { | |
// pass | |
} elseif (preg_match("/^\s*cd\s+(.+)\s*(2>&1)?$/", $cmd)) { | |
chdir($cwd); | |
preg_match("/^\s*cd\s+([^\s]+)\s*(2>&1)?$/", $cmd, $match); |
This file contains 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
async function enviarScript(scriptText){ | |
const lines = scriptText.split(/[\n\t]+/).map(line => line.trim()).filter(line => line); | |
main = document.querySelector("#main"), | |
textarea = main.querySelector(`div[contenteditable="true"]`) | |
if(!textarea) throw new Error("Não há uma conversa aberta") | |
for(const line of lines){ | |
console.log(line) |
This file contains 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
async function enviarScript(scriptText){ | |
const lines = scriptText.split(/[\n\t]+/).map(line => line.trim()).filter(line => line); | |
main = document.querySelector("#main"), | |
textarea = main.querySelector(`div[contenteditable="true"]`) | |
if(!textarea) throw new Error("Não há uma conversa aberta") | |
for(const line of lines){ | |
console.log(line) |
This file contains 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
async function enviarScript(scriptText){ | |
const lines = scriptText.split(/[\n\t]+/).map(line => line.trim()).filter(line => line); | |
main = document.querySelector("#main"), | |
textarea = main.querySelector(`div[contenteditable="true"]`) | |
if(!textarea) throw new Error("Não há uma conversa aberta") | |
for(const line of lines){ | |
console.log(line) | |
This file contains 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
async function enviarScript(scriptText){ | |
const lines = scriptText.split(/[\n\t]+/).map(line => line.trim()).filter(line => line); | |
main = document.querySelector("#main"), | |
textarea = main.querySelector(`div[contenteditable="true"]`) | |
if(!textarea) throw new Error("Não há uma conversa aberta") | |
for(const line of lines){ | |
console.log(line) | |
This file contains 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
' Definição das variáveis | |
Dim strSeverity, strComputer, strDomain, strEvent, strDescr, strRiseTime | |
Dim strKLCSAKEventTaskDisplayName, strKLProduct, strKLVersion, strHostIP, strHostConnIP | |
Dim strMessage, strTelegramBotToken, strTelegramChatID, objShell, strURL, strJSONMessage, strJSONMessage1 | |
Dim fso, logFile, strLogFile | |
' Recebendo os valores das variáveis de ambiente | |
strSeverity = WScript.Arguments(0) | |
strComputer = WScript.Arguments(1) | |
strDomain = WScript.Arguments(2) |
This file contains 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
' Definição das variáveis | |
Dim strSeverity, strComputer, strDomain, strEvent, strDescr, strRiseTime | |
Dim strKLCSAKEventTaskDisplayName, strKLProduct, strKLVersion, strHostIP, strHostConnIP | |
Dim strMessage, strTelegramBotToken, strTelegramChatID, objShell, strURL, strJSONMessage, strJSONMessage1 | |
Dim fso, logFile, strLogFile | |
Class JSONStringEncoder | |
Private m_RegExp | |
This file contains 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 | |
#service monitoring | |
# Verifica o serviço HTTPs | |
/bin/netstat -tulpn | awk '{print $4}' | awk -F: '{print $2}' | grep ^443$ > /dev/null 2>/dev/null | |
a=$(echo $?) | |
if test $a -ne 0 | |
then | |
echo "http service down" | mail -s "HTTP Service DOWN and restarted now" root@localhost | |
/etc/init.d/grafana-server start > /dev/null 2>/dev/null |
OlderNewer