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
( | |
parent=$( pstree -a -A -p | grep ndtd | head -1 | tr ',' ' ' | awk '{print $2}' ) | |
ps ax -opid,args \ | |
| grep ndtd \ | |
| grep -v grep \ | |
| awk 'BEGIN { | |
start_time_index = 22 ; | |
utime_index = 14 ; | |
stime_index = 15 ; | |
reset = 0; |
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
( | |
vserver iupui_ndt exec bash <<\EOF | |
ps ax -opid,args \ | |
| grep ndtd \ | |
| grep -v grep \ | |
| awk 'BEGIN { | |
start_time_index = 22 ; | |
# Read the start_time of the awk process. | |
# All older processes will have an earlier (smaller) start_time. | |
"cat /proc/self/stat" |& getline result ; split(result, proc) ; |
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
#!/bin/bash | |
set -x | |
set -e | |
URLBASE='http://nagios.measurementlab.net/baseList?show_state=1&plugin_output=1' | |
for service in ndt ndt_ssl ; do | |
curl -s --anyauth --basic --user $USERNAME:$PASSWORD \ | |
"${URLBASE}&service_name=$service" \ | |
| grep "$service 0" \ |
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
package main | |
import "github.com/gopherjs/gopherjs/js" | |
import "honnef.co/go/js/dom" | |
var imagePath = "resources/image.png" | |
func main() { | |
//draw_withGopherJS() | |
//draw_withDOM() |
NewerOlder