Skip to content

Instantly share code, notes, and snippets.

@tydira
tydira / libtorrent and rtorrent on mac.sh
Created January 30, 2018 05:45 — forked from pyed/libtorrent and rtorrent on mac.sh
Compiling rtorrent on a mac
#!/bin/bash
# Installs the XCode command line tools if you don't have them
xcode-select --install
# Installs brew if you don't have it
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Makes your account the owner of /usr/local, which is preferred on single user Macs
sudo chown -R `whoami` /usr/local
# Installs all the dependencies for building libtorrent and rtorrent
brew install automake libtool boost curl lzlib libsigc++ openssl pkg-config xmlrpc-c
# Uninstall libtorrent-rasterbar if you already have it
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
tell application "Finder"
set frontApp to name of first process whose frontmost is true
end tell
set thisTrack to ""
tell application "iTunes"
if player state = playing then
set thisTrack to current track
set thisName to name of current track
set thisArt to artist of current track
#!/usr/bin/env sh
sudo defaults write -g ApplePressAndHoldEnabled -bool false
sudo defaults write -g NSScrollViewRubberbanding -int
sudo defaults write com.apple.iTunes disable-elastic-scroll -bool YES