Skip to content

Instantly share code, notes, and snippets.

View SannnTech's full-sized avatar

Sannn SannnTech

  • Joined Sep 28, 2025
View GitHub Profile
@SannnTech
SannnTech / t2img.js
Created October 11, 2025 14:02
Text to image
import axios from "axios";
import fs from "node:fs";
async function textToimage(prompt) {
const { data } = await axios.get(`https://image.pollinations.ai/prompt/${prompt}2C%20photorealistic?width=768&height=768&seed=177984&nologo=true`, { responseType: "arraybuffer" })
/**
* The returns is arraybuffer type not url image.
*/
return data
}
@SannnTech
SannnTech / MuslimAI.js
Created October 9, 2025 14:30
Muslim ai for muslimic
import axios from "axios";
async function muslimai(query) {
try {
const { data } = await axios.get(`https://bf31jhdm60.execute-api.eu-west-2.amazonaws.com/dev/ask/${query}?question=${query}`, {
headers: {
'referer': 'https://www.askmuslim.app/',
'user-agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Mobile Safari/537.36'
}
});
@SannnTech
SannnTech / SSWEB.js
Created October 9, 2025 12:38
Screenshot Website Scraper
import axios from "axios";
async function takeScreenshot(web, format) {
const formats = ["png", "jpg"];
if (!formats.includes(format)) {
return { error: true, message: "Valid format: png, jpg" };
}
let payload = {
browserHeight: 720,
-- FlyMobile.lua (COMPLETE - With GUI Toggle)
-- StarterPlayer > StarterPlayerScripts
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
-- Configurable values
local BASE_SPEED = 70
-- PlayerESP.lua (Character Highlight ESP - See Through Walls)
-- StarterPlayer > StarterPlayerScripts
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
-- Settings
local ESP_ENABLED = false