Skip to content

Instantly share code, notes, and snippets.

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

Imran Hossain cellograph

🏠
Working from home
View GitHub Profile
@cellograph
cellograph / client.ts
Created October 4, 2025 22:51
Custom Plugin Better Auth Phone Number Reset Password OTP Verification
import { BetterAuthClientPlugin } from "better-auth";
import type { myBetterAuthHelper } from "./server";
export const myBetterAuthHelperClient = () => {
return {
id: "my-better-auth-helper",
$InferServerPlugin: {} as ReturnType<typeof myBetterAuthHelper>,
getActions: ($fetch) => ({
verifyResetPasswordOTP: async (data: {
phoneNumber: string;
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@cellograph
cellograph / node_nginx_ssl.md
Created June 1, 2020 19:36 — forked from bradtraversy/node_nginx_ssl.md
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