Skip to content

Instantly share code, notes, and snippets.

Avatar

Samuel Vignoli samvignoli

  • Studio Sol
  • Belo Horizonte
View GitHub Profile
View google app script PAGESPEED
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");
View simplebandwidth.sh
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}'
View hostsmiami
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
View my.slave.cnf
[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]
View tuning de rede
#!/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
@samvignoli
samvignoli / netpps.sh
Created Nov 5, 2015 — forked from joemiller/netpps.sh
shell: quick linux scripts for showing network bandwidth or packets-per-second
View netpps.sh
#!/bin/bash
if [ -z "$1" ]; then
echo
echo usage: $0 network-interface
echo
echo e.g. $0 eth0
echo
echo shows packets-per-second
View qualmapaestarolando.php
<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);
View gist:7983ccf8b8ea52a9a666
=================================
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
You can’t perform that action at this time.