It's not totally unique, but I made a simple tool I call "watch" that runs terminal commands on file save. You specify a file glob and a command and it runs the command whenever a globed file changes. Also has a few handy flags. I use it ever day to automate my file save->compile->run workflow. It's amazing how much time you save by never having to up-arrow/enter a terminal after every save. Been meaning to update it to use file hooks instead of polling but it works.
Nearly every website owner I've worked with is obsessed with users getting 404s from old incoming links. First I wrote a cron to summarize apache logs and email a report, but that involved me building redirects or a cluster of cms changes. Its evolved into a super simple tool to help site owners see user 404s in near real time and setup their own redirects until our team gets around to fixing them. Super simple from a tech pov, but it's completely removed a huge set of annoying tasks from my plate.
it's a small "webserver" that acts as a sort of proxy between several localhost: applications and a domain name. You need to modify your /etc/hosts file but then you can access your localhost applications from dedicated domains. Mostly intended for dev purposes, not really production. Like, you could use it to test your website awesome.example.org as if it was in production on your dev-machine while it really only runs on localhost:9999 It also copies headers, so no problems when using some custom headers either! (Beware that it uses IPv6)
I built it because I wanted to able to make websites in Objective-C and I didn't like any of the stuff that existed when I started. I've learned a lot making it and enjoyed it. I don't know if I would start something like this again. Reading the RFCs and implementing FastCGI and HTTP was a lengthy and tiresome process. I enjoyed it though. Sure, now you have a bazillion Swift server-side frameworks, but at the time Swift didn't even exist. Call me a dinosaur, but I like ObjC and the Cocoa stack and I think it deserves its place on the web.
Comments (868) 410 threads
Earlier commentshttps://github.com/kctess5/file_watcher
Toying around with productizing it as https://www.404fyi.com
it's a small "webserver" that acts as a sort of proxy between several localhost: applications and a domain name.
You need to modify your /etc/hosts file but then you can access your localhost applications from dedicated domains.
Mostly intended for dev purposes, not really production. Like, you could use it to test your website awesome.example.org as if it was in production on your dev-machine while it really only runs on localhost:9999
It also copies headers, so no problems when using some custom headers either!
(Beware that it uses IPv6)
I built it because I wanted to able to make websites in Objective-C and I didn't like any of the stuff that existed when I started.
I've learned a lot making it and enjoyed it. I don't know if I would start something like this again. Reading the RFCs and implementing FastCGI and HTTP was a lengthy and tiresome process. I enjoyed it though.
Sure, now you have a bazillion Swift server-side frameworks, but at the time Swift didn't even exist. Call me a dinosaur, but I like ObjC and the Cocoa stack and I think it deserves its place on the web.
All comments shown.
Couldn't load more comments. Check your connection and try again.