Skip to content

Instantly share code, notes, and snippets.

View 7issouDev's full-sized avatar
😄
You're Welcome At Anytime For Join my dev space.

Hassou Mohammed 7issouDev

😄
You're Welcome At Anytime For Join my dev space.
View GitHub Profile
@7issouDev
7issouDev / React Native Clear Cache
Created July 2, 2020 01:01 — forked from jarretmoses/React Native Clear Cache
Clearing the Cache of your React Native Project
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache
@7issouDev
7issouDev / node_nginx_ssl.md
Created April 5, 2020 22:01 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@7issouDev
7issouDev / sqlite_javascript
Created January 23, 2020 16:57 — forked from siddharthabose03/sqlite_javascript
Working SqLite Javascript
<html>
<head>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
// this is called when an error happens in a transaction
function errorHandler(transaction, error) {
console.log('Error: ' + error.message + ' code: ' + error.code);
}

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database