Skip to content

Instantly share code, notes, and snippets.

@Tirpitz93
Tirpitz93 / smtp_w_attachment
Last active Jun 12, 2018 — forked from lavinj87/gist:238ccb229ac594a50b0a
SMTPHandler with support to attachments
View smtp_w_attachment
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
# from email.Utils import formatdate
from logging.handlers import SMTPHandler
import logging
import os.path
import smtplib
from email.utils import formatdate
View ABP_Filters.txt
[Adblock Plus 2.0]
pcworld.com###bcplayer-gallery_html5_api
pcworld.com##.vjs-tech
pcworld.com##video[src="blob:https://www.pcworld.com/a235d7b8-ebd3-4c34-94a5-6a429f9f02fd"]
ebay.com###rtm_html_11575
ebay.co.uk###rtm_html_11575
csgo-stats.com###ss-promo
csgo-stats.com##div[style="background-image: url('/custom/img/942/2.jpg');background-position: top;width: 100vw;height: 100vh;background-repeat: no-repeat;background-size: 1920px 1080px"]
csgo-stats.com###ss-close
||c-5uwzmx78pmca09x24quialsx2eowwotmix78qax2ekwu.g00.cnet.com/g00/3_c-5eee.kvmb.kwu_/c-5UWZMXPMCA09x24pbbx78ax3ax2fx2fquials.owwotmix78qa.kwux2frax2fkwzmx2fjzqlom1.003.8_mv.pbutx3fq98k.uizsx3dqnzium_$/$/$/$?i10c.ua=1&i10c.dv=14#goog_1682376574
@Tirpitz93
Tirpitz93 / ChestFilter
Last active Jun 7, 2020
extracts from config file for overviewer with ender chest and shulker box support
View ChestFilter
def chestFilter(poi):
import ast, collections
if poi['id'].lower().find("chest") != -1:
if poi.get("LootTable"):
return
# print("processing chest")
from pprint import pprint
_items = 0
_string_value = "Empty Chest"
if poi.get('Items'):
@Tirpitz93
Tirpitz93 / blocks.json
Created Mar 20, 2020
minecraft 20w11a block, model and tag data
View blocks.json
{
"minecraft:acacia_button": {
"tags": [
"minecraft:buttons",
"minecraft:wooden_buttons"
],
"variants": {
"face=ceiling,facing=east,powered=false": {
"model": "minecraft:block/acacia_button",
"x": 180,
@Tirpitz93
Tirpitz93 / Console log 1
Created Mar 30, 2020
Memorey access violation
View Console log 1
C:\Users\*\AppData\Local\Programs\Python\Python38-32\python.exe C:/Datafile/*/Documents/Minecraft-Overviewer/overviewer.py -cC:/Datafile/*/Documents/Minecraft-Overviewer/test_conf/conf.py --forcerender --force-render -p1 -vv
overviewer.py:376 12360 2020-03-30 02:13:36 INFO Welcome to Minecraft Overviewer!
overviewer.py:377 12360 2020-03-30 02:13:36 DEBUG Current log level: 0.
overviewer.py:388 12360 2020-03-30 02:13:36 INFO Forcerender mode activated. ALL tiles will be rendered.
files.py:43 12360 2020-03-30 02:13:36 DEBUG Detected that chmods work in 'C:\\Datafile\\LSelter\\Documents\\Minecraft-Overviewer\\test_conf\\output'
files.py:56 12360 2020-03-30 02:13:36 DEBUG Detected that overwriting renames do NOT work in 'C:\\Datafile\\LSelter\\Documents\\Minecraft-Overviewer\\test_conf\\output'
overviewer.py:489 12360 2020-03-30 02:13:36 DEBUG Found the following render thing: OrderedDict([('world', 'E:\\downloads\\mmc-stable-win32\\MultiMC\\instances\\20w13b\\.minecraft\\sav
View AssetManager API template
import multiprocessing
from functools import lru_cache
from typing import List, Tuple, Union
from PIL.Image import Image
from pip._internal.utils.deprecation import deprecated
from overviewer_core.asset_loader import AssetLoader
You can’t perform that action at this time.