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
#!/bin/bash | |
# myapp daemon | |
# chkconfig: 345 20 80 | |
# description: myapp daemon | |
# processname: myapp | |
. /etc/init.d/functions | |
D_PATH="/home/fabry/Documents/service_test/" | |
D_NAME=srv_test |
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
#include <stdio.h> | |
#include <signal.h> | |
#include <syslog.h> | |
#include <errno.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> |
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
# loca | |
upstream app_indico { | |
server 127.0.0.1:3001; | |
} | |
upstream app_thezoo{ | |
server 127.0.0.1:3002; | |
} |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
import React from 'react'; | |
import { StyleSheet, Button, View, SafeAreaView, Text, Alert } from 'react-native'; | |
import { WebView } from 'react-native-webview'; | |
import * as MediaLibrary from 'expo-media-library'; | |
import * as FileSystem from 'expo-file-system'; | |
const App = () => { | |
// save image | |
const SaveToPhone = async (imagedata: string) => { | |
// get the base64 image string |
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
import React from 'react'; | |
import { StyleSheet, Button, View, SafeAreaView, Text, Alert } from 'react-native'; | |
import { WebView } from 'react-native-webview'; | |
import RNFS from 'react-native-fs'; | |
const App = () => { | |
// save image | |
const SaveToPhone = async (data: string) => { | |
// get the base64 image string | |
const imageData = data.split('data:image/png;base64,')[1]; |