Skip to content

Instantly share code, notes, and snippets.

View nowak-ninja's full-sized avatar
🏡
Working from home

Sebastian Nowak nowak-ninja

🏡
Working from home
View GitHub Profile
@nowak-ninja
nowak-ninja / mbank_delete_all_messages.js
Last active September 22, 2018 15:22
Delete all messages in mBank
window.setInterval(
function() {
var button = jQuery('.delete-message');
var message = jQuery('.inbox-row').first();
if (button.length > 0) {
button.click();
} else if (message.length > 0) {
message.click();
}
@nowak-ninja
nowak-ninja / nettest.sh
Created November 5, 2015 20:03 — forked from alghanmi/nettest.sh
Test Connection Speed
#!/bin/bash
echo "Network speed testing..."
cachefly=$( wget -O /dev/null http://cachefly.cachefly.net/100mb.test 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' )
echo "Download speed from CacheFly: $cachefly "
linodeatl=$( wget -O /dev/null http://atlanta1.linode.com/100MB-atlanta.bin 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' )
echo "Download speed from Linode, Atlanta GA: $linodeatl "
linodedltx=$( wget -O /dev/null http://dallas1.linode.com/100MB-dallas.bin 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' )
echo "Download speed from Linode, Dallas, TX: $linodedltx "
linodejp=$( wget -O /dev/null http://tokyo1.linode.com/100MB-tokyo.bin 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' )