Skip to content

Instantly share code, notes, and snippets.

@ausbitbank
ausbitbank / stylesheet.css
Created October 2, 2016 13:29
Steemit subreddit stylesheet.css v0.1
#header {font-family: Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight: normal;transition: all .3s;border-bottom:1px solid #e6e6e6 !important;border-top:1px solid #e6e6e6 !important;margin-top:0px;padding-top:0px;margin-bottom:5px;border-top:none;height:80px;text-transform:lowercase !important;background-color:white;}
.titlebox h1 a { color:black; text-transform: lowercase; }
#sr-header-area , #sr-more-link { background-color:white; border-bottom:1px solid #e6e6e6 !important;}
#header .tabmenu li a {padding-top:5px;padding-bottom:5px;border:none;color:#8a8a8a;background-color:white;font-size:1em;transition: all .3s;}
#header .tabmenu li a:hover {color:black;}
#header .tabmenu li {font-size: inherit;line-height:2;font-size:135%;font-weight: normal;}
#header .tabmenu li selected { color:black; }
#header-bottom-right .user a { color: #8a8a8a !important; font-weight:700 !important; font-size:small; }
#header-bottom-right, #header-bottom-right a {color: #8a8a8a !important;}
.pagename a {color:
initminer
admin
dark
nxt1
nxt
nxt2
administrator
dantheman
any
nxt3
@ausbitbank
ausbitbank / Dont Hide Flagged Posts steemit css
Created January 2, 2017 03:50
Install with stylish firefox extension
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("steemit.com") {
.downvoted {
color: black;
opacity: 1;
-webkit-filter: none;
filter: none;
.Comment__header-user { color: black; }
}
// lets see whats in block 9508058
db.getCollection('Operations').find({'block_num': 9508058})
// operation types
db.getCollection('Operations').distinct('type', {})
// find latest payments to poloniex
db.getCollection('Operations').find({type: 'transfer', to: 'poloniex'}).sort({timestamp:-1})
<center><img src="https://steemitimages.com/150x150/http://i.imgur.com/1aIHKWR.png"><img src="https://steemitimages.com/150x150/http://i.imgur.com/kpr47uA.png"><img src="https://steemitimages.com/150x150/http://i.imgur.com/1KIfh1e.png"><img src="https://steemitimages.com/150x150/http://i.imgur.com/p0KtBaM.png"></center>
Lucky Luke ('luckyluke.rb') for STEEM. Please have a look at the README.md file.
from beem import Steem
from beem.account import Account
from beem.comment import Comment
import getpass
from time import sleep
import sys
desiredcurationpenalty=0
if len(sys.argv)!=3:
permlink=getpass.getpass(prompt='What the permlink ? (author/post)')
votepower=getpass.getpass(prompt='What vote % ? (0-100)')
@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}'
@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 / 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()