This file contains hidden or 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
| # Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
| export PATH="$PATH:$HOME/.rvm/bin" | |
| export ANDROID_HOME=/Users/Newton/SDK | |
| export PATH=$ANDROID_HOME/platform-tools:$PATH | |
| export PATH="/Users/Newton/SDK_Flutter/bin":$PATH | |
| export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-18.jdk/Contents/Home | |
| export PATH="/Library/Java/JavaVirtualMachines/jdk-18.jdk/Contents/Home":$PATH |
This file contains hidden or 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 $SHELL | |
| open ~/.bash_profile or open ~/.zshrc or open ~/.bashrc (if SHELL = /bin/zsh) | |
| export PATH="DIRECTORY_PATH":$PATH | |
| source ~/.bash_profile or ~/.zshrc or ~/.bashrc (if SHELL = /bin/zsh) |
This file contains hidden or 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 'export ANDROID_HOME=/Users/xyz/Documents/ANDROID_SDK ' >> ~/.zshrc | |
| > echo 'export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools' >> ~/.zshrc | |
| > source ~/.zshrc | |
| > |
This file contains hidden or 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
| Enter commang: ssh-keygen & press enter until generate fingerprint | |
| then - enter command for copy to clipboard: pbcopy < ~/.ssh/id_rsa.pub | |
| Result: | |
| MacBook-Pro ~ % ssh-keygen | |
| Generating public/private rsa key pair. | |
| Enter file in which to save the key (/Users/newton/.ssh/id_rsa): | |
| Created directory '/Users/newton/.ssh'. | |
| Enter passphrase (empty for no passphrase): | |
| Enter same passphrase again: |
This file contains hidden or 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
| For MAC user only. | |
| install jfrog in Docker: | |
| $ docker pull docker.bintray.io/jfrog/artifactory-oss:latest | |
| run a new container: | |
| $ docker run --name artifactory -d -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:latest |
This file contains hidden or 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
| ## Sublime Text 3 Serial key build is 3176 | |
| > * Added these lines into /etc/hosts | |
| 127.0.0.1 www.sublimetext.com | |
| 127.0.0.1 license.sublimehq.com | |
| > * Used the license key | |
| ----- BEGIN LICENSE ----- |
This file contains hidden or 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
| "adb start-server" : start adb server | |
| "adb kill-server" : stop adb server | |
| "adb -P 5038 start-server" : start daemon in port 5038. |
This file contains hidden or 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
| public class RatioViewPager extends ViewPager { | |
| private float mRatio = 1f; | |
| public RatioViewPager(Context context) { | |
| super(context); | |
| } | |
| public RatioViewPager(Context context, AttributeSet attrs) { | |
| super(context, attrs); |
This file contains hidden or 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
| package com.example.mediaplayersurfaceswitch; | |
| import android.app.Activity; | |
| import android.content.Intent; | |
| import android.media.MediaPlayer; | |
| import android.net.Uri; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import android.view.SurfaceHolder; | |
| import android.view.SurfaceView; |
NewerOlder