Skip to content

Instantly share code, notes, and snippets.

View mrkirby153's full-sized avatar

Austin mrkirby153

View GitHub Profile
@mrkirby153
mrkirby153 / notifier.py
Created April 6, 2021 05:19
Script to send Discord version and module updates to webhooks
# MIT License
# Copyright(c) 2021 Austin Whyte
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files(the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@mrkirby153
mrkirby153 / flags.txt
Last active May 30, 2021 04:05
Discord Flags
1100100001100000100
|||||||||||||||||||
||||||||||||||||||+---- Discord Staff (1) [1 << 0]
|||||||||||||||||+----- Discord Partner (2) [1 << 1]
||||||||||||||||+------ Hypesquad Events (4) [1 << 2]
|||||||||||||||+------- Bug Hunter [Tier 1] (8) [1 << 3]
||||||||||||||+-------- MFA_SMS (16) [1 << 4]
|||||||||||||+--------- PREMIUM_PROMO_DISMISSED (32) [1 << 5]
||||||||||||+---------- Hypesquad Bravery (64) [1 << 6]
|||||||||||+----------- Hypesquad Brilliance (128) [1 << 7]
spamBucket := {} // A key/value store. Can be anything, really
count := 10
period := 30
fun violate(count):
start := currentTime() - period
end := currentTime()
// Clean up expired keys
for k, v in spamBucket:
if(v < start):
[12:41:17] [main/INFO]: [CHAT] The server appears to have lag spiked.
[12:41:17] [main/INFO]: [CHAT] Last tick 0.21664357s ago."Server thread" RUNNABLE
[12:41:17] [main/INFO]: [CHAT] at java.util.AbstractCollection.toArray(AbstractCollection.java:196)
[12:41:17] [main/INFO]: [CHAT] at com.raoulvdberge.refinedstorage.inventory.ItemHandlerInterface.invalidate(ItemHandlerInterface.java:76)
[12:41:17] [main/INFO]: [CHAT] at com.raoulvdberge.refinedstorage.inventory.ItemHandlerInterface.run(ItemHandlerInterface.java:72)
[12:41:17] [main/INFO]: [CHAT] at com.raoulvdberge.refinedstorage.apiimpl.storage.StorageCacheItem$$Lambda$1984/1894174800.accept(Unknown Source)
[12:41:17] [main/INFO]: [CHAT] at java.lang.Iterable.forEach(Iterable.java:75)
[12:41:17] [main/INFO]: [CHAT] at com.raoulvdberge.refinedstorage.apiimpl.storage.StorageCacheItem.add(StorageCacheItem.java:66)
[12:41:17] [main/INFO]: [CHAT] at com.raoulvdberge.refinedstorage.apiimpl.storage.StorageCacheItem.add(StorageCacheItem.java:18)
[12:41:17] [m

Keybase proof

I hereby claim:

  • I am mrkirby153 on github.
  • I am mrkirby153 (https://keybase.io/mrkirby153) on keybase.
  • I have a public key whose fingerprint is 60F2 D28E 36FB 3840 95C5 CA7E CD11 BAB1 09F4 0D95

To claim this, I am signing this object: