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
# Open your bash_profile and add these lines | |
alias react-native-reset-cache="react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res" | |
alias react-native-release-debug="cd android && ./gradlew assembleDebug && cd ..;" | |
alias react-native-build-debug-apk="rm -f android/app/build/outputs/apk/app-debug.apk; react-native-reset-cache;react-native-release-debug;" | |
# Then, run > source /Users/{username}/.bash_profile | |
# At this point, you are ready to go. If you want to build a debug release, just type: |
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
1.- First of all, install the gdrive binary | |
https://github.com/prasmussen/gdrive | |
2.- Execute gdrive list | |
This will try to run the command, but since you don't have any credential, will prompt in the console an url to login. Go to that url in your browser, confirm the process and copy the given token. | |
3.- Paste the token in the command line | |
4.- Add new cron jobs as you need. Replace the {database} and {folderId} with your database name and gdrive folder id, like: | |
0 3 * * * /path/to/your/mysql-gdrive.sh {database} {folderId} |
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
const DIREECTION = { | |
LEFT: 'LEFT', | |
RIGHT: 'RIGHT', | |
}; | |
class Node { | |
constructor(data, parent = null) { | |
this.data = data; | |
this.parent = parent; | |
this.level = parent ? (parent.level + 1) : 1; |
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
version: '3.3' | |
services: | |
db: | |
image: mysql:5.7 | |
restart: always | |
environment: | |
MYSQL_DATABASE: 'db' | |
# So you don't have to use root, but you can if you like | |
MYSQL_USER: '{le-username}' | |
# You can use whatever password you like |
OlderNewer