HNHacker News
TopNewBestAskShowJobs

pvtmert

571 karma · joined July 10, 2016

Tinkerer, hacker, researcher, & cyclist...

  DevOops Engineer by trade
  BSc. Software Engineer by training 
https://mert.akeng.in https://pvtmert.at.hn

https://meet.hn/city/49.6202283,6.1729364/

submissionscomments
pvtmert··on Ask HN: As a solo founder, what are the reasons not to use Docker?
I can only speak for myself. So;

- Easy setup (built-in)

- Re-using existing compose files local+staging+production (of course swarm-mode needs to be enabled locally)

- Easy scaling

- Using other container related tools (if they're not kubernetes specific) are mostly 1-step. (eg. prometheus et.al.)

pvtmert··on AI Text-to-Speech models have accents too
I think this is usable in Latin-based languages. Because Turkish is pretty weird on macOS Catalina + Chrome 92

For instance, "Can" is a Turkish name. So, the pronunciation has nothing to do with the accent in that case.

pvtmert··on (All) DNS Resource Records
basically normal A response (whether or not coming from a cname) doesn't define any weights or priority. just order may be changed by the server

according to clients' geoip, you just need to adjust weights/priority in the srv record so, a client can fallback next-nearest server

pvtmert··on What every coder should know about gamma (2016)
Partly agree partly not

It is not really required to memorize these stuff anyway. Just the idea of it gives you a broader perspective.

One of the reasons I come to HN and read these things. They add some knowlegde to me, even though I cannot list them or their exact properties, I get to be familiar with the topic.

pvtmert··on Return of the Mac (2005)
What motivates hackers like me is not the freedom. Quite opposite actually. Hacking the device require some kind of lock-in.

So, when you achieve something, it will worth the effort.

pvtmert··on Last remaining 1000+ user community channel seized by Freenode staff
Channel takeovers were mostly done by re-creating channels, which causes everyone to be kicked from a channel.

Also, yes there are lots of idle people but at the same time when nobody responds to them with ~50ppl to the room, they will eventually wonder why.

Plus channels having no op (Just chanserv), maybe freenode staff. Which will look even weirder than usual.

pvtmert··on JavaScript for Shell Scripting
These stuff generally called as "0-day".
pvtmert··on Windows Terminal Quake Mode
I am using iTerm2 just for this feature. Otherwise I'd use Alacritty

Also It is pretty good to see Windows Terminal finally gets usable features.

A POSIX compatible shell would be nice...

pvtmert··on Windows Terminal Quake Mode
for callofduy it was `seta thereisacow 1337` you could do just set but seta = archive = persistent
pvtmert··on Ask HN: For those who use Chrome, why do you?
First couple months it didn't even worked for me. (I was in Turkey at the time)

Also sync matters mostly with mobile. I guess whoever downvoting me just thinks syncing is for desktop...

pvtmert··on Ask HN: For those who use Chrome, why do you?
Firefox's fragmentation in Linux was so bad that I stopped using it. Debian shipped with Iceweasel or ESR, some parts patched/changed.

Compared to chrome (which kept very stable line of features or bugs) ff was mess.

pvtmert··on Ask HN: For those who use Chrome, why do you?
I am actually suprised nobody mentions profiles.

I seperate stuff using profiles (little avatar next to menu button on top-right corner)

Especially important if you want to split your clients' stuff and with your own things. (History, bookmarks, sync)

And sync is the second reason. Of course firefox would work too but they were just late to the game. I already had lots of stuff (bookmarks, history, passwords) to migrate to...

I would prefer Safari for longer battery life, less resource consumption and overall smooth experience (plus privacy features) than Chrome.

pvtmert··on Change your MAC address with a shell script (2019)
Yes but if they were connected to the same router.

Most of these systems are distributed and having multiple APs connected to some central Radius server.

Because modern systems optimize for roaming between nodes, you can join network, use dns-sd to gather mac addresses of the computers which are not physically connected to your AP (in conjuction with 'tcpdump -I')

Then voila, 2 devices using same MAC without any problems.

PS. I personally use "printer" addresses for 2 reasons: 1: generally everyone forgets to nicely setup firewall for them since they're infrastructure objects. 2: they have relatively less traffic and probably located some obsecure room with an AP for them.

pvtmert··on Change your MAC address with a shell script (2019)
Instead of setting some random address in public networks, use someone else's address.

Many public networks in Turkey require registering with TCKN (national id number) due to some "laws".

I don't want some random guy to log my activity and tie it to me direcly.

In macOS tcpdump command has ability to "monitor mode" wifi card.

    sudo tcpdump -Ie
> -e: shows mac addresses > -I: monitor mode (capital i)

Then I use someone who's idle but has legimitate connection.

Please note that those networks are not encrypted/secured at all. So anyone within range (or with large antenna) can essentially capture or inject something...

pvtmert··on Change your MAC address with a shell script (2019)
I am actually suprised this was possible even in Mavericks. Using it since then...

Yes UI shows original address and existing connection will use existing address (ie not changed) But if you re-connect (turn off then on WiFi) it will use new one.

Weirdly "disconnect" was always using whatever set in the ifconfig. Meaning that I could "deauthenticate" other people by spoofing their address.

pvtmert··on Bangui magnetic anomaly
2001 reference?
pvtmert··on WhatsApp gives users an ultimatum: Share data with Facebook or stop using app
You can, just deny the request and add contacts in Telegram. At least in android, I denied contact list and manually adding relevant ones to telegram.
pvtmert··on Dockerfile Best Practices
docker daemon has a id remap option called userns-remap

https://www.objectif-libre.com/en/blog/2020/06/30/securiser-...

pvtmert··on Apple has threatened to remove Amphetamine from the App Store
Convenience.
pvtmert··on No Cookie for You
This should be pinned :)
pvtmert··on Tinycore Linux
SLAX has similar goals with little bit bigger base...

Fun facts: - SLAX was Slackware based, but it switched to Debian base (apt) - The first 'linux-live-kit' was from Slax's author. - It used layered filesystem (overlayfs) long before Docker & containers were a thing. - It had 'persistence' while running off the usb, via 'file' or partition. (Then Ubuntu did similar thing with casper-rw <- term for squashfs+overlay persistence in ubuntu)

Link: http://slax.org

pvtmert··on Docker fails to launch on Apple Silicon
One of the most forgotten thing is filesystem in macOS is case-insensitive while Linux it's case sensitive.

Creates lots of headaches with mounted volumes (local vs staging, prod etc)

pvtmert··on Docker fails to launch on Apple Silicon
The point is not 'syncing' at all. Seamlessly deploy from the machine to the container & run it in a 'native' environment.
pvtmert··on Docker fails to launch on Apple Silicon
I really don't understand why is this fuss.

TBH docker-on-mac is not that good. That is why I've most minimal config and just using to have some 'linux' time to time.

What I use is `docker context` command or DOCKER_HOST=ssh://user@host pattern.

env-var is more convenient for 'ephemeral' hosts. (It uses your own SSH-key to connect to host) And for static hosts (like staging machines) I use context.

Plus it uses native SSH client, so it supports ProxyJump or JumpServer or Bastion Host, forwarding, session-reuse, YubiKeys & whatnot.

So, I'd rather to have client on my laptop, having 1 or 2 medium sized hosts in Digitalocean, AWS, whatever place. (Some providers even gives you docker hosts with ssh access, like civo.com - disclaimer: I just started using them last weekend...)

PS: You cannot 'mount' your local folder to remote host. But you can 'build' your local folder on remote host. (Thanks to BuildKit / DOCKER_BUILDKIT=1)

Edit: I remembered that I've installed (compiled actually) docker-cli to my Android phone using Termux. You can't run daemon at all. The client gives some warnings at the start saying some things not right. But it works with those methods & variables...

Hint:

    $ go get -u -v github.com/docker/cli/cmd/docker
    # profit...
pvtmert··on Ask HN: How do you prevent code leak from current/former employees?
Make it harder: Cloud VM accessible only via browser VNC connection. No copy-paste between client and the machine.

Person can take screenshots or type-it them into their machine by looking side-by-side

Very hard to work with tho. More expensive than having a laptop per person.

---

The proper way. Or the other way

IMHO implement the 'policy' use company accounts for company related work and stuff. So create new github, new gmail etc. Use & force SSO for them. Especially all cloud things.

Be nice to people, help them to get where they want to get. Eg, if they're leaving and want to show them to a recruiter help them to get most of it. This way you'll know how much got leaked. Be transparent. Be passionate.

pvtmert··on About iSH’s pending removal from the App Store
One can tell apple that any application that shows web pages essentially remotely executing code on their device.
pvtmert··on Biden wins White House, vowing new direction for divided U.S.
As a Turkish person I can say that even if it may look like we've some military power, most of qualified people prisoned after 2016 coup attempt.

It is like a person speaks louder to hide their ignorance. That is what Turkey is doing right now.

pvtmert··on Dockerfile Security Best Practices
I'm bit aganist having env-secrets inside container.

Because PID 1 has that env, all processes spawned from that can read all of those.

I prefer mounting them to /run/secrets via tmpfs. Which can also have selinux policy attached.

This way, someone else cannot read them by spawning shell inside container

pvtmert··on Why most Hacktoberfest PRs are from India
The point is life-quality is way less than Netherlands or Belgium.

Ofc when I throw party in my studio apartment, It becomes one of the most dense places in the world. But that does not result people fighting for beers, as long as there are enough beers in the fridge ;)

Essentially, there are a few beers in India's fridge. That results in a fistfight.

pvtmert··on Why most Hacktoberfest PRs are from India
tl;dr because of population, people step on each other to feel 'successful' and get approved by their family/peers.

unfortunately this happens in many places if not all. (eg same cr*p applies here in Turkey, if you're male and not a doctor or engineer or government employee, basically seen as failure)

it is apperantly much more visible/causing problem because of lack of resources, strict cultural values as well as driven by high population

← PreviousPage 10 of 13Next →