Skip to content

Instantly share code, notes, and snippets.

View kura's full-sized avatar
🤖
BIDI BIDI BIDI

Kura kura

🤖
BIDI BIDI BIDI
View GitHub Profile
@kura
kura / gist:c84fdd3138aeaa048f55534507c4f501
Created December 20, 2024 12:37
chat macros weakaura
!WA:2!TF12YTTXzytX4Mey7uhvhLuh36nm2YsomY6eLKtIThcksB2qjYcsjfRMPKlawsSrGailwkj6o(gnEsDNPNS65PhsgErVkxXl6dGFc(h9i43G6NG(VauYokrPPE6f9IQlwIDXUl(p8999)ReRoCOzMjMAHjMA42dBpS99p)EMuRnSf(b58D9f)GKjtwj5KtKjyylFpPW31LzNZH7AlyExo405COssBQLWpKizBlF8tVGjv8itFHntOp4odoTUl)o3HkSj189DL8G9ODKo(IYbsUVxOwpPV1Mmrio5fs)pnJpTJOB5MndzYt(g9PEw42R4Z9KM5YVCT8g9I3uv(DyhVFtbTnRQuqL0K9JFrSFKirIKgHwuxwYbhiVDlwWlx9J7qfmsHoUUK1C4sMGAfzkZzekPcPMztUhp0rth)rQTJuWB1cnWZoQyWJFspBMzNMnR1nGjUv(svkSsjDjoXG2rqNENWaMRBr7qThf2XKTjZtwf3nF7(1ZLTAT6vRL1O2bVQIGHVYOAL8Lkz4H(sOMr0lmVfJ6kD07GwHzGlTltSBhVbMGwpbRfA0ktWOLWVtWJX4dt4rDxnoy(PITJdHx4C7s94TPkFCo4vk8qgnufWyETKoppCoDpFp2E2OLR2rDLFiczyU3oCh1wvFc4k6TPCVcWe4bGRatctbtJ)oYHxjf3oy4NgreGXApPURp1UGPetgEYrmA3bbcA6yCYAeyEndlxAyO6j9qmNgTe1nWHM8XXj)cQCSYomRMZiF(LFyC(m2)EXP7WT7h((bLVv(X)GfCn3nK52mcVaNQhgMnIIuHAMOp1K3sRNY34XOV(CVM(I4GJ2a4trp8wtoS163FmmWkD5E4NALALkUCEZy3bMn4TS5HQKsnKcup(kQhuxYBZQB3ftJCR6shbl0X31U7EHouB)TUDSbFUJbNeova5OVH4zjcoTvNqPFB1owjWMkzWfEeYE8v2R1ACBeDKfNcNbZRAWiAWRQbV2lnk8D)e4SWRJ5LVh891GZde4n
@kura
kura / triplehelix.py
Last active November 3, 2023 17:47
triplehelix.py
import datetime
import json
import os
import sys
import requests
apiKey = ""
stationID = ""
@kura
kura / gif.py
Created August 14, 2016 00:25
1x1 transparent gif
import struct
def gif():
data = [0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01, 0x00,
0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x21,
0xf9, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00,
0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x02, 0x01, 0x44,
0x00, 0x3b]
return struct.pack('42B', *data)
@kura
kura / brotli.patch
Created July 15, 2016 17:35
brotli.patch
diff -ruN nginx-1.11.2/debian/rules nginx-1.11.2.patched/debian/rules
--- nginx-1.11.2/debian/rules 2016-07-05 16:29:08.000000000 +0000
+++ nginx-1.11.2.patched/debian/rules 2016-07-15 16:46:05.690243981 +0000
@@ -27,18 +27,8 @@
--user=nginx \
--group=nginx \
--with-http_ssl_module \
- --with-http_realip_module \
- --with-http_addition_module \
- --with-http_sub_module \
import numpy as np
import matplotlib.pyplot as plt
import pylab
# color palette
from matplotlib import cm
from logsparser.lognormalizer import LogNormalizer as LN
import GeoIP
normalizer = LN('/usr/share/normalizers')
auth_logs = open('/var/log/auth.log', 'r')