Install Screen
$ sudo apt install screen
Enter a new Screen Session
$ screen
Detach from current screen session
import React from 'react' | |
interface IProviderProps { | |
component: React.ElementType, | |
props?: Record<string, any>, | |
} | |
interface IComposeProvidersProps { | |
with: Array<IProviderProps>, | |
children: React.ReactNode, |
// useful to debug js code errors | |
adb logcat "*:S" ReactNative:V ReactNativeJS:V | |
// useful to debug native errors (when the app won't even start) | |
adb logcat "*:E" |
Install Screen
$ sudo apt install screen
Enter a new Screen Session
$ screen
Detach from current screen session
from https://stackoverflow.com/questions/25774999/nginx-stat-failed-13-permission-denied
Nginx operates within the directory, so if you can't cd
to that directory from the nginx user then it will fail (as does the stat
command in your log). Make sure the www-user
can cd
all the way to the /username/test/static
. You can confirm that the stat will fail or succeed by running
sudo -u www-data stat /username/test/static
/* | |
Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp... | |
Que tal enviar mensagens pra ela até obter uma resposta?! | |
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
Para utilizar: | |
- Abra o web.whatsapp.com; | |
- Selecione a conversa que você quer; | |
- Abra o console e cole o código que está no gist; |
import { call, put, takeLatest } from 'redux-saga/effects' | |
import axios from 'axios' | |
export const FETCH_API_REQUEST = 'FETCH_API_REQUEST'; | |
export const FETCH_API_SUCCESS = 'FETCH_API_SUCCESS'; | |
export const FETCH_API_FAIL = 'FETCH_API_FAIL'; | |
// Moved api call into own function (for easy test swapping) | |
export function fetchFromApi(userId) { | |
return axios.get(`/users/${userId}`) |
#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.
Run the following commands in sequence.
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
#!/bin/sh | |
# Config for SSL. | |
echo "--- Making SSL Directory ---" | |
mkdir /etc/nginx/ssl | |
echo "--- Copying $i SSL crt and key ---" | |
openssl req -nodes -new -x509 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj "/C=US/ST=NY/L=NYC/O=Dis/CN=www.example.com" | |
echo "--- Turning SSL on in nginx.conf. ---" |
# first: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |
#!/bin/bash | |
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |