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 React from 'react'; | |
import { useRouter } from 'next/router'; | |
import Nav from './Nav'; | |
import Header from './Header'; | |
import Footer from './Footer'; | |
const Layout = ({ children }) => { | |
const router = useRouter(); |
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
server { | |
listen 8585; | |
server_name 10.47.7.107; | |
root /var/www/sengines; | |
index index.html index.htm index.php; | |
location / { | |
try_files $uri $uri/ =404; | |
} |
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
https://installvirtual.com/how-to-install-python-3-8-on-raspberry-pi-raspbian/1. Update the Raspbian | |
Update the Raspbian before installing python. | |
sudo apt-get update | |
2. Prerequisites | |
Before installing Python 3.8 there are some dependencies that we need to install. | |
Use the following command to install the required dependencies. | |
sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev tar wget vim | |
3. Download Python |
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
#ONE LINE | |
#sudo wget -Nnv 'https://gist.githubusercontent.com/kydouglas/1f68d69e856fd6d7dc223f8e1f5ae3b3/raw/f8c3b22b9d9c4 1093150b96c815776956b523d9d/elk.sh' && bash elk.sh && rm -f elk.sh | |
# credits to @kydouglas kydouglas/elk.sh | |
# Checking whether user has enough permission to run this script | |
sudo -n true | |
if [ $? -ne 0 ] | |
then | |
echo "This script requires user to have passwordless sudo access" | |
exit | |
fi |
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 { useState } from "react"; | |
import ReactDatePicker from "react-datepicker"; | |
import 'react-datepicker/dist/react-datepicker.css'; | |
import {useForm } from 'react-hook-form' | |
import styles from "./Calendar.module.css"; | |
import TimeRange from "react-time-range"; | |
export default function Calendar() { | |
const [startDate, setStartDate] = useState(new Date()); | |
const [times, setTimes] = useState({ |