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
/* | |
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 |
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
#!/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 :)" |
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
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 |
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
<!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=" |
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
""" | |
This code generates m3u file of a soundcloud playlist or a single track | |
""" | |
import sys | |
from sclib import SoundcloudAPI, Track, Playlist # pip3 install soundcloud-lib | |
def main(argv): | |
try: | |
# url = argv[1] |
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
def hesap_makinesi(islem): | |
sonuc = eval(islem, {"__builtins__": None}, {}) | |
return sonuc | |
if __name__ == "__main__": | |
islem = input(u"İşlem? Örnek 2*(10*27)/8 :") | |
print(u"İşlem sonucu: '{}'".format(hesap_makinesi(islem))) |
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
class YaziyaCevir: | |
def __init__(self): | |
self.basamaklar = ["", "bin", "milyon", "milyar", "trilyon", "katrilyon"] | |
self.sayilar = [ | |
["", "bir", "iki", "uc", "dort", "bes", "alti", "yedi", "sekiz", "dokuz"], | |
["", "on", "yirmi", "otuz", "kirk", "elli", "altmis", "yetmis", "seksen", "doksan"], | |
["", "yuz", "ikiyuz", "ucyuz", "dortyuz", "besyuz", "altiyuz", "yediyuz", "sekizyuz", "dokuzyuz"], | |
] | |
def cevir(self, sayi): |
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
# original code is from https://www.gkbrk.com/2016/08/about-the-whois-protocol/ | |
import socket | |
from functools import lru_cache | |
@lru_cache(maxsize=32) | |
def get_tld_server(tld="com"): | |
sock = socket.socket() | |
sock.connect(("whois.iana.org", 43)) | |
sock.send("{}\n".format(tld).encode("utf-8")) |
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
class YaziyaCevir: | |
def __init__(self): | |
self.basamaklar = ["", "bin", "milyon", "milyar", "trilyon", "katrilyon"] | |
self.sayilar = [ | |
["", "bir", "iki", "uc", "dort", "bes", "alti", "yedi", "sekiz", "dokuz"], | |
["", "on", "yirmi", "otuz", "kirk", "elli", "altmis", "yetmis", "seksen", "doksan"], | |
["", "yuz", "ikiyuz", "ucyuz", "dortyuz", "besyuz", "altiyuz", "yediyuz", "sekizyuz", "dokuzyuz"], | |
] | |
def cevir(self, sayi): |
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
""" | |
This code generates m3u file of a soundcloud playlist or a single track | |
Running example https://repl.it/@bahtsiz_bedevi/soundcloudm3u | |
""" | |
import sys | |
from sclib import SoundcloudAPI, Track, Playlist # pip3 install soundcloud-lib | |
def main(argv): | |
try: |
NewerOlder