HNHacker News
TopNewBestAskShowJobs

emiunet

30 karma · joined January 23, 2013

meet.hn/city/vn-Hà-Nội

Interests: Technology

---

submissionscomments
emiunet··on Ask HN: Command line flags?
Environment variables are also commonly used by cli programs.
emiunet··on How long does it take to create a 16TB file?
The article is from 2007. I’m wondering how long it takes now for the same test.
emiunet··on Port knocking
We like fwknop a lot for its cryptography implementation which can prevent MITM attacks. However, we don't like it for relatively complex client setup. (For example, there is no official iOS client). So we built our own cheap version of port-knocking and called it "doormand". It's just a HTTP server (behind nginx) listening for a POST request from clients. If the request is valid, a new iptables rule is added for the knocking IP for 30 seconds. It supports users with secret key (think API token) so we can knock from our workstation easily. It also supports Timebased-OTP (we can even setup so user is required to enter 2 different TOTP's when knocking) so we can knock from mobile devices. All messages are hash'ed with timestamp making it harder to re-play attack. It works great for us (a small team) because now we can knock over HTTPS on our phone/ipad and then SSH-connect to servers.
emiunet··on Ask HN: What's your quarantine side project?
I worked on a bash script that downloads all of Slack messages to my local computer. I have a few workspaces (some community workspaces) where I don't have admin permissions and a few free tier workspaces where messages are limited to 10K. I use this script to download chat messages to my computer everyday so I can grep them later at any time.

It's on github: https://github.com/t-tran/slack-chat-backup

emiunet··on Show HN: Endpoints.dev – Pastebin for HTTP Requests
If I knew somebody else's unique subdomain, I could set my browser cookie on my local computer to that value and it seems to just load the other subdomain just fine. I tested this with 2 different browser on my same laptop. Maybe it won't work if the other person is on another computer?

I could also just set the subdomain to anything I like (by setting the cookie value) and it still works just fine.

Ah no, I can still set the cookie to the other person's subdomain on another machine.

Edit: add extra sentence.

Edit2: format.

emiunet··on Ask HN: What has the pandemic taught you?
It may sound strange to some people, but staying at home actually made me more productive. I got more things (work and my own side projects) done in the past month. Except for me missing eating out at cafes, going to the theaters and people watching, I found a lot less distracted working from home.
emiunet··on Covid-19: Only 268 cases and no deaths. How did Vietnam with 97M people do it?
Back when MOH of Vietnam still published number of people tested per day, I collected the data from their website and made this graph: https://i.imgur.com/hzkG3R2.png They stopped doing that though.

So as of 4/12, number of people tested and came out negative was 121.6K

emiunet··on Show HN: Backup your Slack chat without admin permissions or workspace apps
I want to backup chat messages (just the texts) from my Slack workspaces to local machine. However, I don't have admin permissions and I can't install Apps on workspaces to have that API Key. Thus, I wrote this bash script to use my browser's session key and cookie to curl all the messages (all the way back to the beginning of each channels) and dump them to local storage in JSON format. I can later process the JSON files and import them into a database. But that's later.
emiunet··on Ask HN: Linode equivalent of Dedicated Server?
Give https://www.packet.net/ a try. They are relatively new (about 2 years old), but are solid and having very nice APIs.
emiunet··on Poll: Desktop Linux users, what distro do you use?
Isn't Mint one of Ubuntu variants?
emiunet··on Ask HN: Is RSS still worth the time?
Please don't kill RSS just yet. Since the death of Google Reader, I've been using selfoss[1] actively to subscribe to news sources (HN is one of them). I can't live without RSS.

[1] http://selfoss.aditu.de/

emiunet··on Poll: Do you use GitHub stars for bookmarking or for “Liking”?
I bookmark something most likely because I like it. However, I may like many things but still do not bookmark them.
emiunet··on What happens when DNS in China is poisoned and pointed at your server
Thanks a lot for the post. What suprised me the most was the fact that Google is serving 40K (now 47K in live statistic) requests per second. That was way below what I thought. Each Apache server without real optimization running on a typical physical machine would be able to serve 40-50 requests/second; so they only need a thousand of servers to do 50K requests/second. Or am I missing something?
emiunet··on Ask HN: What do you do with your old iPhone when you buy a new one?
I don't buy new iPhones if I already have one. I don't see myself in need of doing that. I am trying to keep all expense as minimal as possible, especially in tech hardware because it gets improved so fast.
emiunet··on TypWrittr – Inspirational, Minimalistic, Distraction-free Text editor
I second this. Plus, I ssh into my own server, tmux att and launch vim there. It is available wherever with Internet connection for me.
emiunet··on Ask HN: Which screen for programming?
Which size of MacBook Pro are you using? I am considering 13" because of its lighter weight (compare to 15").
emiunet··on From Gmail to Fastmail
I have been using Google Apps and actually have an "evil" thought whenever I heard someone is switching off of Google: maybe, the more people leaving Google, the better its performance will be (for the ones who stay) (ie: their servers will be less busy)
emiunet··on From Gmail to Fastmail
I am curious what sort of storage solution Google is using to compare to this one..
emiunet··on Practical Tmux
Very much depending on what sort of installation (not the distro itself) you've got. Most of Minimal installation doesn't come with screen nor tmux by default.
emiunet··on Use a config file to SSH into a server
In a lot of environments, the SSH servers are listening on some non-standard port. I don't see an option in ssh-copy-id to specify the SSH server port.
emiunet··on Ask HN: Is dropbox still down for you?
me too :(

Error (500) Something went wrong. Don't worry, your files are still safe and the Dropboxers have been notified. Check out our Help Center and forums for help, or head back to home.

emiunet··on A Short Story for Engineers
This reminds me of an article about lazy people innovate. https://news.ycombinator.com/item?id=4178031
emiunet··on A beautiful reading, writing and publishing platform you can actually rely on.
Ahh found it: http://rsr.io/login/
emiunet··on A beautiful reading, writing and publishing platform you can actually rely on.
Hmm.. URL followed by anything will return the same (not 404) page: http://rsr.io/hacker

Some info about the server:

< HTTP/1.1 200 OK < Date: Thu, 26 Dec 2013 09:47:29 GMT < Server: Apache/2.2.22 (Debian) < Content-Location: posts.php < Vary: negotiate,Accept-Encoding < TCN: choice < X-Powered-By: PHP/5.4.4-14 < Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 < Content-Type: text/html

emiunet··on Night-before-opsmas.txt
Happy holidays to you! I am still on ops duty right now :)
emiunet··on You Need Nothing
I'd love to know how the sales goes if possible.
emiunet··on NYC Digital Ocean is having Network issues
hmm.. I am with Digital Ocean. Does anyone know where (physical address) exactly their NYC1 Equinix datacenter is?
emiunet··on Hacker News was down
same thing here. protected by CloudFlare..blah..
emiunet··on Structured Thinking vs. Going With The Flow
How do I know which type of "thinking" I have?
emiunet··on My personal website now has a terminal
so I was amused by this so I made this on my personal blog: http://ttran.me