Skip to content

Instantly share code, notes, and snippets.

View oskarhertzman's full-sized avatar
⌨️
Mashing keyboard

Oskar Hertzman oskarhertzman

⌨️
Mashing keyboard
View GitHub Profile
@oskarhertzman
oskarhertzman / package.json
Last active January 24, 2024 18:31
React Native scripts
"scripts": {
"start": "watchman watch-del-all && react-native start --reset-cache",
"react:link": "react-native link",
"android": "react-native run-android",
"android:shake": "adb shell input keyevent 82",
"android:clean": "cd android && ./gradlew clean && ./gradlew cleanBuildCache && cd .. ",
"android:build:store:aab": "cd android && ./gradlew bundleStoreRelease && cd ..",
"android:build:aab": "cd android && ./gradlew bundleRelease && cd ..",
"android:build:apk": "cd android && ./gradlew assembleStoreRelease && cd ..",
"android:release": "react-native run-android --variant storeRelease",
@gbero
gbero / fish_shell_android_home.txt
Last active May 14, 2024 06:47
Export $ANDROID_HOME on MacOS with Fish shell
touch ~/.config/fish/config.fish;
echo "set --export ANDROID $HOME/Library/Android;" >> ~/.config/fish/config.fish
echo "set --export ANDROID_HOME $ANDROID/sdk;" >> ~/.config/fish/config.fish
echo "set -gx PATH $ANDROID_HOME/tools $PATH;" >> ~/.config/fish/config.fish
echo "set -gx PATH $ANDROID_HOME/tools/bin $PATH;" >> ~/.config/fish/config.fish
echo "set -gx PATH $ANDROID_HOME/platform-tools $PATH;" >> ~/.config/fish/config.fish
echo "set -gx PATH $ANDROID_HOME/emulator $PATH" >> ~/.config/fish/config.fish
echo "set --export JAVA_HOME /Applications/Android\ Studio.app/Contents/jbr/Contents/Home;" >> ~/.config/fish/config.fish
@danielestevez
danielestevez / gist:2044589
Last active April 10, 2024 07:51
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}