391 reputation
315
bio website mrgray.com
location New York, NY
age 35
visits member for 4 years
seen Oct 5 at 20:24

Jun
17
comment How make multiple directories appear as one to a user on linux?
You should bounty this… I wonder if some sort of hardlinkling (like Apple's Time Mahine)… or ZFS could do it?
Jun
1
comment Disable server access by hostname
Hmm, good idea. I wish apache could just solve all of my network security problems. Like send all bogus VNC connections and ssh attacks to some lame webpage.. that'll fool them!
Sep
10
comment Catch-all ACL attributes via CLI for Mac OS X?
i use this all the time BTW... is there any way to combine the two?
Aug
22
comment How to “undo” an “unzip” performed in terminal / CLI?
Oh and for the record, this can all be avoided by passing the -e $DIR option along with unzip. for example unzip -e folderInThisDir ZIPinThisFolder.zip
Aug
8
comment Lightweight PHP-supporting webserver: Nginx, Cherokee, or Hiawatha?
also, for the record, some REALLY lightweight servers can also be had by using "micro-httpd" / "mini-httpd", the somewhat obscure pserv, aka "picoserv", as well as a simple perl module, or a python script running with the import BaseHTTPServer - works surprisingly well. there are so many ways to run a web server with an executable under 100k it's actually pretty amazing.
Jul
4
comment Multicast hostname lookups on OSX
what do you get from entering scutil --dns? and how about showing a dig or nslookup that isn't working for you...
Jul
1
comment How does one escape the “ ` ” (accent grave/backtick) in a path?
the backtick is - visually - less disruptive (for me), and has less inherent semantic baggage when re-purposing it as a sort delimiter.
Jul
1
comment How does one escape the “ ` ” (accent grave/backtick) in a path?
awesome. I guess i'll choose this answer because it's nice to have two ways to do it. either way you can also use this technique locally, using just one slash, or for the slash-averse, NO SLASHES and simply the single-quote technique around the problematic file or directory.. thanks!
Jul
1
comment How can you force a Mac Pro's “Ethernet 2” link to UP, without a cable attached?
I'm tempted to accept this answer, as I bet it would accomplish what I want... But I haven't had time to buy / make one of these things to test it, so I'll wait until then to do so. Hopefully a solution that doesn't require a hacky hardware intervention will manifest itself before then...
Jun
11
comment Is it possible to separate Routing/NAT in conjunction with an internal DNSMasq host providing DNS/DHCP?
Right... But will that be enough for the router to perform it's port mapping functions, etc... Traditionally, the Router has been performing those forwards based on static private allocations in it's own configuration... How can those same forwards be specified if the router isn't handling that address space's reservations? Would it be able to handle the dynamic port translation, but not static, possibly? DNS is not the issue, it's the routing / forwarding that seems iffy.
Jun
4
comment Catch-all ACL attributes via CLI for Mac OS X?
this works well, but didn't apply Write:Delete Subfolders + Files, Inheritance:Apply to Subfolders, and Inheritance:Apply to Enclosed Files. Is it just a matter of adding those "variables"? Do you know what they would be?
May
19
comment How can you force a Mac Pro's “Ethernet 2” link to UP, without a cable attached?
When i try that, i get cannot open at -e line 1. I tried creating a simple perl script, #!/usr/bin/perl system "ifconfig tun0 10.0.0.1 10.0.0.0 netmask 255.255.252.0"; but that gave me the familiar ifconfig: interface tun0 does not exist as you can read here, there are some serious issues with tuntap on os x that make it fundamentally difficult to implement and use reliably in the same ways as is done on regular linux.
May
18
comment How can you force a Mac Pro's “Ethernet 2” link to UP, without a cable attached?
I have tuntap (use it for miredo tunnels), but there is no tunctl on mac os x, so how is one supposed to bring UP a virtual interface? Even with OpenVPN installed, there doesn't seem to be a command to add a persistent vNIC at whim, and that sticks without a vpn conection active..
May
8
comment How can you force a Mac Pro's “Ethernet 2” link to UP, without a cable attached?
Botched that last post... Any scenario in which you may want to run multiple instances of a service - or type of service on the same port/ports, internal proxying, etc. Or a different way it rears it's head... TASK: I want to run a dns/dhcp/router/whatever on a VMWare guest. CASE: The WAN connection is a cable modem that issues DHCP lease based on MAC address ISSUE: It is not possible to allow the VMWare guest to "use" the port unless you "turn on" IPV4 addressing within Mac OS X, which will ultimately interfere with the ability to consistently acquire the WAN address from within the VM.
May
8
comment How can you force a Mac Pro's “Ethernet 2” link to UP, without a cable attached?
Here is one example... although not the one I had originally posted, it is also Valid.