Alexander Tsankov
##Email alexander.tsankov@colorado.edu
| #!/bin/bash | |
| ##Note: will kill the top-most process if the $CPU_LOAD is greater than the $CPU_THRESHOLD. | |
| #################### FOR TEST PURPOSES ONLY STILL NEEDS TO BE TWEAKED!!!################# | |
| echo | |
| echo checking for run-away process ... | |
| CPU_LOAD=$(uptime | cut -d"," -f4 | cut -d":" -f2 | cut -d" " -f2 | sed -e "s/\.//g") | |
| CPU_THRESHOLD=75 # This needs to be customized for the server so it knows when to start killing programs. | |
| PROCESS=$(ps aux r) | |
| TOPPROCESS=$(ps -eo pid -eo pcpu -eo command | sort -k 2 -r | grep -v PID | head -n 1) |
Alexander Tsankov
##Email alexander.tsankov@colorado.edu
| group | population | income | |
|---|---|---|---|
| Under 05 | 21434 | 8 | |
| 05 to 09 | 20785 | 9 | |
| 10 to 14 | 19893 | 10 | |
| 15 to 19 | 21086 | 13 | |
| 20 to 24 | 21154 | 16 | |
| 25 to 29 | 21453 | 27 | |
| 30 to 34 | 19632 | 32 | |
| 35 to 39 | 19888 | 35 | |
| 40 to 44 | 20559 | 36 |
| sourcetype=* host="hack" | chart payplan by AppointmentTerm |
Peiman,
I’m in the Big Data class and I noticed an awesome library: Melopy which transforms python code and simple method calls into musical notes on a .wav file to be played through a media player.
I was wondering if you would like to collaborate on this idea for a final project:
| import sys | |
| import time | |
| import logging | |
| from watchdog.observers import Observer | |
| from watchdog.events import * | |
| #http://stackoverflow.com/questions/18599339/python-watchdog-monitoring-file-for-changes | |
| class MyHandler(LoggingEventHandler): | |
| #this creates the list of paths | |
| def __init__(self): |
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDe/P/RUSyyS9zlX4XU4fJkR5srQE3V+REJ81RSCp45154EHvItlBXcAtwPY1DEIljADiAaO/j51vP0Y2b9XQ++ccmCYkx3IhdQ/aRCGLTNeI2uw02fT38ekDgBBxpBvqgwl6tKd1uG2La+hFnFwScBJwbICL6ofuSwl50i3IW9XIx8eGIkImapPIfPrSYjNE5DJh3enQHqWsrPHQJroFCJl74/LFJiIEY7xdDmUD2WB2gRrw0erIC3+eQ+H4DRzbJ9oIb/3gg4cWlngJQBABvb4S5pXaJmjmy/bxqJJJsLklwjB/CG0GAMIMqItyxfbZnBBpT4kT3sXKwvF2CK38tz antsankov@Alexanders-MacBook-Air.local |
| import sys | |
| import time | |
| import logging | |
| from watchdog.observers import Observer | |
| from watchdog.events import * | |
| #http://stackoverflow.com/questions/18599339/python-watchdog-monitoring-file-for-changes | |
| class MyHandler(LoggingEventHandler): | |
| #this creates the list of paths | |
| def __init__(self): |
| #!flask/bin/python | |
| from flask import Flask,jsonify,request | |
| app = Flask(__name__) | |
| recipes = [ | |
| { | |
| 'id' : 1, | |
| 'title' : u'lasagna', |
I hereby claim:
To claim this, I am signing this object: