nmon is an excellent performance monitor for Linux systems.
Since Amazon Linux AMI is compatible with RHEL5, I've downloaded a binary RPM from:
http://pkgs.repoforge.org/nmon/
$ wget http://pkgs.repoforge.org/nmon/nmon-14g-1.el5.rf.i386.rpm
nmon is an excellent performance monitor for Linux systems.
Since Amazon Linux AMI is compatible with RHEL5, I've downloaded a binary RPM from:
http://pkgs.repoforge.org/nmon/
$ wget http://pkgs.repoforge.org/nmon/nmon-14g-1.el5.rf.i386.rpm
# coding: utf-8 | |
import sublime, sublime_plugin | |
import re | |
from unicodedata import normalize | |
class NormalizeSelectionCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
sels = self.view.sel() | |
for sel in sels: | |
selected = self.view.substr(sel) |
(function () { | |
var script = document.createElement("script"); | |
script.type = "text/javascript"; | |
script.src = "http://cdn.mathjax.org/mathjax/latest/MathJax.js"; // use the location of your MathJax | |
var config = 'MathJax.Hub.Config({' + | |
'extensions: ["tex2jax.js"],' + | |
'jax: ["input/TeX","output/HTML-CSS"]' + | |
'});' + | |
'MathJax.Hub.Startup.onload();'; |
http://jsperf.com/math-round-vs-hack/3 |
for i in {0..255} ; do | |
printf "\x1b[38;5;${i}mcolour${i}\n" | |
done |
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
function block() { | |
if ! [ "$1" = "" ] ; then | |
case $1 in | |
on) | |
sudo ipfw add 7890 deny ip from news.ycombinator.com to any | |
sudo -s "echo '127.0.0.1 facebook.com' >> /etc/hosts" | |
sudo -s "echo '127.0.0.1 www.facebook.com' >> /etc/hosts" | |
;; | |
off) | |
sudo ipfw del 7890 |
import sublime, sublime_plugin | |
class ReturnToVintageCommandModeListener(sublime_plugin.EventListener): | |
def on_activated(self, view): | |
if view.settings().get("is_widget") is None: | |
view.run_command('exit_insert_mode') |
chflags -R nouchg |
sudo ipfw add 7890 deny ip from news.ycombinator.com to any |