a.k.a. what to do when your ISP starts blocking sites :(
Set the SOCKS proxy to local SSH tunnel
networksetup -setsocksfirewallproxy "Ethernet" localhost 8080
To clear the domain and port
| 127.0.0.1 media-match.com | |
| 127.0.0.1 adclick.g.doublecklick.net | |
| 127.0.0.1 www.googleadservices.com | |
| 127.0.0.1 pagead2.googlesyndication.com | |
| 127.0.0.1 desktop.spotify.com | |
| 127.0.0.1 googleads.g.doubleclick.net | |
| 127.0.0.1 pubads.g.doubleclick.net | |
| 127.0.0.1 audio2.spotify.com | |
| 127.0.0.1 www.omaze.com | |
| 127.0.0.1 omaze.com |
| /* Get the latitude and longitude from address: | |
| Author : Bastin Robins J | |
| */ | |
| // Add the link to webpage | |
| <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> | |
| //Function to covert address to Latitude and Longitude | |
| var getLocation = function(address) { | |
| var geocoder = new google.maps.Geocoder(); |
| #include <sys/socket.h> | |
| #include <sys/ioctl.h> | |
| #include <sys/kern_event.h> | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| #include <string.h> | |
| #include <net/ethernet.h> |
| import java.io.UnsupportedEncodingException; | |
| import java.security.InvalidAlgorithmParameterException; | |
| import java.security.InvalidKeyException; | |
| import java.security.Key; | |
| import java.security.KeyPair; | |
| import java.security.KeyPairGenerator; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.NoSuchProviderException; | |
| import java.security.PrivateKey; | |
| import java.security.PublicKey; |
| #!/bin/sh | |
| # Take password prompt from STDIN, print password to STDOUT | |
| # the sed piece just removes the colon from the provided | |
| # prompt: rofi -p already gives us a colon | |
| rofi -dmenu \ | |
| -password \ | |
| -no-fixed-num-lines \ | |
| -p "$(printf "$1" | sed s/://)" |
| \usepackage{tgpagella} % text only | |
| \usepackage{mathpazo} % math & text |
| /** | |
| * No Licenses. Use it in your favourite way. | |
| */ | |
| import android.content.Context; | |
| import android.os.Build; | |
| import android.os.Handler; | |
| import android.os.ParcelFileDescriptor; | |
| import android.os.ProxyFileDescriptorCallback; | |
| import android.os.storage.StorageManager; |
| #!/usr/bin/env ruby | |
| # Usage: gitio URL [CODE] | |
| # | |
| # Turns a github.com URL | |
| # into a git.io URL | |
| # | |
| # Copies the git.io URL to your clipboard. | |
| url = ARGV[0] | |
| code = ARGV[1] |
| http://cgit.freedesktop.org/xorg/app/edid-decode/plain/edid-decode.c | |
| compile with: | |
| gcc edid-decode.c -o edid-decode | |
| get EDID from IORegistryExplorer (mine, an old 24" Apple Cinema Display, is attached). | |
| Convert to binary with this command: | |
| ruby -e 'File.open("edid", "wb").write(File.read("edid.txt").split.map { |s| ("0x"+s).to_i(16) }.inject("", "<<"))' |