Skip to content

Instantly share code, notes, and snippets.

View RayyanNafees's full-sized avatar
🤘
Innovative than ever

Rayyan Nafees RayyanNafees

🤘
Innovative than ever
View GitHub Profile
@RayyanNafees
RayyanNafees / config.nu
Created April 12, 2025 12:56
nushell config
# Nushell Config File
#
# version = "0.98.0"
# For more information on defining custom themes, see
# https://www.nushell.sh/book/coloring_and_theming.html
# And here is the theme collection
# https://github.com/nushell/nu_scripts/tree/main/themes
let dark_theme = {
# color for nushell primitives
@RayyanNafees
RayyanNafees / readme.md
Created February 8, 2025 10:47
PocketHost setup

Installation

Prerequisits

Packages

  • git
  • nvm (curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash)
  • nodejs
  • pnpm
@RayyanNafees
RayyanNafees / index.go
Created May 30, 2024 11:34 — forked from kimihito/index.go
Running labstack/echo on Zeit now (Vercel) Serverless function
// set api/index.go
package handler
import (
"net/http"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
)
@RayyanNafees
RayyanNafees / azhkar.json
Last active May 27, 2024 17:33
Quran ayat
[
{
"category": "أذكار الصباح",
"count": "1",
"description": "من قالها حين يصبح أجير من الجن حتى يمسى ومن قالها حين يمسى أجير من الجن حتى يصبح.",
"reference": "آية الكرسى - البقرة 255",
"zekr": "أَعُوذُ بِاللهِ مِنْ الشَّيْطَانِ الرَّجِيمِ\nاللّهُ لاَ إِلَـهَ إِلاَّ هُوَ الْحَيُّ الْقَيُّومُ لاَ تَأْخُذُهُ سِنَةٌ وَلاَ نَوْمٌ لَّهُ مَا فِي السَّمَاوَاتِ وَمَا فِي الأَرْضِ مَن ذَا الَّذِي يَشْفَعُ عِنْدَهُ إِلاَّ بِإِذْنِهِ يَعْلَمُ مَا بَيْنَ أَيْدِيهِمْ وَمَا خَلْفَهُمْ وَلاَ يُحِيطُونَ بِشَيْءٍ مِّنْ عِلْمِهِ إِلاَّ بِمَا شَاء وَسِعَ كُرْسِيُّهُ السَّمَاوَاتِ وَالأَرْضَ وَلاَ يَؤُودُهُ حِفْظُهُمَا وَهُوَ الْعَلِيُّ الْعَظِيمُ."
},
{
"category": "أذكار الصباح",
@RayyanNafees
RayyanNafees / README.md
Last active April 21, 2024 20:54
EndlessDrive

Endless Drive Links:

DB Upload Libraries

  • TiDB - 25GB of KV db with TiKV
  • Discord DB - Unlimited Discord Dataase with 8 mb each file
  • TeleSync - Unlimited Telegram Dataase with 2 GB each file, chunked with python (Try rust or C for faster)

Other Links

@RayyanNafees
RayyanNafees / express-vento.js
Created April 19, 2024 23:20
Express Vento Template Engine
import express from 'express';
import vento from 'ventojs';
const app = express();
app.set('views', './views');
app.engine('vto', (filePath, options, callback) =>
vento()
.run(filePath, options)
.then(({ content }) => callback(null, content))
@RayyanNafees
RayyanNafees / pr_template.md
Created April 5, 2024 08:50 — forked from nicolasmontielf/pr_template.md
This is a template for your PR's

Context

Gives the reviewer some context about the work and why this change is being made, the WHY you are doing this. This field goes more into the product perspective.

Description

Provide a detailed description of how exactly this task will be accomplished. This can be something technical. What specific steps will be taken to achieve the goal? This should include details on service integration, job logic, implementation, etc.

Changes in the codebase

This is where becomes technical. Here is where you can be more focused on the engineering side of your solution. Include information about the functionality they are adding or modifying, as well as any refactoring or improvement of existing code.

Changes outside the codebase

@RayyanNafees
RayyanNafees / scrape-branch.js
Last active March 23, 2024 20:16
Scrapes B.Tech, M.Tech, BE available branches at ZHCET with Deno
import cheerio from 'https://esm.sh/cheerio'
let mtech_major
let sub_branches = {}
const branches = []
const _NonEmptyObject = (obj) => !!Object.keys(obj).length
for (const i of ['btech', 'be', 'mtech']) {
const $ = await fetch(`https://ctengg.amu.ac.in/web/crs_struct.php?prog=${i}`)
@RayyanNafees
RayyanNafees / settings.json
Created February 10, 2024 09:27 — forked from potatoqualitee/settings.json
My Windows Terminal Preview settings.json File
// This file was initially generated by Windows Terminal Preview 1.1.1812.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",