amoffat / focus Goto Github PK
View Code? Open in Web Editor NEWPrevents you from being on reddit or facebook all day
Prevents you from being on reddit or facebook all day
@amoffat I've noticed that the navigation on your pages theme http://amoffat.github.com/focus/ doesn't scroll on the newest webkit update. This was a bug that happened after webkit updated recently. You can regenerate your page in the theme generator and it should fix it up without loosing anything.
Let me know if you have any questions. Great work!
Here's some example source that allows it: http://code.activestate.com/recipes/439094-get-the-ip-address-associated-with-a-network-inter/
Nifty side effect: I can set it to bind to eth0
, setup domain_dev()
to fail, and it will automatically look up my IP address, and then I can expose my DNS servers to other people (or VMs) and then "foo.dev" automatically resolves to my internal network IP.
MIght be beneficial to use decorators instead of domain_www_somedomain_com
to indicate functions to run. Eg:
@domainfilter(".*.somedomain.com")
def afunctionnameinolongercareabout(dt, regexmatches):
return False
Where domainfilter
is a trivial decorator that adds to a global dictionary of regex/function pairs.
I'd love to get this to work on El Capitan. Since there's SIP now and you can't fiddle with /etc/ I moved config files to focus' folder so I got it to run but it doesn't seem to block anything. I wonder if there are people out there still using this that can help me (or show me a similar program).
it should work in theory, except for the paths of config files, and how focus.py knows about the other nameservers to fail over to (which is gotten on linux by scraping /etc/resolv.conf)
line 343 should is breaking as written I changed it from
(bind_ip, resolv_conf))
to
(config["bind_ip"], resolv_conf))
and it ran fine.
Just a note for anyone trying to get focus.py working on OS X. Go to [ System Preferences -> Network -> Advanced -> DNS ] and there you can add 127.0.0.1 as your DNS server. Then focus.py will work.
Currently AAAA records always allowed
HTTPS request are not caught.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.