profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/mr-karan/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Karan Sharma mr-karan @zerodhatech Delhi/Bangalore, IN https://mrkaran.dev/ All things web, containers, and monitoring!

knadh/listmonk 5547

High performance, self-hosted newsletter and mailing list manager with a modern dashboard. Single binary app.

mr-karan/awesome-investing 1107

💸💸 Curated list of investment & finance related resources

mr-karan/calert 61

Prometheus' Alertmanager - Google Chat Integration :bell:

knadh/pfxsigner 34

A CLI utility and web server for digitally signing PDFs with docsign loaded from PFX (PKCS#12) files

knadh/listmonk-site 7

Static website + docs for listmonk

mr-karan/calwarrior 6

Calendar web view for Takwarrior

ACM-SNU/api-bot-python 4

Using twitter api and forecast.io created a bot which tweets weather status

mr-karan/ansible-server-logs-monitoring 4

Ansible playbook to install ELK stack for log analysis and Prometheus/AlertManager/Node Exporter/Grafana for Server monitoring. Or as they say, One :ring: to rule them all!

mr-karan/caddy-plugins-docker 2

Docker image for Caddy with custom plugins baked into the image.

ACM-SNU/acm-snu.github.io 1

SNU ACM's website. http://acm-snu.github.io

push eventmr-karan/doggo

Frank Denis

commit sha ddbf40de9a91d3dec89e09a858677036ba226f5e

Update the dnscrypt module to version 2

view details

push time in a day

PR merged mr-karan/doggo

Update the dnscrypt module to version 2

This also properly sets the timeout if needed.

+22 -15

2 comments

3 changed files

jedisct1

pr closed time in a day

pull request commentmr-karan/doggo

Update the dnscrypt module to version 2

This is nice, thanks.

Merging this, but I'll create a release by this month :+1: .

jedisct1

comment created time in a day

startedhashicorp/damon

started time in 2 days

issue commenthashicorp/nomad

Add timeout to server_join

Sorry, missed adding in the original post. Here you go (it's copied as-is from here)

server_join {
  retry_join = [ "1.1.1.1", "2.2.2.2" ]
  retry_max = 3
  retry_interval = "15s"
}
mr-karan

comment created time in 2 days

issue openedhashicorp/nomad

Add timeout to server_join

Proposal

It will be nice if server_join stanza can have a timeout field in the server_join stanza.

Use-cases

Purposefully gave a wrong config to a Nomad agent running as server and from the logs:

Aug 02 12:38:23 nomad-node-0 nomad[50839]: ==> Newer Nomad version available: 1.1.3 (currently running: 1.1.2)
Aug 02 12:38:29 nomad-node-0 nomad[50839]:     2021-08-02T12:38:29.914+0530 [INFO]  client: node registration complete
Aug 02 12:39:20 nomad-node-0 nomad[50839]:     2021-08-02T12:39:20.239+0530 [WARN]  agent.joiner: join failed: error="2 errors occurred:
Aug 02 12:39:20 nomad-node-0 nomad[50839]:         * Failed to join 1.1.1.1: dial tcp 1.1.1.1:4648: i/o timeout
Aug 02 12:39:20 nomad-node-0 nomad[50839]:         * Failed to join 2.2.2.2: dial tcp 2.2.2.2:4648: i/o timeout
Aug 02 12:39:20 nomad-node-0 nomad[50839]: " retry=15s


Aug 02 12:40:35 nomad-node-0 nomad[50839]:     2021-08-02T12:40:35.243+0530 [WARN]  agent.joiner: join failed: error="2 errors occurred:
Aug 02 12:40:35 nomad-node-0 nomad[50839]:         * Failed to join 1.1.1.1: dial tcp 1.1.1.1:4648: i/o timeout
Aug 02 12:40:35 nomad-node-0 nomad[50839]:         * Failed to join 2.2.2.2: dial tcp 2.2.2.2:4648: i/o timeout
Aug 02 12:40:35 nomad-node-0 nomad[50839]: " retry=15s
Aug 02 12:41:50 nomad-node-0 nomad[50839]:     2021-08-02T12:41:50.248+0530 [WARN]  agent.joiner: join failed: error="2 errors occurred:
Aug 02 12:41:50 nomad-node-0 nomad[50839]:         * Failed to join 1.1.1.1: dial tcp 1.1.1.1:4648: i/o timeout
Aug 02 12:41:50 nomad-node-0 nomad[50839]:         * Failed to join 2.2.2.2: dial tcp 2.2.2.2:4648: i/o timeout
Aug 02 12:41:50 nomad-node-0 nomad[50839]: " retry=15s
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.252+0530 [ERROR] agent.joiner: max join retry exhausted, exiting
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.253+0530 [INFO]  agent: requesting shutdown
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.253+0530 [INFO]  client: shutting down
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.253+0530 [INFO]  client.plugin: shutting down plugin manager: plugin-type=device
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.256+0530 [INFO]  client.plugin: plugin manager finished: plugin-type=device
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.256+0530 [INFO]  client.plugin: shutting down plugin manager: plugin-type=driver
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.259+0530 [INFO]  client.plugin: plugin manager finished: plugin-type=driver
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.259+0530 [INFO]  client.plugin: shutting down plugin manager: plugin-type=csi
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.261+0530 [INFO]  client.plugin: plugin manager finished: plugin-type=csi
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.262+0530 [INFO]  nomad: shutting down server
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.262+0530 [WARN]  nomad: serf: Shutdown without a Leave
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.263+0530 [INFO]  nomad: cluster leadership lost
Aug 02 12:43:05 nomad-node-0 nomad[50839]:     2021-08-02T12:43:05.263+0530 [INFO]  agent: shutdown complete

You can see that Nomad almost took 5 minutes to see that the servers is unable to join and then the service exited.

Since there's no timeout defined, I am guessing it waits for a default of 60s or something higher. There's no way to configure that, which makes retry_interval also useless since the next retry will happen only once the first attempt failed (which is 75s according to the logs I shared).

So maybe we can add a timeout and give a sane config like 5s or something as a default as well (It should be less than retry_interval).

created time in 2 days

pull request commenthashicorp/go-discover

Adding AWS multiple tags support

+1 for this. Are there any blockers for this to get merged?

abaez

comment created time in 6 days

issue commentknadh/listmonk

Is there a short list of best practices for backing up?

@weisisheng Disk snapshots are fine in most cases. If you want to store the backups in a different location apart from a VM snapshot, you can run a simple cronjob on the EC2 Instances which fires up pg_dump, backup entire DB, compress and push the archive to somewhere like S3. It can be a simple shell script.

weisisheng

comment created time in 6 days

issue commentweaveworks/eksctl

(Future) Breaking: overrideBootstrapCommand soon to be required with Custom AMIs for AL2 and Ubuntu unmanaged nodegroups

Yep saw that. Just to confirm, will this work for unmanaged node groups too? Thanks!

Callisto13

comment created time in 7 days

issue commentweaveworks/eksctl

(Future) Breaking: overrideBootstrapCommand soon to be required with Custom AMIs for AL2 and Ubuntu unmanaged nodegroups

Can the maintainers please tell what should we add to the cluster-config.yml under overrideBootstrapCommand if we're using Custom AMI and we want the same exact behavior of whatever happening now?

Callisto13

comment created time in 7 days

delete branch zerodha/zerodhatech.github.io

delete branch : feat/kong-svc

delete time in 7 days

delete branch zerodha/zerodhatech.github.io

delete branch : postgres

delete time in 7 days

push eventmr-karan/awesome-investing

Thomas

commit sha aad084796ce78377d262a9278173c26451b60926

Add Ghostfolio

view details

Karan Sharma

commit sha abb2c082312903d509a28b384a29c6c27ae9aef8

Merge pull request #13 from dtslvr/patch-1 Add Ghostfolio - Open Source Wealth Management Software

view details

push time in 9 days

PR merged mr-karan/awesome-investing

Add Ghostfolio - Open Source Wealth Management Software

<!-- Please fill in the bold fields, submit the pull request and tick the checkboxes. DO NOT SUBMIT ANYTHING IF YOU FAIL ANY OF THIS RULES -->

https://github.com/ghostfolio/ghostfolio

Open Source Wealth Management Software to keep track of your wealth like stocks, ETFs or cryptocurrencies and make solid, data-driven investment decisions.

+1 -0

0 comment

1 changed file

dtslvr

pr closed time in 9 days

PR opened knadh/listmonk

fix colorized output in terminal

Closes https://github.com/knadh/listmonk/issues/422

+2 -2

0 comment

1 changed file

pr created time in 13 days

create barnchmr-karan/listmonk

branch : install_fix

created branch time in 13 days

push eventmr-karan/listmonk

Karan Sharma

commit sha 50dc9fca16f8853b0844f625437d0b8944ffb156

feat: add a public healthcheck endpoint - Adds `/health` as a public facing healthcheck endpoint. - `/api/health` is meant for internal healthchecks. This endpoint in future can serve sensitive information about Listmonk *or* can be deprecated if there's not enough usecase. Closes https://github.com/knadh/listmonk/issues/380

view details

Kailash Nadh

commit sha baca95e4eb3e93e0ab219997fb6cdc7e55c19d47

Merge pull request #381 from mr-karan/health fix: expose healthcheck API as public endpoint

view details

Kailash Nadh

commit sha bbffbbc5f3af06f307acfca8c69168c645a77030

Fix listID not being passed in bulk sub deletion. Closes #384

view details

Kailash Nadh

commit sha 3d263666209db8755711236b2546ebe8b7bdf1ea

Fix pagination query. - Fix '?per_page=all' not working inconditional LIMIT queries. - Fetch all lists on the UI for list dropdowns everywhere.

view details

dependabot[bot]

commit sha 6ddb03c452695d1590c4ab4c7916857616c2b8d2

Bump ws from 6.2.1 to 6.2.2 in /frontend Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/commits) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>

view details

Kailash Nadh

commit sha 948dbc9e85f20fb2a5cffc3855946ad0a53d8180

Merge pull request #385 from knadh/dependabot/npm_and_yarn/frontend/ws-6.2.2 Bump ws from 6.2.1 to 6.2.2 in /frontend

view details

Kailash Nadh

commit sha 8859911c738edcb3718ce08ccf7902363eccd0e1

Remove hardcoded limit for `per_page` in pagination

view details

Kailash Nadh

commit sha a914b5d194b3b76b23fb4a0c6e6f0133235e7742

Merge branch 'master' of github.com:knadh/listmonk

view details

Kailash Nadh

commit sha c37a7690d6a5e24530d3c0d5e8ab760a55c1a574

Add robots noindex header to public user specific subscription pages

view details

Russ Smith

commit sha 7ca08f0a3615ae079e72c238e56c64dbf09ab610

Adding a subscription status option to the import. Ref #168

view details

Kailash Nadh

commit sha 868fae6ac2384bf277d1a3d0e912419512b2659d

Refactor subsbscription status option on the import page. - Refactor subimporter New*() funcs to take opt structs. - Refactor and simplify Vue code. - Remove redundant i18n entries and use existing ones. - Remove redundant subimporter constants and use existing ones. - Consider 'overwrite' option for subscription status as well. - Write Cypress integration tests for the new feature.

view details

Kailash Nadh

commit sha 3ecac7671a2f4293da07061430aaf590664a79d4

Fix Vue linting issue

view details

Tom Sacher

commit sha 3abac3116126904504bdcbf213f3bc0a4510e9c2

chore(translations): improve german translations

view details

Kailash Nadh

commit sha 63520d23708d58ff2ecd53f00d76dd18c0a1bb8c

Merge pull request #388 from dunklesToast/chore/update-german-translations chore(translations): improve german translations

view details

Kailash Nadh

commit sha a3b285fa621579908ac5383655f596a57c5cb9d8

Fix Buefy number input width

view details

Kailash Nadh

commit sha b3612927c82bee987c2c2d20322232b9144a3c8a

Display app version the settings UI

view details

Karan Sharma

commit sha 8d40422e0fc4c420ba726222b6d675f95642cddd

feat: Add easy install script - Add a shell script to orchestrate a production setup with `docker-compose`. The script fetches config and `docker-compose.yml` from the `master` branch, generates a secure password, performs DB migrations and starts the container services. - Add a health check for Postgres container service in `docker-compose.yml`. - Add cusotm `container_name` for services inside `docker-compose`. This is helpful to check the status of containers in the install shell script.

view details

Kailash Nadh

commit sha a22d7facbd4ae3fefb0e45f07f54c05c1c126f45

Merge pull request #394 from mr-karan/install feat: Add easy install script

view details

dependabot[bot]

commit sha 674536c1f56c5f36703fc3d58cab92cc0a1c44d7

Bump postcss from 7.0.32 to 7.0.36 in /frontend Bumps [postcss](https://github.com/postcss/postcss) from 7.0.32 to 7.0.36. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/7.0.32...7.0.36) --- updated-dependencies: - dependency-name: postcss dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>

view details

Kailash Nadh

commit sha fc84082c870136ecdefabfd5d1b93445fcbb6cf9

Merge pull request #398 from knadh/dependabot/npm_and_yarn/frontend/postcss-7.0.36 Bump postcss from 7.0.32 to 7.0.36 in /frontend

view details

push time in 13 days

issue commentknadh/listmonk

Missing NO_COLOR

Can you give more details of your environment. Particularly which OS, shell etc.

spravil

comment created time in 14 days

push eventmr-karan/hydra

Karan Sharma

commit sha 06653f8f276e53b3ef987d80ce65b7d7e190cdce

chore: update doc

view details

push time in 19 days

push eventmr-karan/hydra

Karan Sharma

commit sha 8c61af70560606e4e183800f5a86cda3f52c15be

feat: Add syncthing server

view details

push time in 19 days

issue commentknadh/listmonk

One binary to serve multiple URLs

This is possible, no conflicts will happen if you use different DBs.

roshanjonah

comment created time in 19 days

push eventmr-karan/notes

Karan Sharma

commit sha f4e0e6e5208b997fbca6cb48a034bc16f43ecbaa

chore: update notes

view details

push time in 25 days

issue commenttimberio/vector

Keepalive config not being parsed

@spencergilbert Ah damn. :see_no_evil: sorry for the confusion!

mr-karan

comment created time in a month

issue closedtimberio/vector

Keepalive config not being parsed

Vector Version

vector 0.14.0 (x86_64-unknown-linux-gnu 5f3a319 2021-06-03)

Vector Configuration File

[sources.vector_aggregator]
  type = "vector" # required
  acknowledgements = false # optional, default
  address = "0.0.0.0:9000" # required
  keepalive = 5
  shutdown_timeout_secs = 30

or

[sinks.agent_out]
  # General
  type = "vector" # required
  inputs = ["format_app_logs"]
  address = "1.1.1.1:5000"
  healthcheck.enabled = false
  keepalive = 5

Expected Behavior

Vector should run normally since this config key is documented here and here

Actual Behavior

$ vector
Jul 09 15:36:18.284 ERROR vector::cli: Configuration error. error=data did not match any variant of untagged enum VectorConfig for key `sources.vector_aggregator` at line 25 column 1

Same error for sink.agent_out.

closed time in a month

mr-karan

issue openedtimberio/vector

Keepalive config not being parsed

Vector Version

vector 0.14.0 (x86_64-unknown-linux-gnu 5f3a319 2021-06-03)

Vector Configuration File

[sources.vector_aggregator]
  type = "vector" # required
  acknowledgements = false # optional, default
  address = "0.0.0.0:9000" # required
  keepalive = 5
  shutdown_timeout_secs = 30

or

[sinks.agent_out]
  # General
  type = "vector" # required
  inputs = ["format_app_logs"]
  address = "1.1.1.1:5000"
  healthcheck.enabled = false
  keepalive = 5

Expected Behavior

Vector should run normally since this config key is documented here and here

Actual Behavior

$ vector
Jul 09 15:36:18.284 ERROR vector::cli: Configuration error. error=data did not match any variant of untagged enum VectorConfig for key `sources.vector_aggregator` at line 25 column 1

Same error for sink.agent_out.

created time in a month

issue closedmr-karan/calert

HTTP request proxy config

Hello,

Thanks for creating a great project! Is there any way to specify a proxy setting while sending the HTTPS request to google chat room? I'm using v1.2.1.

I'm getting similar error as below which I think is due to network issue.ERR: 2020/05/20 14:42:48 /home/karan/Projects/calert/main.go:44: Error while processing request: Post "https://chat.googleapis.com/v1/spaces/AAAAAAAA11/messages?key=mykeyhere&token=mytokenhere%3D": context deadline exceeded (Client.Timeout exceeded while awaiting headers)`

closed time in a month

weichanxiang

issue commentmr-karan/calert

HTTP request proxy config

https://github.com/mr-karan/calert/pull/30

I'll do a release soon.

weichanxiang

comment created time in a month

pull request commentmr-karan/calert

Offers the possibility to use an internal proxy.

Thanks a lot!

dreamblack86

comment created time in a month

PR merged mr-karan/calert

Reviewers
Offers the possibility to use an internal proxy.

With this extension it is possible to enter a http proxy via the viper config structure. Basically you could also use the classic ENV variables $HTTP_PROXY etc.. However, I find the way to solve it via the config a bit more sharp because the proxy information refers only to the application and not for the environment. In some cases this may not be desired, because it expects a number of NO_PROXY entries.

I hope I can improve this nice little application a bit and I would be happy about the integration into the master branch.

+27 -5

2 comments

5 changed files

dreamblack86

pr closed time in a month

push eventmr-karan/calert

Daniel Steininger

commit sha a3301255bc613df05ddbaa50a78de17cf3784aa5

Offers the possibility to use an internal proxy.

view details

dreamblack86

commit sha 4d127985e3d75e1aa73d7e4a1bc58854793e81ce

Adjust error message; Replace placeholder/example proxy_url.

view details

dreamblack86

commit sha eb3a2fb51949da6de0da6ae4ed060c48da2466f9

Added missing quote pipe

view details

Karan Sharma

commit sha 10c0996158c2b7ab9924b8154f1a966bcfaf035e

Merge pull request #30 from dreamblack86/master Offers the possibility to use an internal proxy.

view details

push time in a month