profile
viewpoint
Amir Arsalan amirarsalan Tehran, Iran Site Reliability Engineer at Quiz of Kings

amirarsalan/awesome-scalability 3

:bookmark: Everyday-Updated Reading List For Designing High Scalability :cherries:, High Availability :fire:, High Stability :mount_fuji: Back-End Systems - Pull Requests Are Greatly Welcome :two_men_holding_hands: I Hope You Will Find This Project Helpful :four_leaf_clover: Please Help Me Share It To More People :heart: Thank You - 谢谢 - धन्यवाद - ধন্যবাদ - Спасибо - شكرا - Merci - Gracias - Danke - ありがとう - Cảm Ơn! :bow:

amirarsalan/awesome-cheatsheets 2

📚 Awesome cheatsheets for popular programming languages, frameworks and development tools. They include everything you should know in one single file.

amirarsalan/goproxy 1

Proxy is a high performance HTTP(S), websocket, TCP, UDP, Socks5 proxy server implemented by golang. Now, it supports chain-style proxies,nat forwarding in different lan,TCP/UDP port forwarding, SSH forwarding.Proxy是golang实现的高性能http,https,websocket,tcp,socks5代理服务器,支持内网穿透,链式代理,通讯加密,智能HTTP,SOCKS5代理,域名黑白名单,跨平台,KCP协议支持,集成外部API。

amirarsalan/deadman 0

A usb-based dead man's switch

amirarsalan/emqx-auth-http 0

EMQ X HTTP Authentication/ACL Plugin

amirarsalan/katacoda-scenarios 0

Katacoda Scenarios

amirarsalan/laravel-scout-elastic 0

Elastic Driver for Laravel Scout

amirarsalan/os01 0

Bootstrap yourself to write an OS from scratch. A book for self-learner.

amirarsalan/remotC 0

Remote Control for presentation

startedCryptoSignal/Crypto-Signal

started time in a day

startedpersian-tools/persian-tools

started time in a day

issue openedemirpasic/gods

How to expand the list?

case:

ns := []int{1, 2, 3}
list := arraylist.New(11, 22)
list.extend(ns)  // 11, 22, 1, 2, 3

Can this function be achieved?

created time in 2 days

startedjsherman212/xnuspy

started time in 2 days

PR opened emirpasic/gods

Get subtree sizes in trees

#96

+196 -1

0 comment

6 changed files

pr created time in 2 days

issue commentemirpasic/gods

json.Marshal() no work

Use this:

v, _ = tm.ToJSON()
hhiew

comment created time in 3 days

issue commentemirpasic/gods

add Copy to (Array)List

PR #150 implemented Clone for all ArrayList, SinglyLinkedList and DoublyLinkedList.

dvaerum

comment created time in 3 days

PR opened emirpasic/gods

Add Clone to Lists

Issue #97

+73 -1

0 comment

7 changed files

pr created time in 3 days

issue commentemirpasic/gods

Remove() a element,but used Contains() that still return true, and used String() that there is no the element

Please write an example of when this happen. I tested several cases, but all of them worked correctly.

beijibeijing

comment created time in 3 days

issue commentemirpasic/gods

Remove() a element,but used Contains() that still return true, and used String() that there is no the element

I understand when calling Remove(), the i is the index, not the value. And it happens sometimes, not every time. When it happend, first calling Remove(index),then I test it to call Contains(value) that still return true, to calling String() that there is no the value,to calling IndexOf(value) that the index is not -1

beijibeijing

comment created time in 3 days

PR opened emirpasic/gods

Add RemoveValue to arraylist

#144

+26 -1

0 comment

2 changed files

pr created time in 3 days

issue commentemirpasic/gods

Remove() a element,but used Contains() that still return true, and used String() that there is no the element

Actually, calling Remove(i), will remove i-th element of the list, not element with value i. For example, if you construct list [2, 3, 4, 5] and then call Remove(2). the answer will be [2, 3, 5]. It is nice to have a function RemoveValue(). I'll wirk on that.

beijibeijing

comment created time in 3 days

issue commentemirpasic/gods

Add Queue in Lists

PR #148 implement queue with both array and linked list.

MountainTang

comment created time in 3 days

issue commentemirpasic/gods

Add Queue in Lists

PR #148 is related

MountainTang

comment created time in 3 days

PR opened emirpasic/gods

Add Queue

#146

+1024 -0

0 comment

10 changed files

pr created time in 3 days

startedelrumordelaluz/csshake

started time in 4 days

startedoctarinesec/kube-scan

started time in 4 days

PullRequestEvent

PR closed alex/what-happens-when

Adding TLS handshake concept & what happens during it

Hi, please review my adding info to TLS handshake. Any suggestion is appreciated. Thanks

+21 -0

0 comment

1 changed file

dlscoccia

pr closed time in 7 days

PR opened alex/what-happens-when

Adding TLS handshake concept & what happens during it

Hi, please review my adding info to TLS handshake. Any suggestion is appreciated. Thanks

+14 -0

0 comment

1 changed file

pr created time in 7 days

created repositorytihmstar/minecraft_randomDamageDst

created time in 8 days

issue commentspf13/afero

go 1.16 compatibility

Based on a quick investigation, it looks like the only place where a change might be needed is

type File interface {
    Stat(name string) (os.FileInfo, error) // return fs.FileInfo instead
}

However, also looking at os package it looks like it would be still working fine without changing it.

type FileInfo = fs.FileInfo
xakep666

comment created time in 8 days

MemberEvent

startedevanw/source-map-visualization

started time in 10 days

startedtypicode/husky

started time in 11 days

issue closedyyyar/gobetween

gobetween - healthcheck - exec timeout error

Hi,

I am using gobetween to configure 2 nodes and a windows batch file (healthcheck.bat) to use a curl command which in turn calls a REST API of my application on the node to fetch status. The healthcheck.bat when given IP and port on command line returns health status in form of 0 and 1 correctly. Here is my configuration:

[servers.apigateway.healthcheck] kind = "exec" interval = "6s" ping_timeout_duration = "5000ms"

I even set the timeout in the curl to 5 sec even then I get these following errors in log (for security I have hidden the actual IPs with xxx.xxx.xxx.x):

2021-01-05 09:40:41 [INFO ] (manager): Initializing... 2021-01-05 09:40:41 [INFO ] (server): Creating 'softphone': xxx.xxx.xxx.1:8449 iphash1 static none 2021-01-05 09:40:41 [INFO ] (scheduler): Starting scheduler softphone 2021-01-05 09:40:41 [INFO ] (server): Creating 'apigateway': xxx.xxx.xxx.1:8450 iphash1 static exec 2021-01-05 09:40:41 [INFO ] (scheduler): Starting scheduler apigateway 2021-01-05 09:40:41 [INFO ] (manager): Initialized 2021-01-05 09:40:41 [INFO ] (metrics): Metrics disabled 2021-01-05 09:40:41 [INFO ] (api): API disabled 2021-01-05 09:41:59 [INFO ] (execTimeout): Response from exec [healthcheck.bat xxx.xxx.xxx.2 8445] is timed out. Killing process... 2021-01-05 09:41:59 [WARNI] (healthcheck/exec): exit status 1 2021-01-05 09:41:59 [INFO ] (execTimeout): Response from exec [healthcheck.bat xxx.xxx.xxx.3 8445] is timed out. Killing process... 2021-01-05 09:41:59 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.2 8445} false} 2021-01-05 09:41:59 [WARNI] (healthcheck/exec): exit status 1 2021-01-05 09:41:59 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} false} 2021-01-05 09:42:05 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.2 8445} true} 2021-01-05 09:42:05 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} true} 2021-01-05 09:46:41 [INFO ] (execTimeout): Response from exec [healthcheck.bat xxx.xxx.xxx.2 8445] is timed out. Killing process... 2021-01-05 09:46:41 [INFO ] (execTimeout): Response from exec [healthcheck.bat xxx.xxx.xxx.3 8445] is timed out. Killing process... 2021-01-05 09:46:41 [WARNI] (healthcheck/exec): exit status 1 2021-01-05 09:46:41 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.2 8445} false} 2021-01-05 09:46:41 [WARNI] (healthcheck/exec): exit status 1 2021-01-05 09:46:41 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} false} 2021-01-05 09:46:47 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} true} 2021-01-05 09:46:47 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.2 8445} true} 2021-01-05 09:50:53 [INFO ] (execTimeout): Response from exec [healthcheck.bat xxx.xxx.xxx.2 8445] is timed out. Killing process... 2021-01-05 09:50:53 [INFO ] (execTimeout): Response from exec [healthcheck.bat xxx.xxx.xxx.3 8445] is timed out. Killing process... 2021-01-05 09:50:53 [WARNI] (healthcheck/exec): exit status 1 2021-01-05 09:50:53 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} false} 2021-01-05 09:50:53 [WARNI] (healthcheck/exec): exit status 1 2021-01-05 09:50:53 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.2 8445} false} 2021-01-05 09:50:59 [INFO ] (execTimeout): Response from exec [healthcheck.bat xxx.xxx.xxx.2 8445] is timed out. Killing process... 2021-01-05 09:50:59 [INFO ] (execTimeout): Response from exec [healthcheck.bat xxx.xxx.xxx.3 8445] is timed out. Killing process... 2021-01-05 09:50:59 [WARNI] (healthcheck/exec): exit status 1 2021-01-05 09:50:59 [WARNI] (healthcheck/exec): exit status 1 2021-01-05 09:51:05 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.2 8445} true} 2021-01-05 09:51:05 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} true} 2021-01-05 09:51:53 [INFO ] (execTimeout): Response from exec [healthcheck.bat xxx.xxx.xxx.3 8445] is timed out. Killing process... 2021-01-05 09:51:53 [WARNI] (healthcheck/exec): exit status 1 2021-01-05 09:51:53 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} false} 2021-01-05 09:51:59 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} true} 2021-01-05 09:52:29 [INFO ] (execTimeout): Response from exec [healthcheck.bat xxx.xxx.xxx.3 8445] is timed out. Killing process... 2021-01-05 09:52:29 [WARNI] (healthcheck/exec): exit status 1 2021-01-05 09:52:29 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} false} 2021-01-05 09:52:35 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} true} 2021-01-05 10:01:47 [INFO ] (execTimeout): Response from exec [healthcheck.bat xxx.xxx.xxx.2 8445] is timed out. Killing process... 2021-01-05 10:01:47 [WARNI] (healthcheck/exec): exit status 1 2021-01-05 10:01:47 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.2 8445} false} 2021-01-05 10:01:53 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.2 8445} true} 2021-01-05 10:06:46 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} false} 2021-01-05 10:07:45 [INFO ] (healthcheck/worker): Sending to scheduler: {{xxx.xxx.xxx.3 8445} true}

Can you provide me a solution to this?

Many thanks,

Adeel.

closed time in 11 days

adeelaziz7

issue commentyyyar/gobetween

gobetween - healthcheck - exec timeout error

Hi @yyyar Thanks for the quick response, it worked! I had mixed up ping configuration with exec.

adeelaziz7

comment created time in 11 days

startednode-modules/compressing

started time in 12 days

startedmaxogden/csv-write-stream

started time in 12 days

more