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 | |
# set install version | |
VERSION=3.7.1 | |
brew install pyenv | |
export PYENV_ROOT="$HOME/.pyenv" | |
export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init -)" |
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 | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - |
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 python 2.7.10 | |
pyenv install 2.7.10 cloudsdk | |
# Download cloud SDK file | |
cd ~/Downloads | |
wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-196.0.0-darwin-x86_64.tar.gz?hl=JA | |
# open oogle-cloud-sdk |
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
# install kubectl | |
brew update | |
brew install kubectl | |
kubectl run hello-server --image gcr.io/google-samples/hello-app:1.0 --port 8080 |
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
# setting gcloud | |
gcloud init | |
# Update components | |
gcloud components update | |
gcloud components update kubectl | |
#Set CLUSTER_NAM and NODE_POOL | |
CLUSTER_NAME="micro-cluster" |
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
image: gitlab/dind | |
stages: | |
- unit | |
- build | |
build: | |
stage: build | |
script: | |
- docker build . -t $CI_REGISTRY_IMAGE:0.2 |
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 | |
find /Users/main/Desktop -atime +3 -maxdepth 1 -print0 | xargs -0 -I {} mv {} /Users/main/Desktop/Archive | |
exit |
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
[client] | |
default-character-set=utf8mb4 | |
[mysqld] | |
character-set-server = utf8mb4 | |
[mysql] | |
default-character-set=utf8mb4 |
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
# https://api.github.com/repos/docker/compose/releases/latest | |
VERSION=$1 | |
DESTINATION=which docker-compose | |
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION | |
sudo chmod +x $DESTINATION |
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
// open first page | |
driver.get("http://google.com"); | |
// open new tab | |
String windowHandle = driver.getWindowHandle(); | |
JavascriptExecutor js = (JavascriptExecutor) driver; | |
js.executeScript("window.open();"); | |
// getWindowHandles | |
ArrayList tabs = new ArrayList (driver.getWindowHandles()); |