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
import java.sql.Array; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Map; |
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
#!/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 | |
from packaging import version | |
import sys | |
# files produced from pom.xml by | |
# mvn dependency:list -f pom.xml | grep "] " | sed 's/.*]\ \ \ \ //g' | sort | uniq | |
# arg1 - current file | |
# arg2 - "should-be" file | |
cur = open(sys.argv[1]) |
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
import arrow | |
def perc(n): | |
try: | |
return "%0.1f" % (float(n)/tot*100) | |
except Exception, e: | |
raise Exception("Error in %s (%s): %s" % (n, type(n), e)) | |
f = open('/tmp/rows.csv') | |
tot = 0 |
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
import argparse | |
import os | |
import sets | |
import subprocess | |
import sys | |
import tempfile | |
""" | |
Assumes procyon: |
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 | |
import pprint | |
import os | |
import sys | |
import hashlib | |
import sets | |
import argparse | |
import signal |
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
# Configuration file for ISC 2.0 vmnet-dhcpd operating on vmnet2. | |
# | |
# This file was automatically generated by the VMware configuration program. | |
# See Instructions below if you want to modify it. | |
# | |
# We set domain-name-servers to make some DHCP clients happy | |
# (dhclient as configured in SuSE, TurboLinux, etc.). | |
# We also supply a domain name to make pump (Red Hat 6.x) happy. | |
# |
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/csh | |
foreach x (`etcdctl ls --recursive | sort -r | uniq`) | |
etcdctl rmdir $x | |
end | |
etcdctl ls --recursive / |
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
import time | |
import os | |
import sys | |
import shutil | |
from subprocess import Popen | |
reader = 'open' | |
# Inventory, Taxes_and_Licenses, Advertising, Insurance, Interest, | |
# Rental, Commissions, Contract Labor, Repairs and Maintenance, |
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
// formMarshaller provides functionality to marshal/unmarshal | |
// data to/from HTML form format. | |
type formMarshaller struct{} | |
func (j formMarshaller) Marshal(v interface{}) ([]byte, error) { | |
retval := "" | |
vPtr := reflect.ValueOf(v) | |
vVal := vPtr.Elem() | |
vType := reflect.TypeOf(vVal.Interface()) |