Skip to content

Instantly share code, notes, and snippets.

View sinancetinkaya's full-sized avatar

Sinan Çetinkaya sinancetinkaya

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
@sinancetinkaya
sinancetinkaya / discord_webhook.bas
Last active April 5, 2020 00:45
VBA discord webhook example
Function discord(message)
Set request = CreateObject("WinHttp.WinHttpRequest.5.1")
Dim Payload As String
DISCORD_WEBHOOK_URL = "https://discordapp.com/api/webhooks/{webhook_id}/{webhook_token}"
Payload = "content=" & message & _
"&username=" & "{username}" & _
"&avatar_url=" & "{avatar_url}"
With request
@sinancetinkaya
sinancetinkaya / 02-telegram
Last active December 15, 2023 21:19
OpenWRT Telegram message sender
#!/bin/sh
# This script sends TELEGRAM_MESSAGE to TELEGRAM_CHAT_ID when DEVICE_MAC is connected to the router
# Requires curl: opkg install curl
# Copy this file to /etc/hotplug.d/dhcp/ in OpenWRT
ONCE_IN_SECONDS="86400" # once a day
DEVICE_MAC=""
TELEGRAM_BOT_TOKEN=''
TELEGRAM_CHAT_ID=""
TELEGRAM_MESSAGE="Welcome home :)"
@sinancetinkaya
sinancetinkaya / OpenSubtitle Search by Lang ID.as
Last active March 20, 2025 00:53
PotPlayer extension. Searches subtitles for given `SublanguageIDs` only
/*
subtitle search by opensubtitle
*/
// void OnInitialize()
// void OnFinalize()
// string GetTitle() -> get title for UI
// string GetVersion -> get version for manage
// string GetDesc() -> get detail information
// string GetLoginTitle() -> get title for login dialog