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()) |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="12"> | |
<profile kind="CodeFormatterProfile" name="GoClipse" version="12"> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/> | |
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/> |
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
// See https://play.golang.org/p/qK05tDYCFR | |
package main | |
import "fmt" | |
type Make struct { | |
Name string | |
} |
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
class WrappedStreamingBody: | |
""" | |
Wrap boto3's StreamingBody object to provide enough | |
fileobj functionality so that GzipFile is | |
satisfied. Sometimes duck typing is awesome. | |
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/sh | |
set -x | |
if [ "$1" == "" ]; then | |
echo "Usage: $0 <REPO_PATH> [<PROJECT_ROOT>] [<branch>]" | |
exit 1 | |
fi | |
repo=$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 base64 | |
import struct | |
import sys | |
def main(): | |
""" | |
http://www.lexa.ru/programs/mod-uid-eng.html | |
Sample input: 'F705D40AACC48C54571D9D7A02CAFA59' | |
yields sample output: 'CtQF91SMxKx6nR1XWfrKAg==' |
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 base64 | |
import struct | |
import sys | |
def main(): | |
""" | |
http://www.lexa.ru/programs/mod-uid-eng.html | |
Sample input: 'CtQF91SMxKx6nR1XWfrKAg==' | |
yields sample output: 'F705D40AACC48C54571D9D7A02CAFA59' |