This file contains 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
set -a; source .env; set +a |
This file contains 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
git config --local user.name "Your Name" | |
git config --local user.email "youremail@example.com" |
This file contains 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
"terminal.integrated.fontSize": 13, | |
"terminal.integrated.fontFamily": "'MesloLGS NF','JetBrains Mono', Menlo, Monaco, 'Courier New', monospace", |
This file contains 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
# Remove delay | |
defaults write com.apple.dock autohide -bool true && defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0 && killall Dock | |
# Faster animation | |
# defaults write com.apple.dock autohide -bool true && defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0.65 && killall Dock | |
# Revert back | |
# defaults delete com.apple.dock autohide && defaults delete com.apple.dock autohide-delay && defaults delete com.apple.dock autohide-time-modifier && killall Dock |
This file contains 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
# Deletes the Android Studio application | |
# Note that this may be different depending on what you named the application as, or whether you downloaded the preview version | |
rm -Rf /Applications/Android\ Studio.app | |
# Delete All Android Studio related preferences | |
# The asterisk here should target all folders/files beginning with the string before it | |
rm -Rf ~/Library/Preferences/AndroidStudio* | |
rm -Rf ~/Library/Preferences/Google/AndroidStudio* | |
# Deletes the Android Studio's plist file | |
rm -Rf ~/Library/Preferences/com.google.android.* | |
# Deletes the Android Emulator's plist file |
This file contains 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
# First create a user group and add users who are going to use shared brew | |
# User group : brew-usergroup | |
echo $(brew --prefix) | |
echo $(groups $(whoami)) | |
sudo dseditgroup -o edit -a $(whoami) -t user brew-usergroup | |
sudo chgrp -R brew-usergroup $(brew --prefix)/* | |
sudo chmod -R g+rwX $(brew --prefix)/* | |
ls -lah $(brew --prefix) |
This file contains 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
private static boolean isJson(String Json) { | |
try { | |
new JSONObject(Json); | |
} catch (JSONException ex) { | |
try { | |
new JSONArray(Json); | |
} catch (JSONException ex1) { | |
return false; | |
} | |
} |
This file contains 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
# Use the official lightweight Node.js image. | |
# https://hub.docker.com/_/node | |
FROM node:14.5.0-slim | |
# Create and change to the app directory. | |
WORKDIR /usr/src/app | |
# Set PROD/DEV environment | |
ENV NODE_ENV=development | |
#ENV NODE_ENV=production |
This file contains 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
SELECT | |
* | |
FROM | |
pg_catalog.pg_tables | |
WHERE | |
schemaname != 'pg_catalog' | |
AND schemaname != 'information_schema'; |
This file contains 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
brew update && brew upgrade && brew cleanup |
NewerOlder