Skip to content

Instantly share code, notes, and snippets.

View umanusorn's full-sized avatar
:octocat:
Teamlead Android, IT MNG, Gamer, Speaker

Um Anusorn umanusorn

:octocat:
Teamlead Android, IT MNG, Gamer, Speaker
View GitHub Profile
@umanusorn
umanusorn / gist:5d3c944861ebcb14066129870af8e85f
Created January 2, 2022 03:50
gradle build error build.gradle or settings.gradle may broke your repo build
Go to settings.gradle and add follwing line or remove all these block
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
//jcenter()//deprecated
maven { url 'https://jitpack.io' }
}
@umanusorn
umanusorn / remapKeys
Created December 26, 2021 23:06
remapKeys
{"remapKeys":{"inProcess":[{"originalKeys":"164","newRemapKeys":"162"},{"originalKeys":"91","newRemapKeys":"164"},{"originalKeys":"162","newRemapKeys":"91"}]},"remapShortcuts":{"global":[{"originalKeys":"160;27","newRemapKeys":"160;192"},{"originalKeys":"162;9","newRemapKeys":"164;9"},{"originalKeys":"162;77","newRemapKeys":"91;68"},{"originalKeys":"162;160;9","newRemapKeys":"164;160;9"},{"originalKeys":"162;164;27","newRemapKeys":"164;115"},{"originalKeys":"91;9","newRemapKeys":"162;9"},{"originalKeys":"91;160;9","newRemapKeys":"162;160;9"},{"originalKeys":"91;162;32","newRemapKeys":"91;186"}],"appSpecific":[{"originalKeys":"162;37","newRemapKeys":"164;37","targetApp":"chrome"},{"originalKeys":"162;39","newRemapKeys":"164;39","targetApp":"chrome"},{"originalKeys":"91;32","newRemapKeys":"162;32","targetApp":"code"},{"originalKeys":"91;65","newRemapKeys":"162;65","targetApp":"windowsterminal"},{"originalKeys":"91;67","newRemapKeys":"162;67","targetApp":"windowsterminal"}]}}
@umanusorn
umanusorn / windows to mac key mapping.txt
Created December 26, 2021 23:03
windows to mac key mapping
## How to install
- `cd C:\Users\${username}\AppData\Local\Microsoft\PowerToys\Keyboard Manager`
- Backup file existing one of `default.json`
- Download `default.json` and add it to the current folder
## Mapped keys
| key |
|-----|
| Esc |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#303F9F"
android:pathData="M12,12m-10,0a10,10 0,1 1,20 0a10,10 0,1 1,-20 0"/>
@umanusorn
umanusorn / color.xml
Last active December 22, 2020 08:45
android material color.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
Google Material Design Color Palette for Android http://www.google.com/design/spec/style/color.html#color-ui-color-palette
https://gist.github.com/umanusorn/0aa38c430215b02ab8a90bd18b5ee60b
-->
<resources>
In Mac OSX 10.5 or later, Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home, just export $JAVA_HOME in file ~/. bash_profile or ~/.profile.
$ vim .bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
$ source .bash_profile
$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
@umanusorn
umanusorn / Remove created by in Android Studio.txt
Created April 9, 2019 08:23
Remove created by in Android Studio.txt
\/\*\*\n \* Created by ([\s\S]*)\n \*\/
Open Terminal.
Set an email address in Git. You can use your GitHub-provided no-reply email address or any email address.
$ git config --global user.email "email@example.com"
Confirm that you have set the email address correctly in Git:
$ git config --global user.email