This file contains 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
[ | |
{ | |
"il": "Adana", | |
"plaka": 1, | |
"ilceleri": [ | |
"Aladağ", | |
"Ceyhan", | |
"Çukurova", | |
"Feke", | |
"İmamoğlu", |
This file contains 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
# Generated by iptables-save v1.6.1 on Tue May 7 19:15:45 2019 | |
*filter | |
:INPUT DROP [349:29624] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [573:36440] | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 80 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 445 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT |
This file contains 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
[ | |
{"kod":99133,"il_kodu":"1","ad":"Şakirpaşa Havalimanı","il_adi":"ADANA"}, | |
{"kod":2033,"il_kodu":"1","ad":"ÇUKUROVA","il_adi":"ADANA"}, | |
{"kod":2032,"il_kodu":"1","ad":"SARIÇAM","il_adi":"ADANA"}, | |
{"kod":1806,"il_kodu":"1","ad":"İMAMOĞLU","il_adi":"ADANA"}, | |
{"kod":1757,"il_kodu":"1","ad":"ALADAĞ","il_adi":"ADANA"}, | |
{"kod":1748,"il_kodu":"1","ad":"YÜREĞİR","il_adi":"ADANA"}, | |
{"kod":1734,"il_kodu":"1","ad":"YUMURTALIK","il_adi":"ADANA"}, | |
{"kod":1687,"il_kodu":"1","ad":"TUFANBEYLİ","il_adi":"ADANA"}, | |
{"kod":1588,"il_kodu":"1","ad":"SAİMBEYLİ","il_adi":"ADANA"}, |
This file contains 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 press_or_text(user_id): | |
return events.Raw(func=lambda e: (type(e) == UpdateNewMessage and e.message.from_id == user_id) or (type(e) == UpdateBotCallbackQuery and e.user_id == user_id and e.data != b'cancel')) | |
whatever = await conv.wait_event(press_or_text(sender)) | |
if type(whatever) == UpdateBotCallbackQuery and whatever.data in [b'create', b'list']: | |
# button clicked | |
# not actual event like "CallbackQuery", you can't use .edit() etc. directly | |
print(whatever.data) | |
else: | |
# message sent |
This file contains 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
# Netherlands account number algorithm uses this factor table: | |
# digit | factor | |
# 1st | 10 | |
# 2nd | 9 | |
# ... | |
# 10th | 1 | |
# | |
# After multiplying digits according to the table, sum of these results must be divisible with 11 | |
This file contains 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
import hashlib | |
import base64 | |
from Crypto import Random | |
from Crypto.Cipher import AES | |
import rubymarshal.reader | |
from pbkdf2 import PBKDF2 | |
SECRET = "a3f58debfe0c5b71edaebea3a627f4f" | |
SALT = "12345" | |
ITERATIONS = 65536 |
This file contains 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
import hashlib | |
import base64 | |
from Crypto import Random | |
from Crypto.Cipher import AES | |
import rubymarshal.reader | |
from pbkdf2 import PBKDF2 | |
SECRET = "asdasd" | |
ITERATIONS = 65536 | |
KEYLENGTH = 32 |
This file contains 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
// fuck you atomic. why can't you just be fucking normal? | |
// east home innocent snake icon curtain series brave guard program history stand | |
// BIP39 seed: | |
var seed = new Uint8Array([70, 78, 5, 155, 232, 171, 38, 78, 191, 56, 142, 102, 122, 20, 65, 239, 127, 215, 39, 174, 28, 222, 17, 150, 102, 129, 182, 172, 246, 80, 15, 19, 79, 248, 113, 244, 95, 101, 33, 96, 203, 181, 243, 63, 23, 9, 71, 102, 37, 216, 196, 6, 77, 209, 18, 2, 107, 12, 239, 38, 249, 29, 107, 249]); | |
var s = require('ethereum-cryptography/pure/hdkey').HDKey; | |
var t = require('ethereumjs-wallet'); | |
var w = s.fromMasterSeed(seed); |
This file contains 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
needs; | |
rtl_fm | |
sox | |
wxtoimg (https://wxtoimgrestored.xyz/beta/wxtoimg-armhf-2.11.2-beta.deb) | |
wxmap on your server for map generation (https://wxtoimgrestored.xyz/beta/wxtoimg-amd64-2.11.2-beta.deb) | |
(because wxmap on ARM is not working, at least for me) | |
python3 | |
requests | |
noaa-apt | |
n2yo account and api key |
This file contains 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
from telethon.tl.types import ChannelParticipantCreator, ChannelParticipantAdmin | |
from telethon.tl.functions.channels import GetParticipantRequest | |
#.. | |
@client.on(events.NewMessage) | |
async def handler(event): | |
participant = await client(GetParticipantRequest(channel=event.original_update.message.to_id.channel_id,user_id=event.original_update.message.from_id)) | |
isadmin = (type(participant.participant) == ChannelParticipantAdmin) | |
iscreator = (type(participant.participant) == ChannelParticipantCreator) |
OlderNewer