This file contains 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 | |
# | |
# INSTALL | |
# ------- | |
# 1.) Create directory structure | |
# <base_dir> | |
# <base_dir>\bin | |
# <base_dir>\etc | |
# <base_dir>\log | |
# <base_dir>\rrd |
This file contains 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 | |
from collections import OrderedDict | |
from glob import glob | |
from multiprocessing import Process, Queue | |
from optparse import OptionParser | |
from os import getuid | |
from time import sleep | |
from traceback import format_exc |
This file contains 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 | |
# this program is placed into the public domain | |
# https://gist.github.com/microlinux/77feda4449a8041a19a7 | |
# | |
# THIS FILE MUST BE IN YOUR SYSTEM PATH | |
# | |
# defaults |
This file contains 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 | |
# a script to add commands to EdgeOS that show ethernet/vif traffic | |
# | |
# default measurement period is 5 seconds | |
# probably extendable to any interface in /proc/net/dev | |
# see 'shif.sh -h' for standalone use | |
# | |
# install: sudo chmod 755 shif.sh | |
# sudo ./shif.sh install |
This file contains 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
def get_command_output(timeout): | |
"""Reads command output from stdin and returns a list of lines. | |
Acks ('done' or 'error') are filtered out. Thus, commands | |
which produce no other output will result in an empty list. | |
Args: | |
timeout (int|float): Seconds to wait for output. | |
Returns: |
This file contains 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
"""3/21/2018 DEVELOPMENT HAS MOVED TO https://github.com/microlinux/tello""" | |
"""License. | |
Copyright 2018 Todd Mueller <firstnamelastname@gmail.com> | |
This program 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 | |
(at your option) any later version. |
This file contains 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 | |
# [user@server ~]$ sping.sh 70.120.121.0/29 | |
# 70.120.121.1 down | |
# 70.120.121.2 up | |
# 70.120.121.3 up | |
# 70.120.121.4 up | |
# 70.120.121.5 up | |
# 70.120.121.6 up |
This file contains 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 | |
# This program requires the Python Tello module at https://github.com/microlinux/tello | |
import argparse | |
import curses | |
import tello # https://github.com/microlinux/tello | |
import time | |
import traceback |
This file contains 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
[exabgp.api] | |
ack = true | |
chunk = 1 | |
cli = true | |
compact = false | |
encoder = json | |
pipename = 'exabgp' | |
respawn = true | |
terminate = false |
This file contains 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 | |
""" | |
nfcpud: a daemon for killing abusive container processes on openvz nodes | |
requires: python daemon module (centos: yum install python-daemon) | |
ncpud measures average process cpu usage over 5 second intervals. based on | |
parameters defined in config files, processes are killed if they meet any of 3 |
NewerOlder