Skip to content

Instantly share code, notes, and snippets.

View ashbeats's full-sized avatar
💭
Launch Mode Ready

Ash ashbeats

💭
Launch Mode Ready
  • AxiKey
View GitHub Profile
@ashbeats
ashbeats / ANDROID_HOME.sh Follow these instruction to install Android SDK on a AWS EC2
# 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
@Sanix-Darker
Sanix-Darker / clone_sub.sh
Created June 17, 2021 09:50
[BASH]clone_sub.sh
#!/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
@jordanbtucker
jordanbtucker / open-cmd-here-admin.bat
Last active April 16, 2024 18:51
Add an "Open command window here (Admin)" context menu to folders
@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"