Skip to content

Instantly share code, notes, and snippets.

View sverweij's full-sized avatar
🌪️
fighting entropy

Sander Verweij sverweij

🌪️
fighting entropy
View GitHub Profile
@sverweij
sverweij / gist:11aedcbb5f97bd9d6595
Created February 27, 2015 22:11
setting up travis -
  • make sure each active branch contains a .travis.yaml
  • if you want to build gh-pages: explicitly include it in the .travis.yaml
@sverweij
sverweij / gist:1c91ecc803d7d89b6120
Last active August 29, 2015 14:06
Block sony xperia "What's new" sweep gesture. Without root.

Pre-requisites

  • developer options switched on on phone
  • adb installed on computer (macosx: brew install android-platform-tools)

Steps

  • switch on debugging on the phone
  • connect the phone to the computer
  • start the adb shell

💬 input:

sudo mdutil -a -i off
@sverweij
sverweij / deduplicateopenwithmenus.sh
Created January 5, 2014 17:22
De-duplicate MacOSX "open with" menus
#!/bin/sh
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user
killall Finder
echo "Open With has been rebuilt, Finder will relaunch"
@sverweij
sverweij / notificationcenter_die.sh
Created January 5, 2014 17:20
Permanently kill MacOSX notification center
#!/bin/sh
# this one actually works great
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
killall NotificationCenter
# An alternative method, requiring root permission:
# http://www.maclife.com/article/howtos/how_disable_notification_center_mountain_lion
# requiring root permission:
#
# sudo defaults write /System/Library/LaunchAgents/com.apple.notificationcenterui KeepAlive -bool false