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
# Export the path to enviroment | |
export ANDROID_HOME=/home/ec2-user/environment/android-sdk | |
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/platform-tools | |
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/tools/bin | |
export PATH=$PATH:$ANDROID_HOME/cmdline-tools |
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 | |
# First parameter is the sub-directory-absolute-path | |
# Second parameter is the link of the repo | |
# A smart split to get the repo-name, with / as a separator | |
REPO_NAME="$(echo $2 | grep -oE '[^/]+$')" | |
git init $REPO_NAME | |
cd $REPO_NAME |
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
@echo off | |
net session > nul 2>&1 | |
if /i not %errorlevel%==0 ( | |
echo You must run this from an elevated prompt. | |
goto:eof | |
) | |
call :setreg "HKCR\Directory\shell\runas" | |
call :setreg "HKCR\Directory\Background\shell\runas" |