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
| ash() { | |
| ARGS="$@" | |
| IFS=" " | |
| set -- $ARGS | |
| ARGSARRAY=( $@ ) | |
| HOST=${ARGSARRAY[0]} | |
| IFS="-" | |
| set -- ${HOST} | |
| MYARRAY=( $@ ) | |
| SERVERTYPE=${MYARRAY[0]} |
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 | |
| import getopt | |
| from getopt import GetoptError | |
| import os | |
| """ | |
| Python script that runs one-liner python scripts similarly to how Perl runs them |
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 | |
| from __future__ import division | |
| from __future__ import print_function | |
| #Copyright 2022 Drew Gulino | |
| ##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 2 of the License, or | |
| ## (at your option) any later version. | |
| ## | |
| ## This program is distributed in the hope that it will be useful, |
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 2007 Drew Gulino | |
| ##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 2 of the License, or | |
| ## (at your option) any later version. | |
| ## | |
| ## This program is distributed in the hope that it will be useful, | |
| ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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 escript | |
| %% -*- erlang -*- | |
| %%! -smp disable | |
| %% Author: Drew Gulino | |
| -module(tgraph). | |
| -export([main/1]). | |
| main(CmdLine) -> | |
| OptSpecList = option_spec_list(), |
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
| require Logger | |
| defmodule Tgraph do | |
| def main(args) do | |
| Logger.info inspect args | |
| options = parse_args(args) | |
| f = Dict.get(options,:file,:stdio) | |
| case is_atom(f) do | |
| true -> f |
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 ruby | |
| #osx: brew install diffuse | |
| #linux rpm: rpm install diffuse | |
| require 'optparse' | |
| require 'pp' | |
| options = {} | |
| OptionParser.new do |parser| | |
| parser.define_head "Distributed Diff" | |
| parser.on('-h', '--hosts HOSTS') do |v| |
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
| { | |
| "meta": { | |
| "theme": "onepage" | |
| }, | |
| "basics": { | |
| "name": "Drew Gulino", | |
| "label": "Senior Software Developer (SRE)", | |
| "picture": "", | |
| "email": "[email protected]", | |
| "phone": "", |
OlderNewer