Skip to content

Instantly share code, notes, and snippets.

View mpaleo's full-sized avatar
🤓
Focusing

Michael Paleo mpaleo

🤓
Focusing
View GitHub Profile
const inmuebles = [
{
id: 1,
...
},
{
id: 2,
...
},
{
@mpaleo
mpaleo / rndriver.js
Created January 2, 2017 19:22
Lowdb react native driver based on RNFS
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));
---
- name: restart nginx
service: name=nginx enabled=yes state=restarted
#!/usr/bin/env bash
echo "########################################"
echo "Update the box"
echo "########################################"
# Update apt cache
sudo apt-get update
echo "########################################"