HNHacker News
TopNewBestAskShowJobs

adnanh

602 karma · joined July 24, 2012

Software engineer from Sarajevo, Bosnia and Herzegovina.

[LinkedIn] https://linkedin.com/in/adnan-h/

[Github] https://github.com/adnanh/

submissionscomments
adnanh··on Designing an email-only Slack interface
Hey, instead of polling, for the trigger words such as @mention etc you can use outgoing webhooks integration.
adnanh··on Ask HN: What did you work on in 2017?
Hookdoo: SaaS that allows you to create incoming webhook endpoints to run shell scripts on your remote servers. https://www.hookdoo.com/

And of course my open-source webhook server project: https://github.com/adnanh/webhook

adnanh··on Ask HN: What is your side project for 2018?
Hookdoo allows you to execute the same script on multiple servers. It's centralized, and you don't have to maintain multiple versions of the same script on multiple hosts. You can easily add or remove servers where the script should be executed etc...

It also adds the concurrency control feature so you don't have to worry if you want only one instance of the script running, or want to kill the currently running one, or run them in parallel etc...

Another feature would be generic trigger rules where you can use values from payload to see if the script should be run at all (i.e. push to the feature branch, but you want to run the script on merges to master...).

As a developer, all of this might sound easy to implement, but whatever you make, you also have to maintain... And as you know, the business requirements tend to change quite often and you'll get to a point where you have to generalize your custom CGI scripts, and you end up spending more time maintaining infrastructure than doing development on the actual product.

Webhook on other hand is pretty much a CGI server with a few handy features :-)

adnanh··on Ask HN: What is your side project for 2018?
Hookdoo: SaaS that allows you to create incoming webhook endpoints to run shell scripts on your remote servers. https://www.hookdoo.com/

And of course my open-source webhook server project: https://github.com/adnanh/webhook

adnanh··on How to set up continuous deployment using free hosted tools
Shameless plug: I wrote an open source incoming webhook server that can run your build & redeployment scripts: https://github.com/adnanh/webhook
adnanh··on Ask HN: Jsfiddle.net down for everyone else or just me?
Getting 503 :(
adnanh··on Should You Build a Webhooks API?
For those interested in technically easy webhook consuming endpoint server check out https://github.com/adnanh/webhook
adnanh··on Ask HN: What weekend projects have you created?
Webhook: https://github.com/adnanh/webhook

Self hosted tiny incoming webhook server with powerful options. Lets user run shell commands on incoming webhook. Has context parsing (use values from payload, query string, headers etc...). Can use context to validate the requests (i.e. only trigger if the push is coming from GitHub and the ref branch is the master branch). More info can be found in the Readme and on the wiki.

Tech stack: Golang

---

Hookdoo - https://www.hookdoo.com/

A SaaS spin on the webhook server. Sort of an opposite approach. Has all the features webhook has, and also implements concurrency management (i.e. only run one script and deny others until it's done, allow parallel runs etc...). Centralized, managed, leverages SSH. No need for the user to install and configure anything on their servers.

Tech stack: Ruby, Golang, Redis, PostgreSQL, ES6 + React

adnanh··on Ask HN: Projects that don't make you money but you're doing it out of sheer joy?
https://github.com/adnanh/webhook

Incoming webhook server

adnanh··on JSONbin.io – Simple JSON Storage (Beta)
you could set up an nginx proxy in front of it, or use the S3 static website feature with custom domain
adnanh··on JSONbin.io – Simple JSON Storage (Beta)
it's perfectly okay to load https content on the http urls, just not vice versa
adnanh··on Show HN: Webhook – A lightweight configurable tool written in Go
When I started working on this, I couldn't find a simple tool that I could drop in and automatically redeploy my latest development branch on my code repo.
adnanh··on Show HN: Webhook – A lightweight configurable tool written in Go
It supports HTTPS. You can also put this behind an nginx which is configured to use https.
adnanh··on Show HN: Webhook – A lightweight configurable tool written in Go
ev gura se :)
adnanh··on Show HN: Webhook – A lightweight configurable tool written in Go
My brother told me the same thing :)
adnanh··on Show HN: Webhook – A lightweight configurable tool written in Go
Sending responses can be done using curl or wget in your scripts.

Webhook can wait for the script execution and return the stdout & stderr as response.

adnanh··on Show HN: Webhook – A lightweight configurable tool written in Go
The -verbose flag logs pretty much everything you need to the stdout & stderr. I.e. when the hook gets triggered, what arguments and environment are being passed, which command has been executed, what was the output etc...

It is also possible to wait for the command to finish and return the response as part of the HTTP response, or just return 200 Ok and run the script in the background.

adnanh··on Show HN: Webhook – A lightweight configurable tool written in Go
Yes. I believe that it's better to be verbose rather than obscure. I'm of a belief that it's easier for someone to understand what was the original intention of the "pass-arguments-to-command" rather than "arguments" keyword. The verbosity shouldn't affect performance significantly.
adnanh··on Show HN: Webhook – A lightweight configurable tool written in Go
Sort of :-)
adnanh··on Show HN: Webhook – A lightweight configurable tool written in Go
I agree, the biggest pain point I've identified in my tool is the actual configuration. It's okay for simple definitions, but as the number of endpoints grow, it becomes messy. I started work on a CLI tool that would be responsible for managing the hooks.json file, but I haven't had enough time to devote to it. (My wife, my daughter and my daily job currently occupy most of my time...)
adnanh··on Hookdoo – React to incoming webhooks with minimal setup
By using hookdoo you can save your precious time and focus on getting stuff done instead of wasting time setting up the infrastructure.
adnanh··on Ask HN: Have you ever regretted hiring a developer?
It's important to know that engineering is not just about programming. Programming is just a tool.
adnanh··on Ask HN: What do you want to see in Ubuntu 17.10?
Better HiDPI support
adnanh··on Ask HN: How can I make my API “wow” someone?
Pay attention to:

  - versioning
  - consistency in naming
  - documentation
adnanh··on Fix the GitHub Dark Menubar
Me too!
adnanh··on Ask HN: Found an identical product to mine. Should I double down or refocus?
Gitlab and GitHub tackle same issues and have the same market. As someone said, if you are not violating copyright or patent law, you're good. Ideas are worthless, it's the execution part that matters... If you are better at it you'll win. If the market is big enough for both of you, you won't have problems. Imagine if McDonalds didn't start when they saw KFC was already into fast food business? Or burger king, or if we only had one pizza business. Competition pushes companies forward, having a monopoly is only good for the business, not the users.
adnanh··on Ask HN: Does anyone dream of code?
It's your subconscious working on a problem...

One example would be scenario where you can't remember some word, and you decide you can't remember it and stop thinking about it, your brain continues to search for it in the background (subconsciously)... and then the word comes to you like an interrupt.

I had the same thing with studying for exams (I would dream of the lecture notes and when I wake up in the morning I can perfectly recall everything).

There was a study posted at HN where not completing a task at work, leaves your brain working on it even after you leave your office, only to have the solution pop up in the middle of the night.

All of this can be a result of a stress. You need to take a vacation and relax. Recharge your batteries or you'll be feeling drained really soon...

adnanh··on Ask HN: How many coffee do you need per day to get your work done?
2-4 espressos per day

1 in the morning after my breakfast 2 during the work day (one usually around noon (sometimes I skip this one) and one after lunch) 1 after I come home from work before dinner (sometimes I skip this one)

adnanh··on Ask HN: What's your go-to stack for prototyping web applications and MVPs?
https://github.com/adnanh/rye - simple url-catcher on our slack channel (live at http://rye.hajdarevic.net/) (Using slack outgoing webhooks + https://github.com/adnanh/webhook for catching the webhook and running a simple shell script that parses the slack message and extracts all URLs and then hits rye with curl to store and crawl them)

https://github.com/adnanh/mikro - my personal micro blog that I mainly use to store interesting links (live at http://blog.hajdarevic.net/)

I'm currently working with a friend of mine on an MVP that we plan to offer as a service, and the source code is not open, but the stack is: React (JSX + ES6 + Webpack) + Tachyons for frontend, Ruby (Grape + Sequel) for frontend API, Golang for workers and processing, PostgreSQL as a DB and Redis for caching

adnanh··on Ask HN: What's your go-to stack for prototyping web applications and MVPs?
I love Ruby and for the quick web MVPs I use sinatra + sequel.

I try to avoid JavaScript if possible... Setting up the JavaScript build/transpile system, installing dependencies, fighting the dependency version hell drains all the hype and productivity from my soul...

← PreviousPage 2 of 5Next →