allowing only 1 IP through

iptables -I INPUT \! –src 1.2.3.4 -m tcp -p tcp –dport 777 -j DROP # if it’s not 1.2.3.4, drop it insert into chain INPUT drop any tcp packet to port 777 thats not from the ip 1.2.3.4 Source: ServerFault

something to read out loud for startups

Here’s a passage from a speech by Theodore Roosevelt that gives me strength during the startup roller-coasters; the joyful excitement and the crushing disappointments. Please humor me and read it out loud: It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of […]

resize2fs – resize a live partition in linux (for use in AWS)

Hi there, You launched an instance on AWS with an EBS-backed storage. The AMI you used deployed a smaller volume than what you needed by default [insert many other reasons this might be the case], and so you need to resize it. Go to your AWS console. Find your instance under ‘Instances’. Stop your instance […]

auto-run phpunit on modified files, linux

watch -n 60 -d find <directory to look into> -mmin -1 -iname ‘”*.php”‘ -exec ‘phpunit –bootstrap=<directory to look into>/bootstrap.php {} \;’

I know I’m the right kind of busy when I…

don’t even finish this article.

Scaling Silicon Valley

Summary The world’s population will be one-day wholly integrated into the internet as buyers, sellers, passive consumers, content-creators, etc. Think about 100% reach and its political, social consequences. Think big, think huge, now is the right time for such grandiose creativity. Whatever you can imagine could be technologically as close as a use-case demo and a few […]

EV+ words to remember by 37signal’s Jason Freid

From How to Get Good at Making Money: People are happy to pay for things that work well. Never be afraid to put a price on something. If you pour your heart into something and make it great, sell it. For real money. Even if there are free options, even if the market is flooded […]