Using Laravel Valet for localhost development, So it installs
dnsmasqwith it. dnsmasq runs on port53, The default DNS port. So we setup dnscrypt-proxy on port5300with the default config files in this gist.
brew install dnscrypt-proxy
| // Perform regex replacements and inject CSS/JavaScript with Cloudflare Workers | |
| // https://community.cloudflare.com/t/perform-regex-replacements-and-inject-css-javascript-with-cloudflare-workers/90279 | |
| addEventListener('fetch', event => { | |
| event.passThroughOnException() | |
| event.respondWith(handleRequest(event.request)) | |
| }) | |
| /** | |
| * Fetch and log a given request object | |
| * @param {Request} request |
| *~ | |
| *.diff | |
| *.err | |
| *.orig | |
| *.rej | |
| *.swo | |
| *.swp | |
| *.vi | |
| # Compiled source # |
Using Laravel Valet for localhost development, So it installs
dnsmasqwith it. dnsmasq runs on port53, The default DNS port. So we setup dnscrypt-proxy on port5300with the default config files in this gist.
brew install dnscrypt-proxy
| .card { | |
| transition: 0.5s; | |
| backface-visibility: hidden; | |
| transform: translateZ(0); | |
| } | |
| .card:hover { | |
| box-shadow: 0 30px 70px #000; | |
| transform: scale3d(1.05, 1.05, 1.05); | |
| } |
| // ==UserScript== | |
| // @name Dark Wide YouTube | |
| // @namespace DWYT | |
| // @version 1.0 | |
| // @description Dark Wide YouTube | |
| // @author Syed I.R. | |
| // @match https://*.youtube.com/* | |
| // @require https://raw.githubusercontent.com/madmurphy/cookies.js/master/cookies_min.js | |
| // @grant none | |
| // @noframes |
| # Tunnels to valet project with custom domain name. | |
| # Uses ngrok.com with my personal github account and auth token | |
| function tunnel_valet() { | |
| HOST="${PWD##*/}" | |
| DOMAIN=$(valet domain) | |
| SUBDOMAIN="$HOST" | |
| [[ "$1" ]] && SUBDOMAIN=$1; | |
| for linkname in ~/.valet/Sites/*; do | |
| if [[ "$(readlink $linkname)" = "$PWD" ]] |
| <?php | |
| /** | |
| * getRandomWeightedElement() | |
| * Utility function for getting random values with weighting. | |
| * Pass in an associative array, such as array('A'=>5, 'B'=>45, 'C'=>50) | |
| * An array like this means that "A" has a 5% chance of being selected, "B" 45%, and "C" 50%. | |
| * The return value is the array key, A, B, or C in this case. Note that the values assigned | |
| * do not have to be percentages. The values are simply relative to each other. If one value | |
| * weight was 2, and the other weight of 1, the value with the weight of 2 has about a 66% | |
| * chance of being selected. Also note that weights should be integers. |
If you've tried to update your Google Chrome and the update failed because of the error 11 issue, Then here's a simple and easy solution that'll let you update your Google Chrome again and fix the issue once & for all.
First try fixing with the following instructions on this page: https://support.google.com/chrome/answer/111996?hl=en&rd=1
I hereby claim:
To claim this, I am signing this object: