Skip to content

Instantly share code, notes, and snippets.

Privacy Policy
This privacy policy outlines how the bot collects, uses, and shares your information.
Information Collection
The bot collects the following information from you:
Your Discord username
Your Discord ID
Terms of Service
By using this Discord bot, you agree to the following terms of service:
You agree to use the bot for lawful purposes only.
You agree not to use the bot to spam, harass, or abuse other users.
You agree not to use the bot to distribute illegal or harmful content.
You agree to be responsible for your own actions and for any damage caused by your use of the bot.
The bot's creator reserves the right to modify or terminate these terms of service at any time.
@ausbitbank
ausbitbank / invokeAi-api-gist
Last active February 25, 2024 10:54
This is a simplified version of whats needed to connect to InvokeAI websocket api, submit requests, upload init_images and recieve results
const io = require("socket.io-client")
const socket = io("http://127.0.0.1:9090",{reconnect: true})
const log = console.log.bind(console)
socket.on("connect", (socket) => {
log(socket) // Connected to api
})
socket.on("progressUpdate", (data) => {
log(data) // Returns current steps, status etc
! name: Hive Goggles
! description: Only show results from Hive blockchain interfaces.
! public: true
! author: ausbitbank
! homepage: https://hive.io
! issues: https://discord.gg/qTrw8jNr
! avatar: #E31337
$discard
$site=hive.blog,boost=3
// ==UserScript==
// @name Hide Promoted Tweets
// @namespace http://hive.ausbit.dev
// @version 0.1
// @description Hide promoted tweets
// @author ausbitbank
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
curl 'https://anyx.io/' -H 'Connection: keep-alive' --data-binary '{"id":401,"jsonrpc":"2.0","method":"call","params":["database_api","get_witnesses_by_vote",["",100]]}' --compressed | jq '.result[] | {witness: .owner, ver: .running_version, approval_vests: (.votes), approval_sp: ( (.votes|tonumber/1000000000000) * (509.6451627091090586|tonumber) )}'
@ausbitbank
ausbitbank / index.html
Created December 25, 2019 11:54
testground
‎‎​
@ausbitbank
ausbitbank / marketwatch.py
Created September 18, 2019 13:03
Steem engine market discord notifications (requires redis, meeseeker, webcord)
from webcord import Webhook
import redis
import json
import time
palwebhook = Webhook("URLHERE", avatar_url=None)
paltokens = ['PAL','PALM','PALMM']
r = redis.Redis()
def buy(message):
data = message['data'].decode()
@ausbitbank
ausbitbank / stfunextgen.py
Last active February 16, 2019 11:55
Mute all commenters with specific fingerprint
from beem.account import Account
from beem.comment import Comment
import time
steemusername = "ausbitbank"
steempermlink = "@fulltimegeek/we-have-a-thief-on-the-steem-blockchain"
badfingerprint = "8Tp64YH.jpg"
account = Account(steemusername)
muting = account.get_mutings()
print("Already muting "+str(len(muting)))
c = Comment(steempermlink)
@ausbitbank
ausbitbank / GetTheDarkOverlordPosts
Last active January 6, 2021 23:06
Download the posts of @thedarkoverlord direct from a hived node - formatted with jq
curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_discussions_by_blog", "params":[{"tag":"thedarkoverlord","limit":"100"}], "id":1}' https://rpc.ausbit.dev|jq '.result[]|{title:.title,author:.author,permlink:.permlink,body:.body,created:.created,lastupdated:.last_update}'