I hereby claim:
- I am GrapeApple0 on github.
- I am porlam (https://keybase.io/porlam) on keybase.
- I have a public key whose fingerprint is 0EED 0BED 3103 D85D BF62 0EF1 F5E7 6EEA E8CB D79D
To claim this, I am signing this object:
| var parser = new URL(location.href); | |
| async function setClientInfo() { | |
| parser = new URL(location.href); | |
| if (!isNaN(parser.pathname.split('/')[3])) { | |
| const _sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
| fetch('https://api.twitter.com/2/tweets?ids=' + parser.pathname.split('/')[3] + '&tweet.fields=attachments,author_id,context_annotations,created_at,entities,geo,id,in_reply_to_user_id,lang,possibly_sensitive,public_metrics,referenced_tweets,source,text,withheld&expansions=referenced_tweets.id', { | |
| headers: { | |
| 'Authorization': 'Bearer $TwitterAPIBearerToken' | |
| } | |
| }).then(function (data) { |
| { | |
| "domain":"example.ap", | |
| "status":"Activa", | |
| "register":"ApolenNic", | |
| "registry":"ApolenNic (http://nic.ap/)", | |
| "address":"2-6 MeinStlet Dublik Apolen", | |
| "email":"[email protected]" | |
| } |
| isDebug = False | |
| import random | |
| import time | |
| from misskey import Misskey | |
| def genHiraganas(): | |
| lst = "あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをんがぎぐげござじずぜぞだぢづでどばびぶべぼぱぴぷぺぽぁぃぅぇぉっゃゅょゎ!?" | |
| word = "" | |
| for i in range(3): | |
| word += lst[random.randrange(0,len(lst))] | |
| return word |
| sudo deluser misskey | |
| sudo rm -rf /home/misskey | |
| sudo -u postgres psql postgres -c 'DROP DATABASE misskey;' | |
| sudo -u postgres psql postgres -c 'DROP ROLE misskey;' |
I hereby claim:
To claim this, I am signing this object:
| import requests | |
| SERVER = "対象インスタンス" | |
| TOKEN = "トークン" | |
| FILTER_WORDS = ["吹き飛ばしたいワード","てすとほげほげ"] | |
| notes = [] | |
| untilId = "" | |
| ban_host = [] | |
| for filter_word in FILTER_WORDS: | |
| while True: | |
| param = {'query': filter_word, 'limit': 10, 'i': TOKEN} |
| import requests | |
| import re | |
| import datetime | |
| SERVER = "対象インスタンス" | |
| TOKEN = "トークン" | |
| meta = requests.post(f'https://{SERVER}/api/admin/meta', | |
| headers={'Content-Type': 'application/json'}, | |
| json={'i': TOKEN}, timeout=10).json() | |
| BANNED_SERVER = meta['blockedHosts'] | |
| ban_user_list = [] |
| CREATE OR REPLACE FUNCTION base36_decode(encoded_text text) | |
| RETURNS bigint AS $$ | |
| declare | |
| k_base constant integer := 36; | |
| k_alphabet constant text := '0123456789abcdefghijklmnopqrstuvwxyz'; | |
| v_encoded_arr text[]; | |
| v_return_result bigint := 0; | |
| v_interim bigint; | |
| v_index integer; | |
| v_token text; |
| { | |
| # NIC Argentina | |
| "ar": "https://rdap.nic.ar/domain/", | |
| # Switch | |
| "ch": "https://rdap.nic.ch/domain/", | |
| "li": "https://rdap.nic.ch/domain/", | |
| # National Academy of Sciences | |
| "cr": "https://rdap.nic.cr/domain/", | |
| "cv": "https://rdap.nic.cv/domain/", | |
| # CoCCA Registry Services |
| import requests | |
| import datetime | |
| import time | |
| SERVER = "example.com" | |
| TOKEN = "EXAMPLETOKEN" | |
| old_ban_host = [] | |
| BANNED_SERVER = [] | |
| IGNORE_LIST = ["example.com"] | |
| CANDIDATE_LIST = dict() | |
| already_check=False |