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 React, { useEffect, useRef, useState } from 'react'; | |
import { StyleSheet } from 'react-native'; | |
import AsyncStorage from '@react-native-async-storage/async-storage'; | |
import { SafeAreaView } from 'react-native-safe-area-context'; | |
import WebView, { WebViewMessageEvent } from 'react-native-webview'; | |
import { StatusBar } from 'expo-status-bar'; | |
enum MessageTypes { |
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
apt-get update | |
apt-get upgrade | |
apt-get install tasksel | |
tasksel install lamp-server | |
apt-get install phpmyadmin | |
apt install openjdk-8-jdk | |
apt install maven | |
apt-get install git | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list |
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
[Unit] | |
Description= Service description | |
After=mysql.service | |
[Service] | |
User=root | |
WorkingDirectory=/app/caf-pdmg/target | |
ExecStart=/usr/bin/java -jar -Xmx4G -Xms2G -Dfile.encoding=UTF-8 app.jar SuccessExitStatus=143 | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |