Skip to content

Instantly share code, notes, and snippets.

View ali-farhad's full-sized avatar
🤖
coding

Farhad Ali ali-farhad

🤖
coding
View GitHub Profile
@ali-farhad
ali-farhad / gist:dc5aa5160b5d462a416f1a8faa7cfd3c
Created April 8, 2025 20:24
add android sdk paths to linux/fedora/ubuntu/gnome
sudo nano .bash_profile
=> Add the following lines to .bash_profile after the “User specific environment and startup programs” comment:
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
@ali-farhad
ali-farhad / build.txt
Created March 29, 2025 09:29
create realase build of expo react native
https://docs.expo.dev/guides/local-app-production/
cd android && ./gradlew app:bundleRelease
`Cutting the long story short the command gradlew bundleRelease is used to generate an .aab file where as the command gradlew assembleRelease is used to generate .apk file so use the command accordingly`
@ali-farhad
ali-farhad / wow.js
Created May 24, 2022 17:07
Misc. goodies
// monogen - generator for vscode monoaki pro
https://monogen.vercel.app/
@ali-farhad
ali-farhad / docker.sh
Last active May 8, 2022 15:07
MY DOCKER BABIES
# 1. see all docker images
docker images
# build image from docker file if the docker file is in CWD.
docker build -t myimage .
# build image from docker file with tag
docker build -t myimage:V1 .
@ali-farhad
ali-farhad / sytles.css
Created May 7, 2022 10:57
MY CSS BABIES
/* Mixin to avoid writing terrible media queries */
@mixin minQuery($propertyName, $defaultValue, $mediaQueries: ()) {
#{$propertyName}: #{$defaultValue};
@each $breakpoint, $value in $mediaQueries {
@media (min-width: #{$breakpoint}) {
#{$propertyName}: #{$value};
}
}