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
| FROM tomcat:9.0.1-jre8-alpine | |
| COPY ./build/web /usr/local/tomcat/webapps/<YOUR_PROJECT_FOLDER> | |
| CMD ["catalina.sh", "run"] |
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
| import { Platform, NativeModules } from 'react-native'; | |
| import InAppBilling from 'react-native-billing'; // Android | |
| import iapReceiptValidator from 'iap-receipt-validator'; | |
| const { InAppUtils } = NativeModules; // iOS | |
| const PRODUCT_ID = Platform.select({ | |
| ios: '', | |
| android: '' | |
| }); |
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
| lsof -i :<port> | |
| kill -9 <PID> |
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
| echo -e '[Desktop Entry]\n Version=46.0.1\n Encoding=UTF-8\n Name=Mozilla Firefox\n Comment=Navegador Web\n Exec=/opt/firefox/firefox\n Icon=/opt/firefox/browser/icons/mozicon128.png\n Type=Application\n Categories=Network' | sudo tee /usr/share/applications/firefox.desktop | |
| // criar app na área de trabalho | |
| sudo chmod +x /usr/share/applications/firefox.desktop | |
| cp /usr/share/applications/firefox.desktop ~/Área\ de\ Trabalho/ |