Script to setup and start a standalone Android Emulator on a macOS machine.
./setup_android_emu.sh| brew tap mdogan/zulu | |
| brew install --cask zulu-jdk15 zulu-jdk11 zulu-jdk8 |
| # Function to switch JDK versions | |
| # Usage: | |
| # > setjdk # switch to latest jdk | |
| # > setjdk 8 # switch to jdk 1.8 | |
| # > setjdk 11 # switch to jdk 11 | |
| function setjdk() { | |
| oldStyleVersion=8 | |
| requestedVersion=$1 | |
| finalVersion="" |
| // Extension function to get the classname as log tag | |
| val Any.TAG: String | |
| get() { | |
| return if (!javaClass.isAnonymousClass) { | |
| val name = javaClass.simpleName | |
| if (name.length <= 23) name else name.substring(0, 23)// first 23 chars | |
| } else { | |
| val name = javaClass.name | |
| if (name.length <= 23) name else name.substring(name.length - 23, name.length)// last 23 chars | |
| } |
Stylus style for making Google Meet's raise hand button stand out
meet.google.com inside the popup and click to add a styleShort link to this page: http://caseywatts.com/ptt
Other gists & tricks: http://caseywatts.com/gists-and-tricks
Add Page...
PTT (push to talk) or whatever you'd like (maybe short so it stays on your bookmarks toolbar)| #!/bin/bash | |
| # This is the main script, only execute this to install all dependencies and finally Akira. | |
| # Once done, you can find Akira icon in your applications menu. | |
| # Execute by: ./build_akira_for_ubuntu.sh | |
| # Install Vala Language: | |
| sudo apt install vala-0.40-doc valac-0.40-vapi valac | |
| # Build Granite (make sure this script is in the same folder) |
| # I use ZSH, here is what I added to my .zshrc file (config file) | |
| # at ~/.zshrc | |
| # ------------------ Android ------------------ # | |
| # Have the adb accessible, by including it in the PATH | |
| export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:path/to/android_sdk/platform-tools/" | |
| # Setup your Android SDK path in ANDROID_HOME variable | |
| export ANDROID_HOME=~/sdks/android_sdk |
| # I use ZSH, here is what I added to my .zshrc file (config file) | |
| # at ~/.zshrc | |
| # Have the adb accessible, by including it in the PATH | |
| export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:path/to/android_sdk/platform-tools/" | |
| # Setup your Android SDK path in ANDROID_HOME variable | |
| export ANDROID_HOME=~/sdks/android_sdk | |
| # Setup aapt tool so it accessible using a single command |
| /* | |
| * Copyright (C) 2014 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |