| bio | website | scribblepadofdoom.tumblr.com |
|---|---|---|
| location | Singapore | |
| age | 27 | |
| visits | member for | 2 years, 5 months |
| seen | May 14 at 15:15 | |
| stats | profile views | 36 |
I'm the CTO at Media Pop a software and social media consultancy in Singapore. We care about what we do, work hard and do fun things. If you know Python and want a job ping me at kit@mediapop.co. :)
Likes
javascript node.js jquery jquery-ui jquery-mobile
continuous-integration jenkins fabric supervisord ssh version-control git amazon-web-services
|
Jul 30 |
comment |
How can I set up a remote port forward on port 80 to my localhost with the help of setcap? Oh I wasn't expecting that, this most certainly would answer my question. |
|
Jul 15 |
comment |
How can I set up a remote port forward on port 80 to my localhost with the help of setcap? @ByteNudger ssh is the client for sshd as I understand it. sshd is the application on the server that would do the actual binding. |
|
Jun 25 |
comment |
How can I set up a remote port forward on port 80 to my localhost with the help of setcap? @Christian Right so setting up a second tunnel from 80 -> 8000 on the remote machine is how I've worked around the inability to do it directly from remote 80 on the unprivileged ubuntu user (since I can't seem to root ubuntu when making the connection) to local 80. However it should be possible to use setcap and allow an unprivileged user to bind on <1024 on a specific, so then the second loopback tunnel on the remote from 80 -> 8000 wouldn't be necessary. I have the whole thing setup on my end with what you are suggesting, that's a non-issue. :) |
|
Jun 25 |
comment |
How can I set up a remote port forward on port 80 to my localhost with the help of setcap? @Christian I'm not sure if it's possible to run the equivalent of $ ssh ubuntu@example.org -R 80:localhost:80 in a way where it would run as superuser on the remote (without connecting to a user that is always rooted in any event), since the command is executing on my local machine, but one of the bindings is happening on the remote. Running it as root on my local machine doesn't solve the issue where the remote doesn't want me to bind to 80. I'd welcome a solution to that though. |
|
Jun 25 |
comment |
How can I set up a remote port forward on port 80 to my localhost with the help of setcap? @Christian You can't bind on <1024 without sudo by design. Like how you cannot apt-get install foo without first doing sudo. |
|
Jun 24 |
comment |
How can I set up a remote port forward on port 80 to my localhost with the help of setcap? @Gilles I'm using ext4, it's the default Ubuntu image off AWS and I haven't done anything fancy with it. |
|
May 26 |
comment |
How can I check if mysql is installed using a bash script? @kopischke I expected which mysql to give back the path to mysql that then is checked if it's a file or not. But it seems to just not work. |
|
Apr 17 |
comment |
How can I resolve the “invalid ELF header” warning when trying to SSH and what does it mean? OH, how very PEBKAC of me. :) |
|
Mar 25 |
comment |
How can I check mnt location? Oh! I think I know why it wasn't showing up. Whoever set that server up didn't actually mount anything on this machine. They set it up as a folder! Sneaky! Thanks. |
|
Nov 15 |
comment |
How do I extract with tar to a different directory? Wow that you can start a shell just like that is pretty cool! I had no idea you could do that. |
|
Apr 24 |
comment |
I'm confused as to why “| true” in a makefile has the same effect as “|| true” Makes perfect sense. :) I don't know why but reading "do nothing, unsuccessfully." makes me laugh. |
|
Apr 24 |
comment |
Is it possible to save as sudo from nano after you've forgotten to run as sudo? @xenaterracide - I think the vim question is a special case of this one, since that one actually has a solution and it seems the general case has none. I'm not sure either though, up to you. :) |
|
Apr 23 |
comment |
What should I use when cut doesn't cut it? @Mikel - Well we'll just have to disagree then. None of the 3 people that answered before you got it wrong (and you could've looked at them for guidance). :) I don't want to use your word usage because I think it makes the question less interesting to read. With the example output I can't possibly see how anyone would get it wrong. Feel free to downvote if you are unhappy with that though. :) |
|
Apr 23 |
comment |
What should I use when cut doesn't cut it? @Mikel - Considering I'm using cut to cut things out and you can see the intent of the failed example I have, it should be fairly clear in the context. I will provide sample out though to clear it up further. :) |
|
Apr 22 |
comment |
What should I use when cut doesn't cut it? @cjm - Maybe he's German: news.ycombinator.com/item?id=1181243 :) |
|
Apr 22 |
comment |
What should I use when cut doesn't cut it? I think you need to escape that closing bracket, unless I actually do need to go read up on my regular expressions. |
|
Mar 14 |
comment |
Relaunch application once finished I was looking for a general solution that was applicable to any executable, of course I could've looped it in the python script itself but I wasn't looking for that, but rather explicitly a command line tool if there was one. I wasn't planning on running anything for 2 months either, just something to use in the moment. I'm well aware of all the issues you've mentioned so far. Can I not shoot myself in the foot if I have a use case for having a hole in my foot? |
|
Mar 6 |
comment |
Relaunch application once finished @msw - It's exiting because it's done. I added a sleep timer to my version of Eelvex script. :) |
|
Mar 6 |
comment |
Relaunch application once finished @Shadur I realized that too and added a sleep 1 to my version. :) |