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
1.0.16.0/20 | |
1.0.64.0/18 | |
1.1.64.0/18 | |
1.5.0.0/16 | |
1.21.0.0/16 | |
1.33.0.0/16 | |
1.66.0.0/15 | |
1.72.0.0/13 | |
1.112.0.0/14 | |
14.0.8.0/22 |
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
0.0.0.0/8 | |
1.0.0.0/20 | |
1.0.32.0/19 | |
1.0.128.0/17 | |
1.1.0.0/18 | |
1.1.128.0/17 | |
1.2.0.0/15 | |
1.4.0.0/16 | |
1.6.0.0/15 | |
1.8.0.0/13 |
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 | |
# Copyright (C) 2013 Yasunobu OKAMURA | |
# GPLv3 or later | |
import argparse | |
import ipaddress # pip install py2-ipaddress | |
def inverse_range(addr_range): | |
""" |
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 argparse | |
import sys | |
import Bio.SeqIO | |
def _main(): | |
parser = argparse.ArgumentParser(description="Re-format fasta file") | |
parser.add_argument('input', default=sys.stdin, nargs='?') | |
parser.add_argument('output', default=sys.stdout, nargs='?') |
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
# -*- shell-script -*- | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# ==== system configuration ==== | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
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
#!/usr/bin/env python | |
import argparse | |
import pysam | |
def _main(): | |
parser = argparse.ArgumentParser(description="Count mapped reads and unmapped reads") | |
parser.add_argument('bam', nargs='+') | |
options = parser.parse_args() |
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
on showgrowl(theNotify, theImage, theTitle, theMessage) | |
tell application "Growl" | |
-- Make a list of all the notification types | |
-- that this script will ever send: | |
set the allNotificationsList to ¬ | |
{"Login", "Logout", "Present", "Text Message", "Invitation", "File Transfer Completed"} | |
-- Make a list of the notifications | |
-- that will be enabled by default. | |
-- Those not enabled by default can be enabled later |
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 argparse | |
import twitter | |
def _main(): | |
parser = argparse.ArgumentParser(description="Tweet something") | |
parser.add_argument('status') | |
options = parser.parse_args() |
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/sh | |
#. $MUNIN_LIBDIR/plugins/plugin.sh | |
TEMP=`ipmitool sensor|grep 'Temp'` | |
NUM=`echo "$TEMP"|wc -l` | |
if [ "$1" == "config" ];then | |
cat <<EOF | |
graph_title Temperatures |
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/sh | |
if [ ! "$3" ]; then | |
echo $0 QTPREFIX APP INDENTIFY | |
exit 1 | |
fi | |
prefix=$1 | |
app=$2 | |
id=$3 |