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 gnuplot | |
# Extract the values into a csv, I tend to save only hour:minutes:seconds and the milliseconds using awk | |
# Example: grep TIMING-SA /var/log/maillog | awk '{printf "%s,%s\n", $3, $11}' | |
# | |
# Then set the csv filename in envrionment before running script. | |
# export GNUPLOT_NAME=sa_timing.csv | |
# ./gnuplot.gnu | |
reset |
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 | |
# http://cmcenroe.me/2014/12/05/days-in-month-formula.html | |
from __future__ import print_function | |
from argparse import ArgumentParser | |
import math | |
parser = ArgumentParser() | |
parser.add_argument( |
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
# Example: sudo tail -F /var/log/maillog|grep -E '(stat=|CLEAN|Blocked SPAM)'|colout -T ~/.colout -t maillog | |
# By Stefan Midjich | |
def theme(): | |
bright_black = '#002b36' | |
black = '#073642' | |
bright_green = '#586e75' | |
bright_yellow = '#657b83' | |
bright_blue = '#839496' | |
bright_cyan = '#93a1a1' |
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
# Colout Dwarf Fortress theme for Solarized terminals | |
# First install colout, go to https://github.com/nojhan/colout | |
# | |
# mkdir ~/.colout | |
# cp colout_df.py ~/.colout/ | |
# tail -0f df/gamelog.txt | colout -T ~/.colout -t df | |
# | |
# I just started this for my own sake, please do add your own colors, regexes and stuff. | |
# By Stefan Midjich |
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/python -tt | |
# (c) 2012, Stefan Midjich | |
# Written by Stefan Midjich <[email protected]> | |
# | |
# This module was written for Ansible. | |
# It doesn't support all of Homebrew yet. | |
# | |
# Ansible is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
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
/*sex.c*/ | |
/* Original author unknown. Presumably this is public domain by now. | |
* If you are the original author or know the original author, please | |
* contact <[email protected]> | |
* | |
* Orphan code cleaned up a bit by Nick Johnson <[email protected]> | |
* Completely rewrote how word wrapping works and added -w flag. | |
*/ |
NewerOlder