Skip to content

Instantly share code, notes, and snippets.

View elinteerie's full-sized avatar
🏠
Working from home

Igwe Ugochukwu Michael Sylvester elinteerie

🏠
Working from home
View GitHub Profile
sudo mkdir /etc/ssl/private
sudo chmod 700 /etc/ssl/private
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt
##
sudo apt update
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d studentsdecides.com.ng -d www.studentsdecides.com.ng
@elinteerie
elinteerie / hidden.js
Created June 5, 2023 23:36
code to implement hiding of the videos in app-specific directory React Native
//Install the react-native-fs library by running the following command in your project's root directory
npm install react-native-fs --save
react-native link react-native-fs
import RNFS from 'react-native-fs';
// Function to download the Video From Cloud or Storage
async function downloadVideo(videoUrl, savePath) {
try {
const response = await RNFS.downloadFile({