Skip to content

Instantly share code, notes, and snippets.

@webresh
webresh / hosts
Created August 8, 2018 19:18 — forked from joseconstela/hosts
Prevent OSX calling home
################################################################################
# Prevent OSX calling home #
# #
# Mix of different /etc/hosts files found over internet, and calls filtered #
# using LittleSnitch for months. #
# #
# OSX sends a huge amount of requests to Cuppertino, even when you don't use #
# Spotlight suggestions, iCloud, updates and other services. Even if they are #
# disabled. #
# #
@webresh
webresh / gist:070e4935a160d82958998eafdb710c3a
Created December 21, 2017 10:27
How to Setup USB Disk, NFS Server and Bittorrent on OpenWrt Attitude Adjustment and connect from OSX

Background:

  • I have a TP-Link MR3020 router. I live in Bangalore and am using gBroadband.
  • I frequently travel from home and feel I am not making 100% use of my broadband bandwidth.
  • I also don't like keeping my USB HDD attached to my computer because if I move physically even the USB HDD gets disconnected.

So best option was to have NAS (Network Attached Device), set up NFS (Network File Server) on my router and access my files wirelessly from my computer running OSX Yosemite. Hence the title of this article! After many failed attempts, looking through incomplete documentation, I finaly have the perfect setup. Hope this helps you in some way :)

Jargon/terminology

@webresh
webresh / bloop.js
Created December 3, 2016 10:01 — forked from jlongster/bloop.js
bloop
(function() {
// Do not use this library. This is just a fun example to prove a
// point.
var Bloop = window.Bloop = {};
var mountId = 0;
function newMountId() {
return mountId++;
}