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 | |
# | |
# Watch current directory (recursively) for file changes, and execute a command | |
# when a file or directory is created, modified or deleted. | |
# | |
# Modified from the original by: Senko Rasic <[email protected]> | |
# https://gist.github.com/senko/1154509 | |
# | |
# Requires: | |
# bash |
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
body#home { background: none; } | |
div#left { display: none; width: 0px; } | |
div#main { padding-left: 100px !important; } | |
#main .tabs { padding-left: 12px; margin-top: 20px; } |
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
#!/usr/bin/env python | |
import sys | |
UNIT_FACTORS = {'B': 0, 'K': 1, 'M': 2, 'G': 3, 'T': 4, 'P': 5} | |
def bytes_multiplier(unit): | |
if UNIT_FACTORS.has_key(unit): | |
return 1024 ** UNIT_FACTORS[unit] | |
else: |