Skip to content

Instantly share code, notes, and snippets.

Avatar
:atom:
Focus and Generalist!

mDestaFadilah mdestafadilah

:atom:
Focus and Generalist!
View GitHub Profile
@mdestafadilah
mdestafadilah / UBUNTU-SERVER
Last active Sep 15, 2021
MEMBANGUN SERVER UBUNTU SOLID
View UBUNTU-SERVER
1. DOWNLOAD UBUNTU FROM HERE
- https://old-releases.ubuntu.com/releases/bionic/ubuntu-18.04.4-server-amd64.iso
2. SETUP YOUR BASIC SERVER FROM HERE
- https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04
- https://acahya.web.id/instalasi-ubuntu-server-18-04-lts-bionic-beaver-minimal-server/
3. INSTALL YOUR LET'S ENCRYPT HTTPS FROM HERE
- https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04
View Tutorial NextJS
~ NextJS
1. https://nextjs.org/learn/basics/create-nextjs-app
2. https://jasonwatmore.com/post/2021/04/20/next-js-10-crud-example-with-react-hook-form
3. https://pusher.com/tutorials/realtime-tables-nextjs
4. https://adamwathan.me/2019/10/17/persistent-layout-patterns-in-nextjs/
5. https://wityan.medium.com/next-js-project-structure-1531610bed71
6. https://cloudreports.net/convert-html-template-into-nextjs-app/
7. https://medium.com/@defrian.yarfi/next-js-and-reactstrap-admin-dashboard-project-e32ff3205eb2
~ typescript
View gist:162174a7f44b2882556d28aa964e6de0
https://blog.bitsrc.io/simplifying-redux-with-redux-toolkit-6236c28cdfcb
https://www.softkraft.co/how-to-setup-redux-with-redux-toolkit/
https://github.com/dwiyatci/redux-toolkit-login-flow
https://github.com/rishipr/mern-auth
https://github.com/ganeshmani/redux-toolkit-user-flow
https://dev.to/ganeshmani/modern-react-redux-toolkit-login-user-registration-tutorial-and-example-7h0
https://redux-toolkit.js.org/api/createAsyncThunk
View gist:30d953c7ca4d9fd2da1c3b1ac5eaf119
https://github.com/cornflourblue/react-hook-form-crud-example
https://github.com/NANIRISU/Registration_Login_redux
https://github.com/cluemediator/login-app-reactjs
https://www.cluemediator.com/login-app-create-login-form-in-reactjs-using-secure-rest-api
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style>
body {
font-size: 16px;
font-family:Candara,Calibri,Segoe,Segoe UI,Optima,Arial,sans-serif;
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style>
body {
font-size: 16px;
font-family:Candara,Calibri,Segoe,Segoe UI,Optima,Arial,sans-serif;
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style>
body {
font-size: 16px;
font-family:Candara,Calibri,Segoe,Segoe UI,Optima,Arial,sans-serif;
View SCALEDRONE
$channel_id = "K3gfQWyPfnlARdfu";
$channel_secret = "ilQTV3cM7LzSqS9QM4RBudK38Ohdvnai";
$room_name = "surat";
$auth = base64_encode("$channel_id:$channel_secret");
$url = "https://api2.scaledrone.com/$channel_id/$room_name/publish";
$data = array('key1' => 'value1', 'key2' => 'value2');
$options = array(
'http' => array(
@mdestafadilah
mdestafadilah / YUP
Created Feb 1, 2021
YUP CHECK VALIDASI PASSWORD
View YUP
Yup.object().shape({
password: Yup.string()
.required('Required'),
confirmPassword: Yup.string()
.oneOf([Yup.ref('password'), null], "Passwords don't match!")
.required('Required')
});
SOURCE: https://medium.com/@sagar.shrestha/yup-validate-if-the-values-of-two-fields-are-the-same-12c1e997920