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
#!/usr/bin/env bash | |
echo "########################################" | |
echo "Update the box" | |
echo "########################################" | |
# Update apt cache | |
sudo apt-get update | |
echo "########################################" |
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
--- | |
- name: restart nginx | |
service: name=nginx enabled=yes state=restarted |
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 RNFS from 'react-native-fs'; | |
module.exports = { | |
read: (source) => | |
{ | |
return RNFS.exists(source).then((fileExists) => | |
{ | |
if (fileExists) | |
{ | |
return RNFS.readFile(source).then((data) => JSON.parse(data)); |
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
const inmuebles = [ | |
{ | |
id: 1, | |
... | |
}, | |
{ | |
id: 2, | |
... | |
}, | |
{ |