Skip to content

Instantly share code, notes, and snippets.

View tazija's full-sized avatar

Sergey Bushik tazija

View GitHub Profile
@tazija
tazija / gist:bd4baa3875a12becdff9
Created February 5, 2015 17:22
1) Rename S3Grantee.SWIFT_PREFIX to S3Grantee.TO_SWIFT, 2) Rename S3ForSwiftGrantee to S3ToSwiftGrantee, 3) Change "swift_" prefix to "swift:"
diff --git a/cloud-server/src/main/com/ddn/cloud/protocol/S3/request/PutACLRequestBuilderBase.java b/cloud-server/src/main/com/ddn/cloud/protocol/S3/request/PutACLRequestBuilderBase.java
index 9c9b999..11f2493 100644
--- a/cloud-server/src/main/com/ddn/cloud/protocol/S3/request/PutACLRequestBuilderBase.java
+++ b/cloud-server/src/main/com/ddn/cloud/protocol/S3/request/PutACLRequestBuilderBase.java
@@ -7,9 +7,8 @@ import com.ddn.cloud.protocol.S3.S3RequestParser;
import com.ddn.cloud.protocol.S3.errors.S3Error;
import com.ddn.cloud.protocol.S3.errors.S3FeatureDetails;
import com.ddn.cloud.protocol.S3.errors.S3MissingSecurityHeaderDetails;
-import com.ddn.cloud.protocol.S3.security.S3ACLParser;
import com.ddn.cloud.protocol.S3.security.S3EmailAddressGrantee;
@tazija
tazija / sp_columns
Created December 10, 2014 11:35
SELECT OBJECT_DEFINITION (OBJECT_ID(N'sys.sp_columns'));
create procedure sys.sp_columns
(
@table_name nvarchar(384),
@table_owner nvarchar(384) = null,
@table_qualifier sysname = null,
@column_name nvarchar(384) = null,
@ODBCVer int = 2
)
as
declare @full_table_name nvarchar(769) -- 384 + 1 + 384
@tazija
tazija / utils
Created June 12, 2014 15:47
benchmarking utils
#!/bin/bash
function log() {
echo -e '['$(date +'%a %Y-%m-%d %H:%M:%S')']' $1
}
function start_sar() {
for (( i=0; i < ${#servers[@]}; i++ ));
do
j=$((i+1))
@tazija
tazija / hosts
Last active August 29, 2015 14:02
benchmarking /etc/hosts
cat >> /etc/hosts << EOF
37.58.106.189 data1.altoros.com
37.58.106.190 data2.altoros.com
46.16.186.98 data3.altoros.com
46.16.186.100 data4.altoros.com
46.16.186.99 data5.altoros.com
46.16.186.102 data6.altoros.com
5.153.49.154 data7.altoros.com
46.16.186.101 data8.altoros.com
5.153.49.155 data9.altoros.com
@tazija
tazija / NuoDB multi-node automation scripts
Last active August 29, 2015 13:57
NuoDB multi-node automation scripts
# key=~/nike/id_rsa
key=~/Projects/Nike/docs/id_rsa
# http://doc.nuodb.com/display/doc/Obtaining+and+Installing+a+License
# my license https://gist.github.com/tazija/49d024f502a9409e7e52
license=`curl https://gist.githubusercontent.com/tazija/49d024f502a9409e7e52/raw/f2fbb8acdb15d66432c7b583087d9f91d15788c7/gistfile1.txt`
output=~/Downloads/nike/logs
domain="domain"
password="bird"
@tazija
tazija / NuoDB server & client nodes
Last active August 29, 2015 13:57
NuoDB server & client nodes
# public addresses
# i-a62ea1af
54.186.196.83 nuodb1
# i-bdf16cb4
54.186.196.76 nuodb2
# i-bcf16cb5
54.186.195.84 nuodb3
# i-bff16cb6
54.186.196.74 nuodb4
# i-c63e2bcf
@tazija
tazija / gist:9000897
Last active July 3, 2017 19:00
Couchbase multi-node automation scripts
# parameters
key=~/nike/id_rsa
workloads=~/nike/src/ycsb_workload/src/main/workloads/couchbase/*.workload
workload="sync"
parameters="-s -load"
servers=("54.84.155.248" "54.84.155.243" "54.84.155.238" "54.84.152.142" "54.84.149.175" "54.84.148.93" "54.84.144.119" "54.84.143.11" "54.84.139.209")
clients=("54.84.152.98" "54.84.172.51" "54.84.155.236" "54.84.112.52" "54.84.155.253" "54.84.144.78" "54.84.152.67" "54.84.155.242" "54.84.152.82")
# issue with "54.84.152.82", mongos xlarge "54.84.171.248"
output=~/nike/logs
@tazija
tazija / gist:7582608
Created November 21, 2013 14:37
IBM DB2 installation
ssh build@p62
# download ibm db2 from http://www-01.ibm.com/software/data/db2/express/download.html?S_CMP=ECDDWW01&S_TACT=ACDB201
# already downloaded to /home/build/v10.5fp1_linuxx64_expc.tar.gz
wget https://www6.software.ibm.com/sdfdl/v2/regs2/db2pmopn/db2_v105/expc/Xa.2/Xb.aA_60_-idUbe72VxKCcfGlVkY2FyZGHI94aE_NmzzQ/Xc.db2_v105/expc/v10.5fp1_linuxx64_expc.tar.gz/Xd./Xf.LPr.D1vk/Xg.7307192/Xi.swg-db2expressc/XY.regsrvs/XZ.J_XQifzDURis_laoiIbjhO4rvJI/v10.5fp1_linuxx64_expc.tar.gz
tar -xvzf v10.5fp1_linuxx64_expc.tar.gz
# run installation wizard, which installs to /opt/ibm/db2/V10.5
cd expc/; sudo ./db2_install
cd ..; rm -rf expc/