- Install DNSMasq
$ brew install dnsmasq- Install DNSCrypt-proxy
$ brew install dnscrypt-proxy| import os | |
| import markdown | |
| import requests | |
| import webbrowser | |
| pinToken = 'Put your Pinboard API token here' | |
| pinAPI = 'api.pinboard.in/v1/' | |
| pinGet = 'posts/all' | |
| pinURL = 'https://' + pinAPI + pinGet + '?auth_token=' + pinToken + '&toread=yes&format=json' |
| // ==UserScript== | |
| // @name Add Saved Items to Cart | |
| // @namespace https://gist.github.com/beporter/ce76204bcba35d9edb66b395bb5e9305 | |
| // @version 0.5 | |
| // @description Repeatedly refresh a given "saved items" page (Amazon, Walmart, BestBuy), look for specific "Add to Cart" buttons, click them if present, and make a lot of noise on success. | |
| // @author https://github.com/beporter | |
| // @match https://www.amazon.com/gp/registry/wishlist/* | |
| // @match https://www.amazon.com/hz/wishlist/ls/* | |
| // @match https://www.bestbuy.com/cart | |
| // @match https://www.bestbuy.com/site/customer/lists/manage/saveditems |
| // Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
| $ git ls-files | xargs wc -l |