Skip to content

Instantly share code, notes, and snippets.

View raihan71's full-sized avatar
🏝️
#RemoteWork

Raihan Nismara raihan71

🏝️
#RemoteWork
View GitHub Profile
@kanchokanchev
kanchokanchev / nginx_backup_config_and_certs.md
Last active July 5, 2025 14:08
Nginx - Backup Nginx Configuration And Certificates #Nginx_ADMIN

Instructions for Backing Up Nginx Configuration and Certificates

Follow these steps to back up your Nginx configuration and certificates from an Ubuntu machine.

Step 1: Create a Backup Directory

  1. Create a Temporary Directory:
    • Create a directory to store all configurations and certificates temporarily:
@Udara-Dananjaya
Udara-Dananjaya / MacOS-Xampp-Instalation-Guide.md
Last active November 4, 2025 20:33
macOS XAMPP Installation and Composer Setup Guide

Step-by-step instructions for installing XAMPP, configuring paths, and installing Composer on macOS:

Install XAMPP:

  1. Go to XAMPP download page and download the DMG file.
  2. Open the downloaded DMG file.
  3. Press F4 and search for "Privacy and Security."
  4. In the "Security" section, you'll find the blocked app. Click "Open Anyway" to continue with the installation.
  5. Start the XAMPP services.
@nivethan-me
nivethan-me / README.md
Last active December 11, 2025 16:01
Add Cloudflare Custom Domain to Vercel

Add Cloudflare custom domain to Vercel

  1. Sign up and sign in to Cloudflare https://dash.cloudflare.com/sign-up.
  2. In your Cloudflare dashboard, select the Domain Registration > Register Domains tab.
  3. Search for your favorite domain and purchase it. In my case, I purchased the domain https://nivethan.me/ for my portfolio.
  4. Sign in to Vercel and go to your dashboard, where you can see all your projects in the Overview tab.
  5. Click on a project and on the top right, select Domains.
  6. Type your domain in the text box, e.g., nivethan.me, and click Add.
  7. Select the recommended option: Add www.nivethan.me and redirect nivethan.me to it.
  8. Vercel will show an invalid configuration under your domains and display the relevant A record IP under nivethan.me and a CNAME IP under www.nivethan.me. These need to be set up on Cloudflare to make it work.
@telkomdeveloper
telkomdeveloper / stack.md
Created August 23, 2021 09:14
Development Stack in Telkom DEV - DXB Divisi Digital Bisnis

Android Development

Tools Name Version
Platform Android OS 4.4 KitKat Level 19 or higher
Programming Language Kotlin JDK 8.x
Architecture Model View ViewModel
Rest Response JSON
Local Database SQLite
View Injection ViewBinding
@domzgarcia
domzgarcia / step.md
Last active February 2, 2021 15:03
Setup MERN stack in ubuntu
@raihan71
raihan71 / js-advanced.md
Last active December 31, 2020 04:15
This is about my notes and gists about course from Brad Traversy - "Modern JS From The Beginning"

Modern javascript from the beginning

Useful Syntax

  • console.table(data) = visualized data with ta
  • typeof data = get to know type data of the variable
  • Number(string) = convert number any type to type of number
  • String(number) = convert number any type to type of string
  • toFixed(decimal) = to add custom decimal number
  • parseInt(string or number) = just parse to the integer
  • parseFloat(string or number) = parse to the float type
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active December 11, 2025 03:19
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

@kaleem-elahi
kaleem-elahi / Frame.js
Last active April 5, 2024 15:30
WYSIWYG Editor for React apps with redux-form field
import React, { Component } from 'react';
// import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import Linkify from 'react-linkify';
import {
renderToString,
} from 'react-dom/server';
import Parser from 'html-react-parser';
const style =
@jaydenseric
jaydenseric / RouteIndicator.js
Last active November 29, 2023 11:34
A route change indicator for Next.js using React hooks.
import classNameProp from 'class-name-prop';
import { useRouter } from 'next/router';
import React from 'react';
import styles from './RouteIndicator.module.css';
const DONE_DURATION = 250;
export default function RouteIndicator() {
const router = useRouter();
@seahyc
seahyc / software_engineer_coding_test.md
Last active June 12, 2020 07:32
Enlarged sample input size for hdb task

General Brief

There are 2 questions in the assessment, which you can answer in any language. For each test, please commit your code to a private repository on GitHub, with a README.md on how to run it. When you’re done, simply add seahyc and yjwong as collaborators to your private repository.

There's no time limit, but do time yourself for every question beginning from the time you start reading it till your final local commit, and let me know how long you took for each question in the README. We recommend that you set aside 1.5 hours for each task in the test.

You can take in the input either via command-line arguments, or simply assume that it's assigned at the top of your script. Either way, let us know how to inject an input. We'll adapt our test cases accordingly. Very importantly, we trust you to write your solutions independent of any external help.

Task 1