Skip to content

Instantly share code, notes, and snippets.

import httpx
import argparse
from http import HTTPStatus
from datetime import datetime
from contextlib import suppress
from collections import namedtuple
from typing import Dict, List, Optional, Tuple, Union
@i64
i64 / javascript.asdl
Last active September 11, 2020 18:45
module JavaScript {
VariableDeclarationKind = Var | Let | Const
CompoundAssignmentOperator = PLUSEQUAL | MINEQUAL | STAREQUAL | SLASHEQUAL
| PERCENTEQUAL | DOUBLESTAREQUAL | LEFTSHIFTEQUAL
| RIGHTSHIFTEQUAL | UNSIGNEDRIGHTSHIFTASSIG | VBAREQUAL
| CIRCUMFLEXEQUAL | AMPEREQUAL
BinaryOperator = EQEQUAL | NOTEQUAL | EQEQEQUAL
| NOTEQEQUAL | LESS | LESSEQUAL
@i64
i64 / vscode-hc.icls
Last active March 22, 2020 08:58
normal bi high contrast
<scheme name="HC" parent_scheme="Darcula" version="1">
<colors>
<option name="CONSOLE_BACKGROUND_KEY" value="000000" />
<option name="INDENT_GUIDE" value="000000" />
<option name="SELECTION_BACKGROUND" value="515151" />
<option name="CARET_ROW_COLOR" value="F4F2F80D" />
<option name="WHITESPACES" value="000000" />
<option name="CARET_COLOR" value="F8F8F0" />
<option name="LINE_NUMBERS_COLOR" value="F8F8F2" />
<option name="SELECTED_INDENT_GUIDE" value="000000" />
@i64
i64 / main.js
Created December 16, 2018 14:06
(function (scope) {
var app = require('electron').app;
var AppMenu = require('electron').Menu;
var MenuItem = require('electron').MenuItem;
var AppTray = require('electron').Tray;
var fileSystem = require('fs');
var NativeImage = require('electron').nativeImage;
var BrowserWindow = require('electron').BrowserWindow;
var nodeGettext = require('node-gettext');
@i64
i64 / 1.js
Created November 2, 2018 12:08
// var wordlist = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_@!?-';
var words = ['AA', 'AB', 'AC', 'AD', 'AE', 'AF', 'AG', 'AH', 'AI', 'AJ', 'AK', 'AL', 'AM', 'AN', 'AO', 'AP', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AV', 'AW', 'AX', 'AY', 'AZ', 'Aa', 'Ab', 'Ac', 'Ad', 'Ae', 'Af', 'Ag', 'Ah', 'Ai', 'Aj', 'Ak', 'Al', 'Am', 'An', 'Ao', 'Ap', 'Aq', 'Ar', 'As', 'At', 'Au', 'Av', 'Aw', 'Ax', 'Ay', 'Az', 'A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A_', 'A@', 'A!', 'A?', 'A-', 'BA', 'BB', 'BC', ' BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BK', 'BL', 'BM', 'BN', 'BO', 'BP', 'BQ', 'BR', 'BS', 'BT', 'BU', 'BV', 'BW', 'BX', 'BY', 'BZ', 'Ba', 'Bb', 'Bc', 'Bd', 'Be', 'Bf', 'Bg', 'Bh', 'Bi', 'Bj', 'Bk', 'Bl', 'B m', 'Bn', 'Bo', 'Bp', 'Bq', 'Br', 'Bs', 'Bt', 'Bu', 'Bv', 'Bw', 'Bx', 'By', 'Bz', 'B0', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B9', 'B_', 'B@', 'B!', 'B?', 'B-', 'CA', 'CB', 'CC', 'CD', 'CE', 'CF', 'CG ', 'CH', 'CI', 'CJ', 'CK', 'CL', 'CM', 'CN', 'CO', 'CP', 'CQ', 'CR', 'CS', '
@i64
i64 / androidManifestDecompress.py
Last active January 10, 2024 18:10
decompress androidmanifest file in python
class AndroidXMLDecompress():
endDocTag = 0x00100101
startTag = 0x00100102
endTag = 0x00100103
def decompressXML(self, xml: bytearray) -> str:
finalXml = str()
numbStrings = self.LEW(xml, 4*4)
@i64
i64 / mersinDersProgrami.js
Last active December 10, 2020 08:42
dersKayit2table
let gen = NaN;
const saatDict = {
'08:10': '08:50',
'09:00': '09:40',
'09:50': '10:30',
'10:40': '11:20',
'11:30': '12:10',
'13:00': '13:40',
'13:50': '14:30',
['xn--yapkrd-r9ad2519.com', 'xn--yapkred5ya03d.net', 'xn--apkred1va16c765s.com', 'xn--apikedi-2nb5639.com', 'xn--apkred-2qa9ez3a765s.com', 'xn--apkredi-sfb1969.com', 'xn--yapkrd-6xa86d.com', 'xn--nternet-yapikre
d-hbdu.com', 'xn--nternetsube-yapkred-hbdu.com', 'xn--nternetsube-yapkred-hbd.com']
'''
phpkilit.com deobfuscator
Date: 1535082393
'''
import binascii
import json
import zlib
import base64
def pad(pad, string1=None, padLeft=None):
if string1 == None:
return pad
if padLeft:
return (pad + str(string1))[-len(pad) :]
else:
return (pad + str(string1))[: len(pad)]
def sonIkiHane(tc):