To install this on your ComputerCraft Turtle run the following command
wget run https://dstn.to/cc-bore
or if you'd rather have the direct url to the install.lua from above instead of the short url
| addEventListener('fetch', event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }); | |
| const domains = { | |
| 'dustin.pics': 'https://cdn.dstn.to/i', | |
| 'files.dstn.to': 'https://cdn.dstn.to/u', | |
| 'snaps.dstn.to': 'https://cdn.dstn.to/snaps', | |
| 'mods.dstn.to': 'https://solder-cdn.dustin.sh/mods', | |
| 'mirror.dstn.to': 'https://solder-cdn.dustin.sh', |
| CREATE SEQUENCE IF NOT EXISTS public.global_id_sequence; | |
| CREATE OR REPLACE FUNCTION id_generator(OUT result BIGINT) AS $$ | |
| DECLARE | |
| epoch BIGINT := 1610850820000; | |
| seq_id BIGINT; | |
| now_millis BIGINT; | |
| shard_id INT := 1; | |
| BEGIN | |
| SELECT nextval('public.global_id_sequence') % 1024 INTO seq_id; |
| addEventListener('fetch', event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }); | |
| async function fetchImage(id, type = 'maxresdefault') { | |
| const req = await fetch(`https://i.ytimg.com/vi/${id}/${type}.jpg`); | |
| if (req.status != 200) return await fetchImage(id, 'hqdefault'); | |
| return req; | |
| }; |
| { | |
| "created_at": "Sat Dec 19 02:22:35 +0000 2020", | |
| "id_str": "1340120314898857984", | |
| "full_text": "carp", | |
| "display_text_range": [ | |
| 0, | |
| 4 | |
| ], | |
| "entities": {}, | |
| "source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>", |
| import json | |
| import os | |
| import mimetypes | |
| import requests | |
| import datetime as dt | |
| from multiprocessing.pool import ThreadPool as Pool | |
| with open('memories.json', 'r') as memories_file: | |
| memories_data=memories_file.read() |
| addEventListener('fetch', event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }); | |
| const default_image = ''; | |
| const kushes = [ | |
| 'https://www.mensjournal.com/wp-content/uploads/mf/weed-marijuana.jpg', | |
| 'https://dynaimage.cdn.cnn.com/cnn/c_fill,g_auto,w_1200,h_675,ar_16:9/https%3A%2F%2Fcdn.cnn.com%2Fcnnnext%2Fdam%2Fassets%2F191031084204-marijuana-flower-stock.jpg', | |
| 'https://media.npr.org/assets/img/2019/03/19/weed-bud-bc500c4866252c287b190cd5fe679238b2a91982.jpg', | |
| 'https://d279m997dpfwgl.cloudfront.net/wp/2018/06/0605_tweed-canada06.jpg', |
| addEventListener('fetch', event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }); | |
| const default_image = 'https://i0.wp.com/images-prod.healthline.com/hlcmsresource/images/AN_images/flaxseeds-1296x728-feature.jpg?w=1155&h=1528'; | |
| const flaxes = [ | |
| "https://i0.wp.com/images-prod.healthline.com/hlcmsresource/images/AN_images/flaxseeds-1296x728-feature.jpg?w=1155&h=1528", | |
| "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcT6rY8sUlsTvYmlY_Pb_IY8-n3VDlGUiX02Eg&usqp=CAU", | |
| "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTvw3pLRTTi_7mHbUhVIAK4nrIft3TutGEw7w&usqp=CAU", | |
| "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTq9yGFnyVm3Cazw6p6h287w3HcYWqNjTIfug&usqp=CAU", |
| addEventListener('fetch', event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }); | |
| const start_images = 1; | |
| const end_images = 47; | |
| const image_folder = 'marley'; | |
| const default_image = `https://dustin.wtf/${image_folder}/1.jpg`; |
| #!/usr/bin/env python3 | |
| import asyncio | |
| import iterm2 | |
| async def main(connection): | |
| app = await iterm2.async_get_app(connection) | |
| effectiveTheme = await app.async_get_variable("effectiveTheme") | |