Skip to content

Instantly share code, notes, and snippets.

View FarhanMS123's full-sized avatar

Farhan Sabran FarhanMS123

View GitHub Profile

Caution

All these research has been done by discussion to Gemini Pro 2.5 Pre. No, actual research on the web has been done.

Note

This is not standard.

This semantic and format inside it are self-built with no standard actually following. For example, the epoch, family, version, and release build are merged from Microsoft, Chromium, and Semantic Version. After each discussion and founding, I made up the format with only common sense and think "which would be the best position" following each formatting.

The result, complete format that can be used for any product. I hope so.

LLM Prompt list

  • Assume 3 object: SYSTEM, DIRECTIVE, RESPONSE
  • This Gist consist of prompts that fullfil my need

Semantic GIT

Components

  • Commit Message
  • Branch Name
  • Pull Request Template
  • Issue Template
  • Tagging

Semantic Versioning

@FarhanMS123
FarhanMS123 / #0 ARCHIVE.md
Last active January 26, 2023 10:10
Archived from farhanms123/lib repository

Archive

List

  1. handler4cp
  2. handler4proc
  3. taskmgr
  4. Vue Directive HTML2
  5. Ajax 2 Write
@FarhanMS123
FarhanMS123 / ALGORITHM.md
Last active January 23, 2023 10:08
A bundle of alrogithm and concepts.

Algorithm

List of Algorithm

  1. Range
  2. JS Notes
@FarhanMS123
FarhanMS123 / #0 SNIPPETS.md
Last active January 23, 2023 10:03
A bundle of snippets and scripts.

Snippets

List

  1. mime types from mime-types module npm.
  2. cookie
  3. http request
  4. Custom Element HTML
  5. Login PHP
  6. Embed Gist By IFrame
  7. Laravel Tweek PHP
@FarhanMS123
FarhanMS123 / Tree.md
Created April 2, 2020 15:29
Make a perfect structur of folder and files in a drive.
  • Backup
  • Compressed
  • Documents
  • Library
    • fonts
    • icons
    • soundfonts
  • Multimedia
    • photos
  • musics
@FarhanMS123
FarhanMS123 / sql_protect.md
Last active July 24, 2020 07:17
Protect SQL from SQL Injection with PHP Script

SQL injection is a type of injection which will modify database without need permission.
SQL injection is one of the most common web hacking techniques.
SQL injection is the placement of malicious code in SQL statements, via web page input

SQL injection usually occurs when you ask a user for input, like their username/userid, and instead of a name/id, the user gives you an SQL statement that you will unknowingly run on your database.
-W3Schools

This is a query to execute script to sql :

$name = "myname";
@FarhanMS123
FarhanMS123 / Fibonacci series.txt
Last active September 20, 2021 10:47
How to get of n digit of fibonaci number without recursive - posts
φ = 1+sqrt(5)/2
F:fibonacci-binet(n) = Fb(n)=
(φ^n - (-φ)^-n)/sqrt(5) =
((1+sqrt(5))^n - (1-sqrt(5))^n)/sqrt(5)*2^n
F(a,b,n) = (a)(Fb(n-2))+(b)(Fb(n-1)) =
(a)((φ^(n-2) - (-φ)^(n-2))/sqrt(5)) + (b)((φ^(n-1) - (-φ)^(n-1))/sqrt(5)) =
(a)(((1+sqrt(5))^(n-2) - (1-sqrt(5))^(n-2))/sqrt(5)*2^(n-2)) + (b)(((1+sqrt(5))^(n-1) - (1-sqrt(5))^(n-1))/sqrt(5)*2^(n-1))
@FarhanMS123
FarhanMS123 / convertImgToBase64.js
Created December 26, 2017 10:26 — forked from MarkoCen/convertImgToBase64.js
Read Image (PNG/JPEG) From Disk and Convert it to base64-encoded string on Node Server
import * as express from 'express';
import * as fs from 'fs';
import * as path from 'path';
const app = express();
app.set('view engine', 'jade');
app.get('/readPNG', (req, res)=>{