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
import os | |
import google.auth | |
from google.auth.transport.requests import Request | |
from google.oauth2.credentials import Credentials | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from googleapiclient.discovery import build | |
# Define o escopo e o ID do canal | |
SCOPES = ['https://www.googleapis.com/auth/youtube.force-ssl'] | |
CHANNEL_ID = 'UCpypU2XLYmOsf36xgcgrW3w' |
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
function push_pagespeedinsights() | |
{ | |
var retorno = buscaDados('https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url=https://www.letras.mus.br'); | |
var valor = retorno.ruleGroups.SPEED.score; | |
var doc = SpreadsheetApp.getActiveSpreadsheet(); | |
var temp = doc.getSheetByName("MAIN DASHBOARD"); | |
var cell = temp.getRange("M24"); |
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
while true; do cat /proc/net/dev; sleep 1; done | awk -v dc="date \"+%T\"" '/eth0/{i = $2 - oi; o = $10 - oo; oi = $2; oo = $10; dc|getline d; close(dc); if (a++) printf "%s %8.2f kbps in %8.2f kbps out\n", d, i/1000*8, o/1000*8}' |
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
10.0.55.27 betelgeuseint cephmon1 | |
10.0.55.25 arcturusint | |
10.0.55.22 siriusint | |
10.0.55.21 aldebaranint | |
10.0.55.23 canopusint | |
10.0.55.26 vegaint | |
10.0.55.24 alfacentauroint | |
10.0.55.28 atlas2int | |
10.0.55.29 atlas1int cephmon2 | |
10.0.55.30 antaresint cephmon3 |
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
[mysql] | |
default-character-set=utf8 | |
socket=/var/run/mysqld/mysqld.sock | |
[mysqld_safe] | |
log-error=/var/log/mysqld.log | |
pid-file=/var/run/mysqld/mysqld.pid | |
nice=0 | |
[mysqld] |
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 -e | |
#sugestoes do vital | |
echo "86400" > /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established | |
echo "40000" > /sys/module/nf_conntrack/parameters/hashsize | |
#nf_conntrack | |
echo 0 > /proc/sys/net/netfilter/nf_conntrack_checksum | |
echo 500000 > /proc/sys/net/netfilter/nf_conntrack_max | |
echo 0 > /proc/sys/net/netfilter/nf_conntrack_events |
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 | |
if [ -z "$1" ]; then | |
echo | |
echo usage: $0 network-interface | |
echo | |
echo e.g. $0 eth0 | |
echo | |
echo shows packets-per-second |
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
<body bgcolor="black" style="color:green;font-family:courier;font-size:20pt"> | |
<?php | |
$html=file_get_contents('http://battlelog.battlefield.com/bf4/servers/show/PC/80514707-1688-47a2-b5b8-60a808142d52/FtS-1-Conquest-1200T-HC-Fast-Respawn/'); | |
$htmlarray=explode("\n", $html); |
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
================================= | |
NAO OK - corrompe binarios | |
================================= | |
iMac:~ samvignoli$ traceroute s2.sscdn.co | |
traceroute to s2.sscdn.co (200.177.229.205), 64 hops max, 52 byte packets | |
1 b3dd6001 (179.221.96.1) 10.691 ms 9.028 ms 10.533 ms | |
2 c91180fe (201.17.128.254) 11.403 ms 11.045 ms 9.684 ms | |
3 embratel-t0-5-2-0-tacc01.bhe.embratel.net.br (200.255.9.1) 11.209 ms 13.187 ms |