Skip to content

Instantly share code, notes, and snippets.

@mitry
mitry / translate-deepseek.user.js
Created April 20, 2025 02:31
Умный Переводчик (Via)
// ==UserScript==
// @name Умный Переводчик (Via) v6.2
// @namespace http://tampermonkey.net/
// @version 6.2
// @description Фикс позиционирования над панелью браузера
// @match *://*/*
// @grant GM_xmlhttpRequest
// @connect *
// ==/UserScript==
@mitry
mitry / Hacking-Tools-Cheat-Sheet.md
Created March 7, 2025 03:07
Hacking Tools Cheat Sheet, v2.0
@mitry
mitry / turndown.bookmarklet.js
Last active February 8, 2025 15:34
Bookmarklet: save webpage as clean Markdown file.
javascript:
!function(){
const
base64 = x => btoa(unescape(encodeURIComponent(x))),
onload = x => {
if (!Readability || !TurndownService) return;
const content = new Readability(document.cloneNode(true)).parse().content,
text = new TurndownService().turndown(content)
+ `\n\n[original]: ${document.location.href} "${document.title}"\n`,
@mitry
mitry / DarkIntrovert.user.js
Last active January 14, 2025 02:55
Dark Introvert UserScript
// ==UserScript==
// @name Dark Introvert
// @namespace https://viayoo.com/
// @version 0.3
// @description fastest and simplest dark theme invertor.
// @author mitry
// @run-at document-start
// @grant GM_addStyle
// @match https://ru.m.wiktionary.org/w/*
// @match https://pda.tv.yandex.ru/*
@mitry
mitry / .mkshrc
Last active April 19, 2025 05:00
my customized mksh startup script
# @(#) ~mitry/mkshrc for MkSh on Android
# @url https://termbin.com/b8fn -- 2023-04-28 version
# @url https://snippet.host/hzhrsr
# If not running interactively, don't do anything
[[ -o interactive ]] || return
# [[ $- != *i* ]] && return
# Prettify error messages:
(( ${#0} > 10 )) && exec -a mksh $0 "$@"
@mitry
mitry / music-history.md
Last active February 13, 2025 21:41
Music History timeline

Music History timeline

@mitry
mitry / Dark-important.css
Created November 16, 2022 11:22
Universal Dark theme CSS
html {
background:#333 !important;
}
html * {
background:none !important;
color:#bbb !important;
border-color:#333 !important;
border-width:0 !important;
}
@mitry
mitry / echo-n.cmd
Created August 26, 2017 19:05
echo string without trailing CRLF on Windows CMD
@<NUL set /p="%*"
@mitry
mitry / md.php
Last active August 23, 2017 00:54
markdown apache handler
<?php
/**
* @usage:
* .htaccess or Apache httpd.conf file:
* ```
* AddType text/markdown .md .markdown .mrd
* Action markdown /cgi-bin/md.php
* AddHandler markdown .md .markdown .md.txt
* ```
*/
@mitry
mitry / pgpkey.asc
Created August 11, 2017 04:39
mitry's public pgp key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGiBEA1KbkRBACfCSLgD2/Dlrh0oGAym01beis4MY8QDu9SMt8tnSb+0R4IqQmc
N/C8WfVXD+3fyOSYmby0C9PJUArCNTp6YDGMVyhKUBwA0sHq5dCWV3ayi2sWjClv
umnhiG6C1svY/vnj9vsHInkHofmEJYphlN3UKEYL6EWfrPU0itrl86xD9wCgjPSu
8lsgJcFhnnZgdWyhV5rYRRED/iMNjka7gXEtgIKjaAojVU9gNoPSQ5pziF2bzLK8
fqOJlLkfUSTVIkBOwe9Klb+bHozTiOGGXvgM3zYeFg2Q3iJUW2CX8LO5RuBSDYxk
MoSogSGzChXLz9Z6TsVC10uwM2hYM2BwFXy6SfpUlr8qv4sx18xgOIkcKxjrDsQp
0s9cBACR0f2izTMD0LgLhiU9ZZ7KhV2jCufiZu1zwZTY/+9KkPGEooJvGIv7fb9B
a1ebljpbD9YvenRjYoeK/dgp2J70FC+DoO3b7S16LcHXGQ/9F8iWGOPvEHzSN2HT