Skip to content

Instantly share code, notes, and snippets.

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

Raihan Nismara raihan71

🏝️
#RemoteWork
View GitHub Profile

P2P Ridehailing App — Claude Code Instructions

You are building a fully decentralized peer-to-peer ridehailing mobile app. Zero centralized servers. The entire system runs on user devices and the Solana blockchain.

Core Flow

  1. A rider opens the app, sets a destination, and the app calculates a fare client-side using Haversine distance.
  2. The rider posts a ride request on-chain containing a blinded zone ID (ZK proof of zone membership), the offered fare, and escrowed SOL.
  3. Nearby drivers discover the request via libp2p GossipSub and on-chain queries.
  4. Drivers submit offers on-chain — they can accept the rider's fare or counter-offer (capped at 2x the rider's price).
@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 January 29, 2026 03:10
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 April 20, 2026 07:17
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 May 4, 2026 07:33
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 April 7, 2026 13:16
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();