This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name noTabScroll | |
// @author blackle | |
// @include main | |
// @startup UC.noTabScroll.exec(win); | |
// @shutdown UC.noTabScroll.destroy(); | |
// @onlyonce | |
// @shutdown | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tabbrowser-tab:not([pinned]) { | |
min-width: 1px !important; | |
} | |
.tab-close-button { | |
display: none; | |
} | |
.tab-background { | |
margin-block: 0 !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import http.server | |
import socketserver | |
import threading | |
from urllib.parse import urlparse | |
from math import sqrt | |
import time | |
import pyvips | |
import ssl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import math | |
def printen(string): | |
print(string, end="") | |
items=[ | |
{"url":"https://staging.cohostcdn.org/attachment/4e61ceb0-6840-4b80-821a-be6a01338300/art.jpg","ratio":1.42539}, | |
{"url":"https://staging.cohostcdn.org/attachment/13d3f7b3-df6b-465f-b427-49e8a88dac03/bookshelf.png","ratio":0.711744}, | |
{"url":"https://staging.cohostcdn.org/attachment/879ffd80-2e4c-4afd-a4cf-9dd40c9d0acd/lamp.png","ratio":0.384695}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
def printen(strr): | |
print(strr, end='') | |
internet_text='''<h1 style="font-size: 1.8em;margin-bottom: 0.25em;padding: 0;font-family: 'Linux Libertine','Georgia','Times',serif;line-height: 1.3; border-bottom: 1px solid #a2a9b1;font-weight:normal;">Basilisk collection</h1> | |
<div style="font-family: sans-serif;font-size: calc(1em * 0.8);margin-bottom:1.1em;">From Wikipedia, the free encyclopedia</div> | |
<p style="font-family: sans-serif;margin: 0.5em 0;font-size: calc(1em * 0.875);line-height: 1.6;">The <b>basilisk collection</b> (also known as the <b>basilisk file</b> or <b>basilisk.txt</b>) is a collection of over 125 million <a style="color:#0645AD;" href="https://en.wikipedia.org/wiki/Proof_of_work#Background" title="Proof of work">partial hash inversions</a> of the <a style="color:#0645AD;" href="https://en.wikipedia.org/wiki/SHA-256" class="mw-redirect" title="SHA-256">SHA-256</a> <a style="color:#0645AD;" href="https://en.wikipedia.org/wiki/Cryptographic_hash_function" title="Crypt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import random | |
def printen(strr): | |
print(strr, end='') | |
PANEL_ON = "https://staging.cohostcdn.org/attachment/f4e82b02-9cce-4da5-a768-9b9e90271b7b/panel1.png" | |
PANEL_OFF = "https://staging.cohostcdn.org/attachment/91402e8b-ad9b-4bc2-a710-9f4b411b1229/panel2.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import random | |
from math import floor, sin | |
def printen(strr): | |
print(strr, end='') | |
drawers = [ | |
["https://staging.cohostcdn.org/attachment/d305d6ee-247d-4a2c-8554-08d1769271ca/0007.png", | |
"https://staging.cohostcdn.org/attachment/41f6e39e-a678-47dc-93f7-750045bf7004/0009.png", | |
"https://staging.cohostcdn.org/attachment/25d5915d-4757-4526-b303-996be4e24d1e/0008.png"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
def printen(strr): | |
print(strr, end='') | |
adventure = [ | |
'''welcome to the <b>choost adventure engine!</b> | |
would you like to play a game?''', | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== the cpu itself === | |
registers: | |
unsigned, 16 bit. | |
user accessible: | |
ax,bx,cx,dx,ex,fx,gx,hx | |
inaccessible: | |
ip (instruction pointer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was thinking of what it would take to have a function like: | |
decrypt_if_input_valid(encrypted_data, input) | |
this function checks if the input satisfies some criteria, and if it does it will decrypt the data. | |
suppose our input is a list of numbers, and our criteria is "each number has to be at most 2 away from the number 378." writing this is fairly straightforward | |
however, if we want to distribute this function, it is trivial for someone to decompile it and see what it's checking for. is it possible to use cryptography to hide our validation criteria so we can run our code on insecure systems? |
NewerOlder