Giter Site home page Giter Site logo

fun's Introduction

tablespoon-fun

Fun scripts from tablespoon

  • adblocker.sh - blocks ads and malware at router-level (OpenWrt only)
    • Documentation can be found here.
  • auto-blockip - squashes breakin attempts automatically
  • awesome-background-changer - randomly select a new wallpaper every hour (gnome 2 only!)
  • bt-auto-lock - lock/unlock gnome 2 session based on cell phone proximity
    • you will need to create ~/lib/bluetooth-phone and add "MAC=<your phone's bluetooth mac address>" to it for this to work
  • cli-clock - make a clock with ANSI art
    • --world : shows multiple clocks with timezone labels
    • --24hour : displays a 24-hour clock (this is the default)
    • --12hour : displays a 12-hour clock
    • This script can also be used to print strings. For a demonstration, try: ./cli-clock 'Hello, world!'
    • Because of tiny memory leaks in bash, this script will eventually (over the course of weeks/months) begin to lag a little bit. The python re-implementation below doesn't have as many features as this bash version, but it can run indefinitely without any slowdown. I submitted a bug report to the bash devs (https://lists.gnu.org/archive/html/bug-bash/2014-01/msg00012.html), but they didn't seem to think it was worth fixing.
  • cli-clock.py - re-implementation of cli-clock using python
    • Prettier than the bash version, and unaffected by bash's tiny memory leaks. However, only provides basic clock functionality.
    • You can turn it into a 24-hour clock by uncommenting line 130.
  • cpi - bash parallel pi estimator
  • cpi.py - python pi estimator (not parallel... my bash is stronger than my python)
  • last_n_minutes - bash script to print the last N minutes of a standard linux log file
  • nvidia-update - check for (and optionally download) a newer nvidia driver

fun's People

Contributors

chicks-net avatar tablespoon avatar yunake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fun's Issues

Method to add another host file to adblocker.sh?

Is adding another host file to HOST_LIST variable enough or some precautions need to be taken ?
To add don pollock's host file and hpHosts tracking servers file, what would be the preferred procedure ?

Internet stops working after some time

I installed adblocker on TP-Link Archer C7 v2 running OpenWrt Chaos Calmer 15.05 (r47060).
After some time (from minutes to hours, varies) Internet stops working on all devices. Pinging Google DNS from router and devices works. Local network also works. Changing DNS addresses to Google DNS does not help. The only solution is reboot either '/etc/init.d/network restart'

wget: can't connect to remote host: Permission denied

wget: can't connect to remote host: Permission denied
sed: /tmp/adblocker_hostlist: No such file or directory
sed: /tmp/adblocker_hostlist: No such file or directory

script has suddenly stopped fetching blocklists.

./adblocker.sh

wget: can't execute 'openssl': No such file or directory
wget: error getting response: Connection reset by peer
sed: /tmp/adblocker_hostlist: No such file or directory
sed: /tmp/adblocker_hostlist: No such file or directory

i got this when i try to start the script

running with "sh adblocker.sh"

Running with "sh adblocker.sh" causes an error at line 38 because you can't cd to the script name. Running "./adblocker.sh" works fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.