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
# jan/16/2019 11:20:26 by RouterOS 6.43.8 | |
# software id = 5S5F-0ISV | |
# | |
# model = 951G-2HnD | |
/interface ethernet | |
set [ find default-name=ether1 ] comment=UPLINK speed=100Mbps | |
set [ find default-name=ether2 ] comment=NET speed=100Mbps | |
set [ find default-name=ether3 ] comment=NET speed=100Mbps | |
set [ find default-name=ether4 ] comment=TV speed=100Mbps | |
set [ find default-name=ether5 ] comment=PROBE speed=100Mbps |
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
<style> | |
div.counter-container { | |
color: #333; | |
text-align: center; | |
background-color: #ffd54f; | |
padding: 1em; | |
maring: 1em; | |
} | |
h1.counter { |
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
# show counters interface ethernet 1/0/28 | |
eth1/0/28 counters | |
rxHCTotalPkts : 2000990451 | |
txHCTotalPkts : 140111769 | |
rxHCUnicastPkts : 315903239 | |
txHCUnicastPkts : 140016860 | |
rxHCMulticastPkts : 1685054808 | |
txHCMulticastPkts : 72747 | |
rxHCBroadcastPkts : 32403 |
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
#!/usr/bin/expect | |
log_file switches.log | |
set command "show unit" | |
set prompt "#" | |
set password "password" | |
set switches [list 8.8.8.8 8.8.4.4] | |
package require Expect |
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 | |
//SELECT `id`, `pin` FROM `customersview` WHERE `ssn` != '' AND `deleted` = '0' AND `email` != '' ORDER BY `id` | |
//echo htmlentities($row['_message']); | |
$mysqli_remote = new mysqli("remote_host", "user", "pass", "db"); | |
$mysqli_local = new mysqli("localhost", "user", "pass", "db"); | |
/* check connection */ |
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 | |
cmd="${0##*/}" | |
usage() { | |
cat >&2 <<EOI | |
usage: $cmd [ -h ] | |
Output column definitions: | |
cpu # of the cpu |
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 | |
exec 1> >(logger -s -t $(basename $0)) 2>&1 | |
# VLAN 12 LAN | |
SLAVE_INTERFACE="eth6" | |
BONDING_INTERFACE="bond0" | |
echo -$SLAVE_INTERFACE > /sys/class/net/$BONDING_INTERFACE/bonding/slaves | |
echo +$SLAVE_INTERFACE > /sys/class/net/$BONDING_INTERFACE/bonding/slaves |
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\n\$data =\n"|@cat:{$variable|@var_export:true|@cat:";\n?>"}|@highlight_string:true} |
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
echo "/ip firewall filter" ; whois -h whois.radb.net -- '-i origin AS32934' | grep '^route:' | sort -n | uniq | awk '{print "add action=drop chain=forward comment=Facebook dst-address="$2}' | |
echo "/ipv6 firewall filter" ; whois -h whois.radb.net -- '-i origin AS32934' | grep '^route6:' | sort -n | uniq | awk '{print "add action=drop chain=forward comment=Facebook dst-address="$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
find -type f -name "*.jpg" -exec jpegoptim --strip-all {} \; |