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() |
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
( | |
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
( | |
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
( | |
parent=$( pstree -a -A -p | grep ndtd | grep -v grep | 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 ; |
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 | |
# Current prod release (first ndt-ssl release) | |
SERVER=ndt.iupui.mlab4v4.atl04.measurement-lab.org | |
# Latest ndt-ssl development. | |
SERVER=ndt.iupui.mlab2v4.nuq0t.measurement-lab.org | |
# Previous prod release (non-ssl) - 3.7.0.1 | |
SERVER=ndt.iupui.mlab3v4.nuq1t.measurement-lab.org | |
PORT=3001 | |
# PORT=4649 # For mlab2.nuq0t and port=4659 for ssl. |
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
bash-4.1# gdb python | |
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6) | |
... | |
[snip] | |
... | |
Reading symbols from /usr/bin/python...Reading symbols from /usr/lib/debug/usr/bin/python2.6.debug...done. | |
done. | |
(gdb) attach 12168 | |
Attaching to program: /usr/bin/python, process 12168 | |
Reading symbols from /usr/lib/libpython2.6.so.1.0...Reading symbols from /usr/lib/debug/usr/lib/libpython2.6.so.1.0.debug...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
cd_func () | |
{ | |
local x2 the_new_dir adir index | |
local -i cnt | |
if [[ $1 == "--" ]]; then | |
dirs -v | |
return 0 | |
fi |
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
# Imports the Google Cloud client library | |
from google.cloud import datastore | |
# Instantiates a client | |
datastore_client = datastore.Client('mlab-staging') | |
# The kind for the new entity | |
kind = 'Task' | |
# The name/ID for the new entity |
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
bash-4.1# cat increase.sh | |
#/bin/bash | |
c=1 | |
while true ; do | |
echo RUNNING `date --rfc-3339=seconds` - $c | |
for minute in 1 2 3 4 ; do | |
for i in `seq 1 $c` ; do | |
./web100clt -n ndt.iupui.mlab1.iad1t.measurement-lab.org -p 3001 --disablemid --disablec2s --disablesfw & | |
done |
OlderNewer