A Pen by Lopez Hugo
This file contains hidden or 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 YouTube Can't Even Write a True Theater Mode | |
// @namespace CypherpunkSamurai | |
// @version 0.5 | |
// @description Youtube is hiring people who can't even write a proper css theater mode. | |
// @author Azb | |
// @match https://www.youtube.com/watch* | |
// @match https://www.youtube.com/playlist* | |
// @match https://www.youtube.com/shorts* | |
// @match https://www.youtube.com/live* |
This file contains hidden or 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
-----BEGIN PRIVATE KEY----- | |
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDCrXfP4bTEwGsT | |
dzbh+NboJTGRME1IxHViCi+qJHcKASYz33uFyLqkTO7eExzQPty7X8Oc3TJLwRxn | |
ftxtv9SyIxDEi7Z2WCih5sPoJANS75yRJUwqTGGc0oVSEnBC40yf0RNZ0ZT2cQ/2 | |
ZllvohefnwVCROIJbT1DYo0UtFsMkDVaBPm4nGfn4dlTJFPqOcs1bDCoZtID8q4Q | |
ku9rXiNPcGodDoOesUVOk4c472RkRf8eIaug3PiTD/GO6hwVXCipOIIagZSjhATE | |
LE3l+SqM5QVKCxWOECE84y2KWUG6p7z2iFF4Age2iZVKw2kf2B80DPivFbs36bGq | |
HxexWS7BAgMBAAECggEACFn/v1PL+PrWPR4KpTQTKB9cWoGrdxkyffO46sAouS2m | |
cWg/eNRNKXpBbxZ70HU56/HmRub4XuaYbNo046Jsof2+HOhvefE7QQLQ2bcdy2OL | |
IHDsrQ3czCj93jD7TutIYLzL6zkB/naIPEZUxOS7xbXBOIATAFuG2sqyCbbZBxdf |
This file contains hidden or 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
@echo OFF | |
:: How to use: | |
:: 1. Put xdelta3.exe in C:\ | |
:: 2. Put old_file and new_file in any folder but must in same directory | |
:: 3. run with cmd: patch.bat old_file.mkv new_file.mkv mypatch | |
:: 4. patch now in 'xdelta' folder | |
set xdelta3="C:\xdelta3.exe" | |
set patch_dir=%~dp1\xdelta | |
call :Createxdelta %1 %2 %3 |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Sine Wave</title> | |
<script type="text/javascript"> | |
function showAxes(ctx,axes) { | |
var width = ctx.canvas.width; | |
var height = ctx.canvas.height; | |
var xMin = 0; |
This file contains hidden or 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
<script type="importmap"> | |
{ | |
"imports": { | |
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js", | |
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/" | |
} | |
} | |
</script> |
This file contains hidden or 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 argparse | |
import random | |
import sys | |
from transformers import AutoModelForCausalLM, AutoTokenizer, DynamicCache | |
import torch | |
parser = argparse.ArgumentParser() | |
parser.add_argument("question", type=str) | |
parser.add_argument( |
This file contains hidden or 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
""" | |
Structlog example configuration with FastAPI. | |
Features: | |
- async bound logger | |
- contextvars to log request-id and other meta data | |
- custom format for default logging loggers and structlog loggers | |
""" | |
import asyncio | |
import logging |
This simple Gist will explain how to settup your GPG key to work for SSH authentication (with Git) and Git commit signing on Windows 10. This may seem straightforward on Linux, but there are certain tweaks needed on Windows.
No Cygwin, no MinGW, no Git Bash or any other Linux emulated environment. This works in pure Windows 10.
Tested on Ubuntu 16.04 Docker container. The Dockerfile is a single line FROM ubuntu:16.04
.
NOTE: stopping services didn't work for me for some reason. That's why there is pidof <service name> | xargs kill
after each failed service <service name> stop
to kill it.