- MacPorts
- QuickSilver
- TextMate
- Xcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -wKU | |
def UBER_ip_route_match(command, regex) | |
command.split("\n").select { |l| l =~ regex }.first.to_s[/([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/] || '0.0.0.0' | |
end | |
c = '10.128.0.0/24 dev eth1 proto kernel scope link src 10.128.0.48 | |
127.0.0.0/8 dev lo scope link | |
default via 10.128.0.254 dev eth1' | |
# c = %x{/sbin/ip route list match #{ip}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
class a { | |
protected $foo; | |
public function showFoo() { | |
echo $this->foo; | |
} | |
} | |