sh Android - Adb - 请参阅依赖项问题。

Android - Adb - 请参阅依赖项问题。

dependency_issues.sh
./gradlew -q app:dependencyInsight --configuration compile --dependency support-annotations

sh Android - Adb - 请参阅依赖项问题。

Android - Adb - 请参阅依赖项问题。

dependency_issues.sh
./gradlew -q app:dependencyInsight --configuration compile --dependency support-annotations

sh Android - Adb - 请参阅依赖项问题。

Android - Adb - 请参阅依赖项问题。

dependency_issues.sh
./gradlew -q app:dependencyInsight --configuration compile --dependency support-annotations

sh Android - Adb - 请参阅依赖项问题。

Android - Adb - 请参阅依赖项问题。

dependency_issues.sh
./gradlew -q app:dependencyInsight --configuration compile --dependency support-annotations

sh Android - Adb - 请参阅依赖项问题。

Android - Adb - 请参阅依赖项问题。

dependency_issues.sh
./gradlew -q app:dependencyInsight --configuration compile --dependency support-annotations

sh Android - Adb - 请参阅依赖项问题。

Android - Adb - 请参阅依赖项问题。

dependency_issues.sh
./gradlew -q app:dependencyInsight --configuration compile --dependency support-annotations

sh 在CentOS 6.7上安装Git

在CentOS 6.7上安装Git

Git_Installation.sh
yum groupinstall "Development Tools"
yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel expat-devel curl-devel
yum install  gcc perl-ExtUtils-MakeMaker
yum remove git
wget https://github.com/git/git/archive/v2.5.3.tar.gz -O git.tar.gz
tar -zxf git.tar.gz
cd git-2.5.3
make configure
./configure --prefix=/usr/local
make install
 
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
git config --global color.status "auto"
git config --global color.branch "auto"
git config --global color.interactive "auto"
git config --global color.diff "auto"
git config --list

sh Unix更改文件权限

Unix更改文件权限

unix_file_permissions
chmod ### file

User - Group - World 

0=No Permissions Whatsoever

1=Execute Only

2=Write Only

3=Write and Execute

4=Read Only

5=Read and Execute

6=Read and Write

7=Read, Write, and Execute

Example: chmod 744 test.doc

sh 使用package.json(engines.node)中指定的节点版本。使用jq和nvm。如果要安装版本,则会在缺少版本时提示。

使用package.json(engines.node)中指定的节点版本。使用jq和nvm。如果要安装版本,则会在缺少版本时提示。

use-pkg-node-version.sh
#!/usr/bin/env bash
#
# Switches to node version with nvm to the one defined in package.json
# Dependencies: nvm, jq
# Usage: Alias this by sourcing with ".", e.g. alias nnn='~/bin/use-pkg-node-version.sh'

if [ ! -e package.json ]; then
	echo "Missing package.json file"
	return 1
fi

PKG_VERSION=$(jq '.engines.node' package.json)
VERSION=$(echo $PKG_VERSION | sed -E 's/"[<>=]*([0-9]([\.0-9a-z]+)?)*.*"/\1/')
NVM_VERSION=$(node -v)

verlte() {
    [  "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ]
}

verlt() {
    [ "$1" = "$2" ] && return 1 || verlte $1 $2
}

if [ $VERSION == "null" ]; then
	echo "There is no version defined in package.json"
	return 1
fi

echo $(echo "Version found $PKG_VERSION") $(echo "Currently $NVM_VERSION")

if verlt v$VERSION $NVM_VERSION; then
	echo "Current node version ($NVM_VERSION) is newer than the project's ($VERSION)"
	return
fi

if ! nvm use $VERSION ; then
	while true; do
		read -p "Would you like to install version $VERSION?" yn
		case $yn in
			[Yy]* ) nvm install $VERSION && nvm use $VERSION; break;;
			[Nn]* ) return;;
			* ) echo "Please answer yes or no.";;
		esac
	done
fi


sh 用于设置GitHub项目问题标签的Shell脚本,如<http://rentzsch.tumblr.com/post/252878320/my-lighthouse-ticket-set中所述

Shell脚本用于设置GitHub项目的问题标签,如<http://rentzsch.tumblr.com/post/252878320/my-lighthouse-ticket-settings-with-colors>中所述.WARNING:脚本假设一个新的项目,还没有真正使用标签。它会删除所有默认标签,如果您已将它们用于任何事情,则表示数据丢失。

setup github issues labels.sh
USER=rentzsch
PASS=mypassword
REPO=mogenerator

# Delete default labels
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/bug"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/duplicate"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/enhancement"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/invalid"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/question"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/wontfix"

# Create labels
curl --user "$USER:$PASS" --include --request POST --data '{"name":"accepted","color":"66aa00"}' "https://api.github.com/repos/$USER/$REPO/labels"
curl --user "$USER:$PASS" --include --request POST --data '{"name":"reproduced","color":"006600"}' "https://api.github.com/repos/$USER/$REPO/labels"
curl --user "$USER:$PASS" --include --request POST --data '{"name":"cantreproduce","color":"996361"}' "https://api.github.com/repos/$USER/$REPO/labels"
curl --user "$USER:$PASS" --include --request POST --data '{"name":"fixcommitted","color":"003B84"}' "https://api.github.com/repos/$USER/$REPO/labels"
curl --user "$USER:$PASS" --include --request POST --data '{"name":"bluesky","color":"66ccff"}' "https://api.github.com/repos/$USER/$REPO/labels"
curl --user "$USER:$PASS" --include --request POST --data '{"name":"duplicate","color":"aaaaaa"}' "https://api.github.com/repos/$USER/$REPO/labels"
curl --user "$USER:$PASS" --include --request POST --data '{"name":"declined","color":"83000C"}' "https://api.github.com/repos/$USER/$REPO/labels"
curl --user "$USER:$PASS" --include --request POST --data '{"name":"new","color":"ff1177"}' "https://api.github.com/repos/$USER/$REPO/labels"
curl --user "$USER:$PASS" --include --request POST --data '{"name":"fixreleased","color":"3f3f3f"}' "https://api.github.com/repos/$USER/$REPO/labels"
curl --user "$USER:$PASS" --include --request POST --data '{"name":"resolved","color":"3f3f3f"}' "https://api.github.com/repos/$USER/$REPO/labels"
curl --user "$USER:$PASS" --include --request POST --data '{"name":"wishlist","color":"66Aa00"}' "https://api.github.com/repos/$USER/$REPO/labels"