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
#![allow(clippy::all)] | |
#![allow(unused)] | |
#![allow(non_camel_case_types)] | |
#![allow(while_true)] | |
#![feature(ascii_char)] | |
use std::io; | |
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
import logging | |
import sys | |
import time | |
import httpx | |
logging.basicConfig(level=logging.DEBUG) | |
class Scraper(object): |
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 Delete Custom SCP CSS | |
// @match *://scp-wiki.wikidot.com/* | |
// @match *://www.scpwiki.com/* | |
// @grant none | |
// @version 1.0 | |
// @author Lura Skye | |
// @description Disables custom SCP CSS. Has special handling for a few variants. | |
// @run_at document-end | |
// @homepage_url https://gist.github.com/Fuyukai/16a72967f5deef1f3d36f3737ef4e1b5 |
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
a.ProfileHeaderCard-nameLink { | |
display: none; | |
} | |
h1.ProfileHeaderCard-name:after { | |
content: "vore imouto ⭐"; | |
} | |
a.account-group[href="/ufauta"] strong.fullname { | |
display: none; | |
} |
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
idx: 0 | Next instruction: PythonInstruction(opcode=LOAD_BUILD_CLASS, argument=0) | |
idx: 1 | Next instruction: PythonInstruction(opcode=LOAD_CONST, argument=0) | |
idx: 2 | Next instruction: PythonInstruction(opcode=LOAD_CONST, argument=1) | |
idx: 3 | Next instruction: PythonInstruction(opcode=MAKE_FUNCTION, argument=0) | |
idx: 4 | Next instruction: PythonInstruction(opcode=LOAD_CONST, argument=1) | |
idx: 5 | Next instruction: PythonInstruction(opcode=CALL_FUNCTION, argument=2) | |
idx: 0 | Next instruction: PythonInstruction(opcode=LOAD_NAME, argument=0) | |
idx: 1 | Next instruction: PythonInstruction(opcode=STORE_NAME, argument=1) | |
idx: 2 | Next instruction: PythonInstruction(opcode=LOAD_CONST, argument=0) | |
idx: 3 | Next instruction: PythonInstruction(opcode=STORE_NAME, argument=2) |
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
2020-01-04 19:58:28,022 [3673953] ERROR - intellij.openapi.progress.Task - Invalid remote: upstream | |
org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: upstream | |
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:252) | |
at cloak.git.CloakRepository.updateRemote(CloakRepository.kt:73) | |
at cloak.git.CloakRepository.switchToBranch(CloakRepository.kt:40) | |
at cloak.git.YarnRepo.switchToBranch(YarnRepo.kt:103) | |
at cloak.git.YarnRepo.switchToBranch$default(YarnRepo.kt:93) | |
at cloak.actions.SubmitActionKt$createPr$2.invokeSuspend(SubmitAction.kt:78) | |
at cloak.actions.SubmitActionKt$createPr$2.invoke(SubmitAction.kt) | |
at cloak.idea.platformImpl.IdeaPlatform$asyncWithText$$inlined$suspendCoroutine$lambda$1$1.invokeSuspend(IdeaPlatform.kt:169) |
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
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; | |
ssl_prefer_server_ciphers on; | |
ssl_ciphers TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-256-GCM-SHA384:TLS13-AES-128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384; | |
ssl_dhparam /etc/nginx/ssl/dh4096.pem; | |
ssl_ecdh_curve secp384r1; | |
gzip off; | |
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"; | |
ssl_session_cache shared:SSL:50m; | |
ssl_session_timeout 5m; |
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
import trio | |
async def one(): | |
try: | |
1 / 0 | |
except ZeroDivisionError: | |
await two() | |
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
import dis | |
import inspect | |
isasyncfn_original = inspect.iscoroutinefunction | |
def _is_calling_from_async(frameinfo): | |
""" | |
Checks if the frame is awaiting the next stack frame. | |
""" |
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
def _suspend_self(namespace, suspended): | |
""" | |
Suspends a function, so that it has a self. | |
:param namespace: The self namespace to use. | |
:return: A function that will call the next function with self. | |
""" | |
def suspender(*args, **kwargs): | |
return suspended(namespace, *args, **kwargs) |
NewerOlder