This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# installation jetbrains | |
j_url="https://data.services.jetbrains.com/products/download" | |
tmp_dir="$HOME/tmp_jb" | |
install_dir="/opt" | |
if [ "$(whoami)" != "root" ] | |
then | |
echo "Sorry, you are not root." | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OUTPUT="" | |
until [[ ! "$OUTPUT" == "" ]]; do | |
echo "Not Connect!" | |
OUTPUT=$(mysql -h127.0.0.1 -uroot -p$MYSQL_ROOT_PASSWORD -e "SHOW DATABASES;" 2>/dev/null) | |
sleep 1 | |
done | |
echo "Connect!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.mybatis.generator</groupId> | |
<artifactId>mybatis-generator-maven-plugin</artifactId> | |
<version>${mybatis-generator.version}</version> | |
<executions> | |
<execution> | |
<id>Generate MyBatis Artifacts</id> | |
<goals> | |
<goal>generate</goal> | |
</goals> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Version=1.0 | |
Name=AVD | |
Comment=AVD | |
Exec=bash -c "DEVICES=$(/home/jason/Android/Sdk/tools/emulator -list-avds 2>&1) && /home/jason/Android/Sdk/tools/emulator @${DEVICES[0]}" | |
Icon=/home/jason/Android/Sdk/platforms/android-23/templates/ic_launcher_xhdpi.png | |
Terminal=false | |
Type=Application | |
Categories=Utility;Application; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# only run first android emulator/ | |
# ref. http://stackoverflow.com/questions/7837952/what-is-the-command-to-list-the-available-avdnames | |
# Check if the emulator command exists first | |
if ! type emulator > /dev/null; then | |
echo "emulator command not found" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# (@) start-android | |
# If the emulator command exists on this device, displays a list of emulators | |
# and prompts the user to start one | |
# ref. http://stackoverflow.com/questions/7837952/what-is-the-command-to-list-the-available-avdnames | |
# Check if the emulator command exists first | |
if ! type emulator > /dev/null; then | |
echo "emulator command not found" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install Node 6.x (https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions) | |
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
node -v | |
# Install yarn (https://yarnpkg.com/en/docs/install#linux-tab) | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Version=2.3 | |
Name=Android Studio | |
Comment=Android Studio | |
Exec=/home/jason/Applications/android-studio/bin/studio.sh | |
Icon=/home/jason/Applications/android-studio/bin/studio.png | |
Terminal=false | |
Type=Application | |
Categories=Utility;Application; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Userland mode (~$USER/), (~/). | |
# ~/.fonts is now deprecated and that | |
#FONT_HOME=~/.fonts | |
# ~/.local/share/fonts should be used instead | |
FONT_HOME=~/.local/share/fonts | |
echo "installing fonts at $PWD to $FONT_HOME" | |
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro" |
NewerOlder