Hacker Newsnew | past | comments | ask | show | jobs | submit | burnbabyburn's commentslogin

you could already do that with git hooks and pass

    .git/hooks/post-commit

    #!/bin/sh
    git push origin master


but why do you need to cut carbs? I eat cabs every day in the form of pasta and I'm lean and healty


the nat table affects packets originating from the host and ones that are forwarded


You can absolutely NAT incoming packets using the NAT table. Put the rule into the PREROUTING chain and only change the port, not the dst IP. This trick is super useful for docker containers, and to allow unprivileged processes to listen on privileged ports.


It doesn't really make sense to talk about "incoming" packets at that point, as it is PREROUTING, so whether the destination address is local or not, and thus whether it's an incoming or a forwarded packet, has not been determined yet, and you can NAT however you like, local address to local address, local address to remote address, remote address to remote address, or remote address to local address.


Exactly! So served HTTP requests wouldn't be affected.


But the responses would be, I think.


"baby don't hurt me, don't hurt me, no more"


learn about how return from functions and echo behaves, this often bites many.

learn from this wiki that has many tutorials and good examples http://wiki.bash-hackers.org/bash4


I really fail to see why do you want your file system to normalize utf8 chars with hfs+ rules.


ISTR an old blog post or doc about this. Apple engineers wanted to be able to do prefix matching in HFS+, if I remember correctly. And so making the name as long as possible (via canonical decomposition) made sense to them.


Normalizing to NFC form would make some sense, and was conceivably an option.


Normalization-preserving/normalization-insensitive behavior makes even more sense!


RTFM is why we have stackoverflow's people who answer. BUM!


this is really cool! I always had in mind a project where you save every page you visit, and somehow expose them in the future to know what you visit and maybe remembering you important stuff based on some heuristic.


no thanks.


likely not working on vhost configurations if the site is not the default one.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: