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:
#!/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 |
sudo mdutil -a -i off |
Pre-requisites
Steps
💬 input:
.travis.yaml
.travis.yaml
### just splitting it off (which is _fast!_): | |
ffmpeg -i inputvideo.mp4 -c:a copy -vn -sn outputaudio.mp4 | |
### converting it to mp3 | |
ffmpeg -i inputvideo.mp4 -vn -b:a 128k -c:a libmp3lame outputaudio.mp3 |
pre-push hook:
set -eu
remote="$1"
url="$2"
BRANCH=`git branch | grep "^* [a-zA-Z]" | cut -c 3- `
# npm run lint && npm run jscs && npm run test &&
if [ $remote == 'origin' ]
then
git config --global url.https://github.com/.insteadOf git://github.com/ |
In the .inputrc add set editing-mode vi
(for bash and other stuff using gnu readline)
... or in the .bashrc add set -o vi
(if you want to use it in bash only)
Source (with lots of good nuggets): http://blog.sanctum.geek.nz/vi-mode-in-bash/