Skip to content

Instantly share code, notes, and snippets.

View hantuzun's full-sized avatar
🥽
Burnt out

Han Tuzun hantuzun

🥽
Burnt out
View GitHub Profile
@hantuzun
hantuzun / data.js
Last active February 9, 2023 08:27
turkey relief dao data
// All the cryptocurrency networks must be listed here
const NETWORKS = [
'Bitcoin',
'Ethereum',
'Avalanche',
'Binance',
'Polygon',
'Solana',
'Cosmos',
'Polkadot',
@hantuzun
hantuzun / git_config.sh
Created March 25, 2020 08:54
Set Git author config and optionally update commit author
#!/bin/sh
# Set git author
export NAME = "Han Tuzun"
export EMAIL = "mail@hantuzun.com"
export GITHUB_USER = "hantuzun"
git config --global user.name $NAME
git config --global user.email $EMAIL
git config --global github.user $GITHUB_USER
@hantuzun
hantuzun / scam_of_sourcex_.md
Last active January 9, 2019 15:28
How we've determined Sourcex has been scammed and how we've connected the identities of the scammer

Summary

In this gist, we explain how we've determined an Amoveo community member Sourcex is right on his claims of his VEO stolen on a OTC trade. The scammer tried to use A1 Exchange to sell the stolen VEO, and we have frozen this VEO to return it back to Sourcex.

A1 Exchange is involved in this incident to keep the ones like this scammer out of using our exchange, or scamming more people on Amoveo community. We believe helping Sourcex in this case is the right thing to do.

The Incident

Sourcex's public explanation of the incident:

cluster_name = "tfx"
dcos_version = "1.10.0-sg1"
ssh_pub_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDjx8jJPDFNUVZSgKKQEldjqWEMUW8kD3swqQXkgAXEq4fUPzUk0TfzIYQleN8pidkPU8dsVBXQ69PqlgD0OWnuA7KvDNaZs5sSUa+MybK5HRUwopUWKUBFcuxZ+c68Jll3+BElMKtilOdrf+GeVtS1HxlELMMbccpqn0IKf72UgdDMKUzaCsFI8By50oWQljYye8mSuhOYJaBmhsoWNIF0UvzXfBIVH0y3WVJ5w1h5J4xYpb33B5jsqlecMONY4iwZTB2JWkXMH9vUAVgjnQBLXZwOAp1KgWNlBXiJxYG+RyxHOtk2c9/dKTSed8dJoFPXJetxUXt293Mt9xiXzL3+t+NK8w2kDVOdld0Rd2KcZpcUWBD5bG/EliDDhvcKNUYMFee7Y1O4RnNnSHjjeiWTYHDBpNciL6Z1SAZ9kMigg9mtziaxwh+eMec4i+RSjFFPzz1McRZtZPleFkFr0PzUcNV99hN3jN1tCsgdT33I57lU1ZaCVou7f1teFU3HQSvaTABq8EAf6/bSBbBu8wjr7EUHdmvWtrhvEtP2PCKbiuiBngKeHIidNaVPZjnoMM+ts2UAmnlW8TVCtcUytrNAuam06x3Pq10Um/FWdgQTkGEJ6F+Y8Rm18yOVJNOhvlw9V/Mda1ApGqrpkBlZBQmu7x1niIaf0jiWhVU/9gUT9w== admin@suggestgrid.com"
os = "centos_7.3"
azure_region = "North Europe"
owner = "sg"
azure_admin_username = "sg-test"
azure_master_instance_type = "Standard_D1_v2"
azure_agent_instance_type = "Standard_D1_v2"
azure_public_agent_instance
@hantuzun
hantuzun / add-spark-agents.patch
Created December 13, 2017 09:22
add-spark-agents.patch
diff --git a/dcos_installer/action_lib.py b/dcos_installer/action_lib.py
index d47821d8..d6690c68 100644
--- a/dcos_installer/action_lib.py
+++ b/dcos_installer/action_lib.py
@@ -54,7 +54,8 @@ class ExecuteException(Exception):
def nodes_count_by_type(config):
total_agents_count = len(config.hacky_default_get('agent_list', [])) + \
- len(config.hacky_default_get('public_agent_list', []))
+ len(config.hacky_default_get('public_agent_list', [])) + \
@hantuzun
hantuzun / acs-1master.azuredeploy.json
Last active November 2, 2017 13:30
dcos-artifacts/testing/root/azure/acs-1master.azuredeploy.json
{
"contentVersion": "1.0.0.0",
"variables": {
"masterStorageAccountName": "[concat(variables('storageAccountBaseName'), 'mstr0')]",
"orchestratorName": "dcos",
"agentEndpointDNSNamePrefix": "[tolower(parameters('agentEndpointDNSNamePrefix'))]",
"agentsPublicLbBackendPoolName": "[concat(variables('orchestratorName'), '-agent-pool-', variables('nameSuffix'))]",
"masterCustomScript": "[concat('/bin/bash -c \"/bin/bash /opt/azure/containers/configure-mesos-cluster.sh ',variables('clusterInstallParameters'),' >> /var/log/azure/cluster-bootstrap.log 2>&1\"')]",
"enableNewStorageAccountNaming": "[parameters('enableNewStorageAccountNaming')]",
"masterSizes": [
pwd
$ PACKER_LOG=1 packer build \
-var 'client_id=xxx' \
-var 'client_secret=xxx' \
-var 'subscription_id=xxx' \
-var 'location=North Europe' \
-var 'managed_image_resource_group_name=playground3' \
-var 'managed_image_name=ExampleImage1' \
ubuntu_managed_image.json
2017/10/03 13:46:49 [INFO] Packer version: 1.1.0
#!/bin/bash
response_times=()
function r {
url=${1}
response_time=$( curl -w "%{time_total}\n" -o /dev/null -s $url )
response_times+=(${response_time})
printf "%.3f %s\n" ${response_time} ${url}
}
@hantuzun
hantuzun / error_handling_architecture.md
Last active August 18, 2016 06:46
Error Handling Structure for SuggestGrid