Better HN
topnewbestaskshowjobs
Log inSign up

nodesocket

6,537 karma · joined Mar 10, 2011 (15y ago) · 4,332 submissions

Building a trading journal that helps investors log, tag, and review their trades and market insights with clarity. https://marketdiary.io

HN'er since 2011 when PG responded and was active.

Other companies: NodeSocket, Commando.io, Elastic Byte.

Living in Nashville, Tennessee. Charlie Munger "there are three ways to go broke... liquor, ladies and leverage."

  - GitHub: https://github.com/nodesocket
  - justin [at] HN-USERNAME {dot} com
Submissions

comment 10y ago · link · parent

Yeah, I almost feel like AWS should clear the contents of authoried_keys for each user when you make an AMI public. That of course is bound to break some things, but prevents security oversights.

comment 10y ago · link · parent

STS works, but I feel like multiple accounts linked is more of a hack than using a single AWS account. Of course, if you use a service that is not available in both regions, use STS.

comment 10y ago · link · parent

If you segment production instances from develop/staging you can use IAM rules to grant specific privileges based on the entire region, instead of by tag (which is fragile). Additionally, it is less error prone when you are making manual changes in the console as it requires switching regions between production and develop/staging.

comment 10y ago · link · parent

My huge recommendation is to put production instances in a completely seperate region than development and staging instances. I actually just discovered that you can limit IAM API keys to a specific region, you just need to create a custom policy. The following policy is an example:

    {
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "SOME-ID-HERE",
            "Effect": "Allow",
            "Action": [
                "ec2:*"
            ],
            "Condition": {
                "StringEquals": {
                    "ec2:Region": "us-west-2"
                }
            },
            "Resource": [
                "*"
            ]
        }
    ]
    }

comment 10y ago · link · parent

Awesome. Gusto is great, use them for my startup https://commando.io. However, I am not a fan of the brand and name change of Gusto. My 2 cents.

comment 10y ago · link · parent

Here is a sweet trick for dropping traffic with NGINX. When I mean drop, I mean, don't send a response, literally terminate the connection.

    location = / {
        if ($http_user_agent ~* foo|bar) {
            # return non-standard (NGINX only) 444 code
            # closes the connection without sending a response header
            return 444;
        }
    }

comment 10y ago · link · parent

Nginx is great, and I absolutely love it. However, if you're under a true DDoS attack, the box is going to be completely bogged down at the kernel level way before traffic is even close to being accepted and processed by NGINX. So this post is not very useful against a decent magnitude attack.

comment 10y ago · link · parent

Forgive me if I am wrong, but these devices phone home right? Can't they just hot fix this over the air?

comment 10y ago · link · parent

I don't really get it. This is more of an integration showcase than app store right? Can developers charge money for their Slack integrations and get paid-out? Is there a marketplace?

comment 10y ago · link · parent

WHOIS is provided by the organization that owns that IP block, and often times is their corporate office or lawyers office. Way worse way of trying to approximate a users geographic location. Please research before making claims.

comment 10y ago · link · parent

This inst GPS, 50 miles is actually quite good. The point is to get a general geographic area (City or State, heck even Country is super useful). Obviously there are tons of edge cases and inaccuracy with GeoIP, but that is expected.

comment 10y ago · link · parent

No centralized firewall (security groups), no ELBS, no EBS, no autoscaling, no ElastiCache, no RDS... Do I need to continue?

comment 10y ago · link · parent

Very nice. A direct competitor to the entry level DigitalOcean 512MB servers which cost $5 a month. The great thing is that as your grow, you won't outgrow AWS, which is not necessary true with DO.

comment 10y ago · link · parent

Looks good, but a lot of setup and configuration to get going. We (https://commando.io) use https://github.com/fiorix/freegeoip in production and it has been amazing.

Freegeoip is super easy to setup, go. It auto-fetches source data from MaxMind, supports https, and has rate limiting capability.

comment 10y ago · link · parent

This really feeds into my cynical attitude and sentiment that we are part of a rigged system. I've been trying to stay positive about technology and startups, but honestly it is everywhere. Tech news, advertising, fundraising, hiring.

Finance and the stock market is rigged the same way. A select few (the rich) get inside info, reporters and analyst write and give positive/negative spin on companies and profit, traders screw their customers, it is everywhere. Different market, same behavior.

comment 10y ago · link · parent

Anybody know the performance cost of enabling encryption on boot volumes? Interested in enabling encryption on our database volumes.

comment 10y ago · link · parent

> Most startups will never need anything close to $5000 in AWS credits.

This statement is not true. It is quite easy to have a $5,000 a month bill on Amazon.

comment 10y ago · link · parent

Most good founders realize $5,000 in hosting credits in terms of their time and effort is not a compelling reason to do office hours. Office hours provides way more insightful and long term value than some free server hours.

Developers who think in terms of over-optimizing costs probably wouldn't even be picked anyway.

3469.

Enron e-mail dataset (MongoDB)(mongodb-enron-email.s3-website-us-east-1.amazonaws.com ↗)

4 points · by nodesocket · 10y ago · discuss

comment 11y ago · link · parent

Actually `aws configure` is interactive when it asks for input. Those values won't be stored in `history`.

comment 11y ago · link · parent

Not saying I make of habit of this, but sometimes you have to pass sensitive things as arguments (passwords, api tokens, customer data, etc), it happens.

I think client side encryption by Bashhub would alleviate this security concern.

comment 11y ago · link · parent

Unrelated, but is this a common practice in Swift?

    #if os(Linux)
        import Glibc
    #else
        import Darwin.C
    #endif
Feels a bit nasty.

comment 11y ago · link · parent

Interesting to see if an Express like framework comes about. Does it even make sense to write a backend http RESTful API in Swift? Wonder what the performance is vs node.js and go?

comment 11y ago · link · parent

Lots of cool projects around secrets lately:

* Vault (by Hashicorp) [go] https://hashicorp.com/blog/vault.html

* Confidant (by Lyft) [Python] https://eng.lyft.com/announcing-confidant-an-open-source-sec...

* Keywhiz (by Sqaure) [Java] https://square.github.io/keywhiz/

comment 11y ago · link · parent

Anyway to get a wildcard SSL certificate from Let's Encrypt? Mine is coming up for renewal soon.

comment 11y ago · link · parent

My goto are htop, and for network: nload.

comment 11y ago · link · parent

I'm guessing just one or a small number of servers were in debug mode by accident, thus like winning the lottery that your request hits a debug server.

comment 11y ago · link · parent

I use Dropbox to sync my ~/Sites folder in OS X, between my three macs. It works.... Except when it can't figure out a conflict and creates CONFLICTED copies of git object, refs, head files. Quickly turns into a nightmare.

CONFLICTED copies in Dropbox drives me absolutely nuts, and should not happen since I never edit the files concurrently.

comment 11y ago · link · parent

Intercom.io for all your support and customer tracking needs. It also handles DRIP[1] e-mails and doubles as a sales live chat.

[1] https://en.wikipedia.org/wiki/Drip_marketing

comment 11y ago · link · parent

Just found out. I feel silly. Noticed there is no collision detection with the boxes though.
1
115116117
145