This file contains hidden or 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
function duf { | |
du -s "$@" | sort -n | while read size fname; | |
do for unit in k M G T P E Z Y; | |
do if [ $size -lt 1024 ]; | |
then echo -e "${size}${unit} ${fname}"; | |
break; | |
fi; | |
size=$((size/1024)); | |
done; | |
done; |
This file contains hidden or 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
require 'watir-webdriver' | |
puts "Running Scan" | |
scan = %x(sudo nmap -PR -sn 10.208.0.0/22 | grep Cisco -B 2 | grep Nmap | sed 's/Nmap scan report for //') | |
puts "Running Webdriver" | |
noname = Array[] | |
browser = Watir::Browser.new | |
scan.lines.each do |host| | |
browser.goto "http://Cisco:Cisco@#{host}" |
This file contains hidden or 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
[ivr-2] | |
exten => 2,1,Macro(blkvm-clr,) | |
exten => 2,n,TrySystem(wget --spider "http://10.10.0.6:49451/data_request?id=lu_action&output_format=xml&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=2") | |
exten => 3,1,Macro(blkvm-clr,) | |
exten => 3,n,TrySystem(wget --spider "http://10.10.0.6:49451/data_request?id=lu_action&output_format=xml&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=4") | |
exten => 4,1,Macro(blkvm-clr,) | |
exten => 4,n,TrySystem(wget --spider "http://10.10.0.6:49451/data_request?id=lu_action&output_format=xml&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=10") |
This file contains hidden or 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
import os | |
import xbmc | |
xbmc.executescript('special://home/scripts/playeractions.py') | |
xbmc.executescript('special://home/scripts/idletime.py') |