Comments (3)
The script still seems to work, even though I don't see /etc/init.d/networking on my machine... odd?
from get-shit-done.
sudo dscacheutil -flushcache
from get-shit-done.
Changes to /etc/hosts are taken into account immediately. In other words, networking restart is not needed.
from get-shit-done.
Related Issues (17)
- init.d/networking isn't portable. HOT 1
- Shell script does not follow links HOT 1
- HTTP Proxy
- Can't turn off work mode HOT 2
- Sed issues and duplication in /etc/hosts HOT 2
- sed: illegal option -- -
- restart network command should be /etc/init.d/network not /etc/init.d/networking
- How do I add new sites to be blocked?
- domain endings other than .com HOT 2
- How to use it?
- [shameless-plug] Self-control utility to use with get-shit-done
- Inifile hardcoded location is unpractical
- get-shit-done.sh: ini file is not correctly loaded
- PLease add a timer like for self-control
- Needs locally editable list of blocked sites HOT 6
- Demonize HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from get-shit-done.