待整理
Git提交空文件夹的技巧
原理是在每个空文件夹新建一个.gitignore文件,然后提交。find . -type d -empty -exec touch {}/.gitig
Install PHP 5.5 via Homebrew
If you're a little annoyed that Homebrew removed homebrew/php and need to run PHP 5.5 for legacy reasons, or whatever, this tap can help you!
could not find gradle wrapper within android sdk Error: spawn EACCES ionic weex cordova
将 `Android Studio.app/Contents/plugins/android/lib/templates` 复制到 `~/Library/Android/sdk/tools` 并赋予 `~/Library/Android/sdk/tools/templates/gradle/wrapper/gradlew` 可执行权限。
requirejs Clipboard not defined
In case if anyone's still struggling to make it work with requirejs, here's how it's done:
dcloud 基于 web 封装APP
window.location="http://www.baidu.com"; document.addEventListener('plusready', function(){ //console.log("所有plus api都应该在此事件发生后调用,否则会出现plus is undefined。"
ffmpeg单个转换 基于目录抽取所有视频音频 转换所有视频 无损 ffmpeg-convert.sh
```bash#!/usr/bin/env bash
url=$1
name=$2
if [ -n "$url" ]; then
ffmpeg -i "$url" -c:v copy -c:a copy -bsf:a aac_adtstoasc "${name}.mp4"
fi```