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 |
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 |
#!/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 |
git config --global url.https://github.com/.insteadOf git://github.com/ |
sudo visudo
and somewhere in that file add
Defaults tty_tickets
alias nvm-outdated='NVM_REMOTE_LS=`mktemp` && NVM_LOCAL_LS=`mktemp` && nvm ls-remote 0.12 | tail -1 > $NVM_REMOTE_LS && nvm ls-remote 4 | tail -1 >> $NVM_REMOTE_LS && nvm ls-remote 5 | tail -1 >> $NVM_REMOTE_LS && nvm ls | head -3 > $NVM_LOCAL_LS && diff $NVM_REMOTE_LS $NVM_LOCAL_LS && rm $NVM_REMOTE_LS $NVM_LOCAL_LS' | |
# note: when succesfull & no changes shows '-bash: echo: write error: Broken pipe' | |
# which is because piping nvm ls to something does that (2> 'ing it to /dev/null doesn't work) | |
# this alias is useful as well in the same context (and works with_out_ hitches) | |
alias nvm-latest='nvm ls-remote 0.12 | tail -1 > a && nvm ls-remote 4 | tail -1 >> a && nvm ls-remote 5 | tail -1 >> a && cat a && rm a' |