HNHacker News
TopNewBestAskShowJobs

k4ch0w

703 karma · joined May 1, 2017

submissionscomments
k4ch0w··on Ask HN: What is one Vim trick most people don't know?
Macros, Macros, Macros. These are a game changer when editing large files. Use the `q` key and followed by any letter you like, I default to `a`. Perform some action, like deleting a line, appending to the start of a line, or searching for a word then deleting it. Press `esc`, then type in the number of times you want to repeat the action, followed by `@` and the letter you chose. I.E `10@a` and it will perform that action 10 times.
k4ch0w··on Ask HN: What is the one quote that you carry around in your head all the time?
You have power over your mind - not outside events. Realize this, and you will find strength.
k4ch0w··on Digital Capitalism’s War on Leisure
I know I usually don't see gifs on this website but this completely sums it up.

https://i.imgur.com/5lKYfh6.gifv

k4ch0w··on HN Poll: Fads – Hype and Hope
Hyper: D, B, G; Hope: E, A, C
k4ch0w··on Ask HN: Which new Macbook sucks least?
I got the latest macbook with touchbar. I honestly hate it. After typing for about 20 minutes this thing starts to hurt my fingers. The keyboard is too squished together. I never use the extra touchbar features, and if you use vim, the esc is on the touchbar which makes it feel weird. I'd avoid it imo.
k4ch0w··on Ask HN: Who regulary wears a suit and tie to the the office?
Some people do it to exploit the Halo effect. https://en.wikipedia.org/wiki/Halo_effect
k4ch0w··on Show HN: Auditus – Ebook to Audiobook Conversion
Love the idea about the project. I tried to upload a Epub and got an error page. I tried 3 times and different voices. I look forward to seeing more of it and think it's an awesome idea.
k4ch0w··on Stay at my acquihire? Need advice
It's hard to do work you don't feel in anyway connected to. I'd try a technique called negative visualization. Imagine if you don't take the money and leave. What will your life look like in the next year, 5 years.

What is the worst possible scenario? Will you regret it for the rest of your life or will you be happy you made the decision. That money could potentially free you to pursue more meaningful work.

Look, everyone works a job they dislike at some point in their life. You won't always feel passionate about the things you're doing, but you need to weigh how much you may regret it otherwise. This sounds like a sure bet for 2x-5x more in straight cash within your 20's. People don't always get that.

Maybe, try to change something different in your routine of life. Shift the focus from work for 12 months to something else, like dating, a hobby, a sport.

If you seriously hate it, I mean really hate like it boils your blood to get up in the morning and think about going to work then leave. Absolutely, make your peace of mind and health the most important thing. However, this may be an opportunity for you to shift focus and coast for a bit.

k4ch0w··on Ask HN: Vulnerabilities in ML frameworks
Well, that's a really broad question in itself. It is possible in the future some vulnerability will exist in the framework, a security researcher just hasn't discovered it yet. If you're referring to a framework written in C/C++, then yes a buffer overflow is possible. Hopefully though, modern day protections such as ASLR, CFG, CFI, etc. protect you. I'll refer you to an old classic http://insecure.org/stf/smashstack.html, however it is very hard to do this attack today. Modern compilers are pretty good at preventing developers from shooting themselves. <3 clang's memory sanitizer.

Arbitrary execution is more possible IMO. The way a lot of ML models are stored is by being a serialized file using a framework like pickle or Java's serialization. Theoretically, you could add code into a precompiled model that when someone loads would execute arbitrary code. This could be done using a simple technique like a code cave seen here https://en.wikipedia.org/wiki/Code_cave. I haven't had time to dig into this myself, but I honestly don't think it would be hard.

I think in the next couple years you will see more vulnerabilities pop up in these frameworks, but finding security vulnerabilities take time.

k4ch0w··on Spotify Form F-1
I only left Spotify for Youtube Red/Google Music. It was not an easy decision because they have the best music selection and discover imo. They should acquire pandora and then I think they could dominate this space.
k4ch0w··on Ask HN: How are you securing your home network?
I'm a nerd, I have my own PFsense router setup. This allows me to customize my entire network, with VLANs, snort and adblockers. I keep the Wifi on it's own seperate VLAN from my servers, so when guests come over I don't worry about them. I also have PIA setup by default so everything goes through a VPN. I highly recommend it! You gain network skills really quickly and it's not painful to setup once the OS is installed.
k4ch0w··on Ask HN: Which Linux distribution do you use, and why?
Kali Linux on usb for pentesting

Ubuntu 17.04 for Machine learning/Cuda because anything else takes more time to work.

Alpine-Linux for Dockerfiles because it's the bare minimum.

Arch Linux for learning Linux, because you're responsible for installing what you'd like to have a stable machine.

k4ch0w··on Application Security in a DevOps Environment
It varies widely from company to company. It depends on how dangerous of a bug it is as well as the exploitability; this determines the remediation period. Usually, very severe bugs like heartbleed or front facing deserialization are fixed within 1-7 days, whereas a CSRF in some random POST call could be 90/180 days depending on how a company treats less severe bugs.

You have a security guy assigned to keep track of bugs and is notified after the remediation window has passed. It's usually assigned to the person that found it because they are able to easily understand the issue and then verify the fix. They will confirm it has been fixed for all the machines it was found on, then close the ticket out. However, often bugs that are considered unlikely to be exploited will be kicked back, and long chains of emails between the security guys saying "Please fix this bug! I'm just trying to do my job", and developers saying "We have 0 dev cycles and a release coming up, not a high priority! Can't you just close it?"

This email thread goes on for weeks/months, and the security guys push the redemption period to help developers meet their deadline. It gets pushed back so many times that the security guys get sick of reporting it because they know it's a low severity issue, but still is a problem none the less. They push it up the chain of command and force the PM of the project sign off on the risk associated with what could happen if exploited, they almost always have it fixed immediately then it's closed.

k4ch0w··on Ask HN: Is it possible to train oneself to be calmer/kinder?
I would say weightlifting has made me much calmer in my day to day. If I workout in the morning, nothing else can bring me down during the day. It's just the iron against me. If I can conquer my mind telling me I can't do that I'm too weak, and repeatedly prove it wrong then, what else is my mind wrong about?

It annoys my girlfriend sometimes because nothing really bugs me or gets me really upset though she tries her best. I would say this, and stoicism are big reasons why. There are also numerous studies that show exercise reduces stress an improves your overall well being.

k4ch0w··on Show HN: CodeOwl – Organize your notes, todos, and code snippets in one place
No worries man. I love the initial site and concept. I can't wait to see more of it. I will show it to my team next week. I'd love to save screenshots and an autosave, I'm pretty forgetful.

I will continue to use it and give you guys feedback. Nice work!

k4ch0w··on Show HN: CodeOwl – Organize your notes, todos, and code snippets in one place
Very cool man. I could definitely see myself using this. Is there a mode to set new notes to tiling mode rather than down a list? Something similar to https://i3wm.org/
k4ch0w··on Ask HN: What was your greatest accomplishment of 2017?
Learning how to be more social.

It may sound simple, but I constantly avoided social situations because I was worried about being judged and people disliking me. I realized by not even trying I already made people's judgements for them about me.

People are actually pretty friendly when you take a genuine interest in them. This in turn helped me to go on more dates and meet a nice woman whom I've been seeing for a couple months.

Someone told me that everyone wants to be loved, everyone wants to be liked and everyone wants to feel appreciated. I really took this to heart when interacting with strangers.

k4ch0w··on “if you type in your pw, it will show as stars”
password123
k4ch0w··on Ask HN: How do you stay healthy?
Something I can answer! Finally. Yay.

You are off to a great start. 5X5 is a great beginner program and imo the best way to get your beginner gains. There is also another closely related routine called Ice cream fitness which some people prefer. Eventually, you will want to taper off this once you get the beginner gains. I'd recommend getting a trainer for a 1-3 months to get your forms down, if you can afford it.

If you are just starting to get healthy, counting calories can be a bit much. You don't want to overload yourself when building a new habit like working out consistently. I'd just follow some simple principles.

Avoid sugars such as Soda, Coffee with syrups, candy and the like.

Avoid alcohol completely if possible. I still enjoy beers socially, humans are weirded out if you don't drink with them. However, I never drink alone.

Always eat before going shopping, this will prevent you from buying extra goodies you might not necessarily need. The easiest way to not eat bad food is to never buy it at the store. If you know it's in your house, you will eat it.

Try to eat outside of your house less. You don't know how the food is being prepared, how much oil, salt, sugar, etc. is in the food. You can't always avoid this but having a high ratio of eating out vs. at home helps.

Some additional random things

It's a process and you shouldn't don't compare yourself to anyone other than who you used to be.

No one at the gym is looking at you. They are so busy in their own routine.

You should find a playlist that amps you up on your way to the gym. You want to train your brain and body to be ready to fk things up when you step through those doors.

If you are severely overweight, everyone that is really fit in the gym is rooting for you. We know the struggle, and we know how hard it is to make a change for your health. If you think people are laughing at you, it's in your head. Again, people are into their own routines.

If you see a big guy at the gym, don't be afraid to ask him for some advice. They may look scary, but I promise they are just regular people and are usually weirdly friendly.

Muscles don't grow unless you overload them. If muscle is the goal, your going to need to push yourself.

k4ch0w··on macOS High Sierra: Anyone can login as “root” with empty password
I just have no words, it seems intentional. They may want to review their build pipeline to check someone didn't manipulate the source code before it was signed. I haven't seen an easy root priv-esc like this in a long while.
k4ch0w··on What the Stoics did for us
You don't, I think that's fair.

Everyone comes from a different background and sometimes the people around you don't "Grow up", so you never learn it yourself without discovering a new book that gives you this insight. I guess that was the case for me, and just wanted to share my thoughts with others.

k4ch0w··on What the Stoics did for us
Stoicism was the only philosophy that I felt was practicable in he real world today. It reminds you that you have control over your own thoughts and you can choose how to respond to outside events. You can appreciate what you have now by negative visualization and remembering there was a time when you wanted it more than anything. That your hard work is good for your own soul even if no one else appreciates it. That life is fleeting, people will leave you, will die and betray you but not be surprised when it happens.

I am in no way affiliated with this site or mailing list but I can't recommend this site enough, it's the only mail I always open in the morning. It's nice everyday to get a new tale of how someone was stoic in a difficult situation. https://dailystoic.com/

k4ch0w··on Teenagers are growing more anxious and depressed
Hey man, I hope shit gets better for you. That sounds awful and I don't think it's that uncommon today.
k4ch0w··on Teenagers are growing more anxious and depressed
I like being around the guys here on HN. I don't mind that they are smarter than I. You always learn something new and are surrounded by the latest in Tech. I'd say just surrounding yourself with the people here will in turn make you smarter/knowledgeable.
k4ch0w··on The Western Elite from a Chinese Perspective
I did some consulting work at Costco. Their IT is all people that were once cashiers/trolley pushers. They pride themselves having staff loyal to the company and in turn take care of them. I would assume it's true pretty much everywhere else around the company.
k4ch0w··on Stanford Compilers Course
This happened to a linear algebra course I wanted to take. It was on Coursera and for some reason removed.
k4ch0w··on The Effect of Cold Showering on Health and Work: A Randomized Controlled Trial
You may be right and it's just how I perceive myself in the world. :-p
k4ch0w··on The Effect of Cold Showering on Health and Work: A Randomized Controlled Trial
I actually went and met Wim. I took one of his seminars. He had us all go outside into a pool of ice together for about ~1 minute with all of us chanting who let the dogs out while we froze. I walked out completely red because it was the coldest thing I'd ever done. At that point I was doing cold showers for about a year and a half.

I am a very physical person and his method was the first one to put my mind into a meditative state. You actually feel it in your body and shock it which silences your regular thoughts. You only focus on your breathing and how you feel in that moment. It gives me a really quick reprieve when working on a difficult problem.

You have people that take his method to extremes though, I remember one guy at the seminar literally pissed himself from holding in too long. It can make it all seem like pseudoscience. I can confirm that it has a very physical effect on my body and helps me meditate a lot easier.

A side effect of the ice training is that I sweat in really cold weather. I live in Seattle and people look at me funny cause I'm rocking a t-shirt and shorts but if I wear a jacket I'm boiling.

k4ch0w··on Banks Enforcing Lower Security for Profit
1. It happens more than you'd think. Some legacy system is still up and they are connected to the same credential store. You find a hole and get into their internal network and some random webportal that no one maintains still has access to the database.

2. Yes, so this one is more like you are shooting with a shotgun from a long long range and hoping to hit. You can improve the accuracy by using a password dump on your target. People have a common pattern that they use with their passwords. You can either find one that is still being used or try to find a couple they have used and create a new one. Great site to demonstrate the power of a password dump is https://haveibeenpwned.com/. So in some cases it is possible, but as someone who professionally red teams, I wouldn't bruteforce past a certain time period before trying something else.

k4ch0w··on Banks Enforcing Lower Security for Profit
Bro, totally not a dumb question.

From an Attacker's point of view, yes logging in from the same IP against the same account will get you banned fairly quickly. People put up their best defenses on the most obvious endpoint, which is why a good attacker quickly tries something else. However, two possible routes to circumvent this are

1. Find a vulnerable API call/Webportal on the bank's other sites that don't have IP banning but require authentication. This happens much more than you'd realize.

2. A distributed attack, either with a large proxy network or if you have a botnet, in which you bruteforce the credentials with different time intervals/simulated human behavior to not lock out the account.

← PreviousPage 6 of 7Next →