Skip to content

Instantly share code, notes, and snippets.

View NotSoSuper's full-sized avatar
🥓
test

NotSoSuper

🥓
test
View GitHub Profile
local function getMyself(serverConnectionHandlerID)
-- Get Self ID
local myClientID, error = ts3.getClientID(serverConnectionHandlerID)
if error ~= ts3errors.ERROR_ok then
print("Error getting own client ID: " .. error)
return
end
if myClientID == 0 then
ts3.printMessageToCurrentTab("Not connected")
return
@commands.command(pass_context=True)
@commands.cooldown(2, 5, commands.BucketType.server)
@checks.bot_has_perm(add_reactions=True)
async def react(self, ctx, *, txt:str):
msg = None
channel = ctx.message.channel
for c in ctx.message.channel_mentions:
channel = c
txt = txt.replace(c.mention, '')
if not channel.is_private:
@NotSoSuper
NotSoSuper / numbers.txt
Created January 2, 2018 03:45
almost all the police numbers in the U.S (to blacklist from calling services)
423-279-3200
440-564-7014
845-677-7300
904-266-4468
315-393-1555
918-423-5858
440-293-4555
701-577-1212
765-584-6891
863-291-5200
@NotSoSuper
NotSoSuper / numbers.txt
Last active October 29, 2024 05:00
almost all the police numbers in the U.S (to blacklist from calling services) prefix: +1
423-279-3200
440-564-7014
845-677-7300
904-266-4468
315-393-1555
918-423-5858
440-293-4555
701-577-1212
765-584-6891
863-291-5200
@NotSoSuper
NotSoSuper / docker-compose.yml
Created November 29, 2018 02:46
custom dockprom
version: '2.1'
services:
prometheus:
image: prom/prometheus:v2.5.0
container_name: prometheus
volumes:
- ./prometheus/:/etc/prometheus/
- ./data/prometheus/:/prometheus/