This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Open Your Powershell / Pswh | |
| # And Running This Code | |
| # Code : irm https://gist.github.com/ernestoyoofi/d843afb9754e997edc393a37d1b41ec8/raw/7dc031fb524f504c60672fca3b05cb60aeedddcf/add.ps1 | iex | |
| # Inside of file : | |
| New-Item -ItemType Directory -Path ".\retunnelcat" -Force | Out-Null | |
| Set-Location .\retunnelcat | |
| Invoke-WebRequest -Uri "https://gist.github.com/ernestoyoofi/d843afb9754e997edc393a37d1b41ec8/raw/8c2f2f8e4ae82700962d5cd80d4ee0148ba429d7/retunnelcat.js" -OutFile "retunnelcat.js" -MaximumRedirection 5 | |
| node retunnelcat.js --help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Detail Basic (require) | |
| const DATE_START = "01-12-2024" // Time Of Start Daily Hastag | |
| const MEDIA_URL = "https://ernestoyoofi.github.io/ernestoyoofi/data/media/content/ygbenerajerugidong-dailymeme/rugidong.mp4" // URL of media, learn in facebook graph | |
| const DESC_POST = "🗣️ Rugi dong, yang bener aje #{STD}\n\nOriginal: https://vt.tiktok.com/ZSNwJMJXP/ tiktok/atilanjiwo\n\n#rugidong #yangbeneraje #semprulsendiri #geksorsendiri #xyzbca #meme #memedaily #dailypost" // {STD} Create to time start post like #1 or day1 from #{STD} or day{STD} | |
| // Instagram API (require) | |
| const ACCESS_TOKEN = "" // Get By Instagram Bussiness Work > Basic Management Instagram | |
| const INSTAGRAM_ID = "" // Get Via Pages | |
| // Log Messageing (optional) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const net = require("net") | |
| const tls = require("tls") | |
| async function RequestHTTP(url, options = {}) { | |
| const parser = new URL(url) | |
| const defaultRedirect = options.redirect || true | |
| const configNet = { | |
| host: parser.host, | |
| port: parser.port || options?.keepHttp? 80 : parser.protocol === "https:"? 443 : 80, | |
| rejectUnauthorized: options?.rejectUnauthor? true : false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function GenerateText(prompt) { | |
| if(!window.ai) return { error: "NoFlagAI" } | |
| const status = await window.ai.canCreateTextSession() | |
| if(status == "no") return { error: "CantCreateSession" } | |
| const session = await window.ai.createTextSession() | |
| const chat = await session.prompt(prompt) | |
| return { result: chat } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const TELEGRAM_TOKEN = "" // Token Telegram Bot | |
| const WEBHOOK_URL = "https://script.google.com/macros/s/:idmacros/exec" // Webhook from google script | |
| function SetupWebHook() { | |
| let drive = DriveApp.getRootFolder(); // Optional | |
| let botTelegram = new TelegramBot() | |
| botTelegram.setUrlwebhook(WEBHOOK_URL) | |
| } | |
| function doPost(e) { |