Skip to content

Instantly share code, notes, and snippets.

View ianrust's full-sized avatar

Ian Rust ianrust

View GitHub Profile
@ianrust
ianrust / pinglog.sh
Created April 14, 2018 22:22
one-liner ping log
nohup ping google.com | perl -nle 'BEGIN {$|++} print scalar(localtime), " ", $_' >> ispping.txt &
@ianrust
ianrust / ispperf.sh
Created April 14, 2018 20:47
Script for logging and monitoring isp ping, latency, and bandwidth. Borrowed from here: https://www.blackhatworld.com/seo/bash-script-to-check-isp-bandwidth-and-latency.257820/
#!/bin/bash
# The MIT License
#
# Copyright (c) 2010, MaDeuce
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell