News for hackers. Stuff that matters.

ivanilves

Thanks for your code, looks like this can help improving my state machine indeed. I'll try to apply that approach when I get my next slice of free time ;)
boolean grouping sounds neat, thanks!
Exactly! That's why I've put the sensor on a far-away top side of the lid.
Thanks for your expertise, you are very welcome to propose any real improvements, if you can ;)
Sounds like a key feature! ;)
Mine really works fine. Ultrasonic sensors are pretty decent in presence detection.
Glad you liked it. ;) Closing is on timer for now, yes.

Maybe I will add an infra-red or sound sensor to make closing more intelligent. Good tip!

Awesome tip, since I have only paper garbage, it will not fan out any smells like in case with biologic waste, thanks pal!

Ask HN: Ship logs to a central Elasticsearch from many remote locations

hi,I need to ship logs to a single central Elasticsearch over the internet, from a bunch of different locations, in some of them connection can be unstable. I plan to use filebeat installed in every location with reasonably large queue configured, so any connection glitches would not stop logs from eventually being shipped to Elastic.A question - had you ever worked with scenario like this? Do...

( Read More... | no comments | on HN )
Re:Ask HN: Stress Test Application for CPU/RAM/Disk on Thursday January 23, 2020 @11:21AM (#22128758)
Thanks!

Ask HN: Stress Test Application for CPU/RAM/Disk

Hi there,I want to check and then harden my Kubernetes cluster's stress tolerance by deploying some kind of stress generating application that would:1) Try to hog as much CPU as possible2) Try to allocate as much memory as possible3) Try to saturate disk IO with a lot of operationsThe question:Do you know, can you advice any application that does some harmful chaotic activities, tries to misuse...

( Read More... | 2 comments | on HN )

Ask HN: Replace all instances in EC2 ASG 1-by-1

Hi HN!Have you ever seen any [simple, already written] utility or script than could replace all instances in EC2 autoscaling group, one by one?I mean adding one new instance, waiting for it to get up, removing one corresponding old instance, and repeat until all the instances would be replaced?Given that autoscaling groups I have were created by hand, by Terraform or by CloudFormation (in...

( Read More... | no comments | on HN )
Looks awesome. Thanks!

Ask HN: How to check/enforce best practices on infrastructure?

Dear HN,In my company we use Infrastructure as Code approach to deal with complexity and chaos.We use pull requests and code reviews to ensure code/resulting infrastructure quality.However, we would like to go deeper and spend less human time on this. For conventional programming languages we have lots of linters and other quality control tools that help us a lot, so we don't search for stupid...

( Read More... | 5 comments | 6 points | on HN )
For the last 6 month "lstags" evolved from a small utility to a full Golang API library, it survived complete re-shape and re-fit, and I hope at least some of you will find it useful!

HOW/WHY COULD ANYONE USE IT???

Well, for example, lstags could be used for filling local registries (or to "prewarm" caching registries) with images from quay.io and gcr.io, to speed up K8s cluster launches.

Also could be used to "prewarm" local Docker storage by pulling popular images in advance (so your "docker run" will not be wasting time on pulling things, it will just run!).

P.S.:

There is a terrible lack of V2 registry tools, so I decided to write my own (a mix of NIH and real necessity, yes!!!).

Any ideas are welcome (I am very open), if you know any useful Docker registry tools, please mention em here.

I am seeking for collaborations now, to not become yet another lonely Golang madman reinventing the wheel. ;)

Re:Show HN: xiringuito & xaval – vicious SSH VPN tools on Tuesday December 26, 2017 @06:55PM (#16011833)
The project has changed radically after it got a "xaval" connection manager. Before it was accepted more like a parody on sshuttle ;)

Now you can use it not only because you hate python, but also if you like simple and straightforward CLI tools that save your time.

Any feedback is welcome - we start to work on OS-specific releases and rewrite with a better language than bash, but any suggestions apart are also welcome.

Thanks for your time!!!

Re:Show HN: Compare local Docker images with ones in registry on Saturday September 02, 2017 @07:19PM (#15158772)
Docker IMO does the packaging thing very well.

I agree that for the bare Golang application systemd will be enough.

But what will you do with Java and (OMG!) Ruby, NodeJS applications?

For lots of stuff out there Docker packaging capabilities are vital!

Re:Show HN: Compare local Docker images with ones in registry on Saturday September 02, 2017 @12:09PM (#15156690)
Glad it helped!

Feel free to submit issue or PR or some other form of feeback ;)

Re:Show HN: Compare local Docker images with ones in registry on Saturday September 02, 2017 @09:28AM (#15155864)
What do I really like is to use empty "scratch" as a base, and put only required stuff there. At least with Golang projects it works.

But yes, you can not be sure what do you have in every 3rd party image you use. This is a big problem in the Docker world IMO.

Re:Show HN: Compare local Docker images with ones in registry on Saturday September 02, 2017 @08:57AM (#15155742)
you have "Build from source" option, no? ;)
Re:Show HN: A simple SSH VPN client on Monday July 24, 2017 @03:02AM (#14836418)
https://github.com/ivanilves/xiringuito/issues/42

`sshuttle` & `xiringuito` differences well explained (I hope).

Re:Show HN: A simple SSH VPN client on Sunday July 23, 2017 @10:57AM (#14832530)
Well, there are some differences between sshuttle and xiringuito:

1) xiringuito is great for UDP. I had issues with RTP streams (UDP, random ports) running over sshuttle , though they run perfectly over SSH tun/tap.

2) I can run low-level non-TCP, non-UDP, IP protocols like OSPF over tunnels I create with tun/tap.

3) xiringuito does not require python. Not everybody loves python.

Overally I am a fan of sshuttle, but the way it's made prevented me from using it in a few cases, so I created xiringuito ;)

Re:Show HN: A simple SSH VPN client on Sunday July 23, 2017 @10:34AM (#14832418)
Yes... But not all apps are web ;) We should also think about ones using non-HTTP TCP and UDP.

Older »