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/perl | |
use FileHandle; | |
use IPC::Open2; | |
if (! (-e "tags")) { | |
print "Cannot find tags, will run\n"; | |
$tagCmd = "ctags *.h *.c"; | |
print "\t$tagCmd\n"; | |
system($tagCmd) && die ("Make sure ctags is installed\n"); |
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 | |
bindir=/home/grisha/git/rtbkit/build/x86_64/bin | |
export bindir | |
router="router_runner" | |
monitor="monitor_service_runner" | |
logger="data_logger_ex" | |
config="agent_configuration_service_runner" | |
banker="banker_service_runner" | |
augmentor="augmentor_ex_runner" |
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/perl | |
# See http://debedb.blogspot.com/2007/02/poor-mans-tracepoints-and-call-sequence.html | |
use FileHandle; | |
use IPC::Open2; | |
if (! (-e "tags")) { | |
print "Cannot find tags, will run\n"; | |
$tagCmd = "ctags *.h *.c"; |
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
package main | |
import ( | |
"bytes" | |
"encoding/base64" | |
"encoding/binary" | |
"fmt" | |
"os" | |
) |
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' |
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
#!/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
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
// 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
<?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"/> |
OlderNewer