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
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oCiphers=aes256-cbc,aes192-cbc,aes128-cbc,3des-cbc -l username 10.10.10.10 |
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/env python3 | |
import sys | |
from datetime import datetime | |
import requests | |
rs = { 'rs1': 'http://lg.mbix.ca/rs1.txt', | |
'rs2': 'http://lg.mbix.ca/rs2.txt'} | |
now = datetime.now() |
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/env python3 | |
import sys | |
from datetime import datetime | |
import requests | |
rs = { 'rs1': 'http://lg.mbix.ca/rs1.txt', | |
'rs2': 'http://lg.mbix.ca/rs2.txt'} | |
now = datetime.now() |
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 | |
IP="1.1.1.1" | |
while [ "$RETURNCODE" != "0" ]; do | |
ping -c 1 $IP &> /dev/null | |
RETURNCODE=$? # ; echo $? | |
sleep 1 | |
done | |
echo "Host $IP is up" | slackcat |
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/env python | |
# 00:00:5E:80:00:00 - 00:00:5E:FF:FF:FF | |
import random | |
from os.path import expanduser | |
def rand_mac(): | |
return "%02x:%02x:%02x:%02x:%02x:%02x" % ( | |
0, 0, 94, |
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
# simple & stupid implementation of bash completion for pdnsutil | |
# | |
# (C) 2016 Joerg Jungermann | |
# | |
# License: GPLv2 | |
# | |
# put it into /etc/bash_completion.d/ | |
# | |
# pdnsutil <TAB> - expands to known operations given as $1 | |
# pdnsutil YOUNAMEIT <TAB> - completes to available zones, might be expensive with many (>10000) zones |
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/perl | |
use strict; | |
use warnings; | |
use Time::HiRes; | |
my $reporting_interval = 5.0; # seconds | |
my $bytes_this_interval = 0; | |
my $start_time = [Time::HiRes::gettimeofday()]; | |
STDOUT->autoflush(1); |
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/perl | |
use strict; | |
use warnings; | |
use Time::HiRes; | |
my $reporting_interval = 5.0; # seconds | |
my $packets_this_interval = 0; | |
my $start_time = [Time::HiRes::gettimeofday()]; | |
STDOUT->autoflush(1); |
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 | |
# To use, create ~/.myimgurup, and put in your client ID and secret | |
# E.g.: | |
# CLIENT_ID=80238f8092 | |
# CLIENT_SECRET=239a482b034c820 | |
# | |
# Next run `base /path/to/my_imgurup.sh auth` to get your PIN and access token | |
# Finally, `base /path/to/my_imgurup.sh up /path/to/image.png` to upload an image |
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
--- bgplg.h.orig 2017-01-08 00:54:08.000000000 -0600 | |
+++ bgplg.h 2017-01-08 01:00:11.000000000 -0600 | |
@@ -47,6 +47,8 @@ | |
{ BGPCTL, "show", "ip", "bgp", "peer-as", NULL } }, \ | |
{ "show ip bgp empty-as", 0, 0, NULL, \ | |
{ BGPCTL, "show", "ip", "bgp", "empty-as", NULL } }, \ | |
+ { "show rib community", 1, 1, "<community>", \ | |
+ { BGPCTL, "show", "rib", "community", NULL } }, \ | |
{ "show ip bgp summary", 0, 0, NULL, \ | |
{ BGPCTL, "show", "ip", "bgp", "summary", NULL } }, \ |
NewerOlder