Skip to content

Instantly share code, notes, and snippets.

View myfonj's full-sized avatar

Michal Čaplygin myfonj

View GitHub Profile
@myfonj
myfonj / RocketChat Compact.md
Last active July 8, 2018 20:48
RocketChat Compact

RocketChat Compact CSS

Makes Rocket.Chat even more compact / condensed

Prerequisites

  • set User (your top left avatar image) > My Account > Messages: View Mode to "Normal" (messages will be affected anyways, but I haven't tested this in other modes).
  • set Sidebar View Mode (list icon, third next to your avatar) to "Condensed",

How to try:

@myfonj
myfonj / dabblet.css
Created January 31, 2018 16:05
CSS namespace for feature toggling
/* CSS namespace for feature toggling */
@namespace borders "http://www.w3.org/1999/xhtml";
@namespace darkness "http://www.w3.org/1999/xhtml";
@namespace layout "http://www.w3.org/1999/xhtml";
/* delete 'DELETEME': */
@namespace DELETEMEeffects "http://www.w3.org/1999/xhtml";
/* cripple implicit namespace URL for breaking defaults: */
@namespace "http://www.w3.org/1999/xhtml";
body { font-family: Georgia, serif; }
code { font-family: monospace, monospace; outline: 1px dotted; }
@myfonj
myfonj / 7+tt.keyboard.txt
Last active August 22, 2023 23:48
Win+Page Up / Down for switching through taskbar items (like tabbing) via 7+ Taskbar Tweaker - Advanced Settings - Keyboard Shortcuts
0x21|win
101
0x22|win
102
@myfonj
myfonj / ezwinports-batch-download-howto.txt
Created November 25, 2018 19:16
ezwinports bulk download and extract
// prereqs: modern browser, wget, 7zip, text editor
// navigate to:
https://sourceforge.net/projects/ezwinports/files/
// press:
ctrl+shift+k
// type/paste, enter
copy($$('[href$="-bin.zip/download"],[href$="README.txt/download"]').map(e=>e.href).join('\n'))
// paste into file
ezwinports.txt
// sort lines
aäāăąàáãåæcçćĉċčdďđeèéêëēĕėęěgĝğġģhĥħiìíîïĩīĭįıijjĵķĸlĺļľŀłnñńņňʼnŋoøðòóôõöōŏőœrŕŗřsśŝşštţťŧuùúûüũūŭůűųwŵyýŷÿzźżžþſ
@myfonj
myfonj / font-feature-settings.css
Last active December 5, 2018 16:08
Latin-related font feature settings with descriptions from Wikipedia
/*
https://en.wikipedia.org/wiki/List_of_typographic_features
2018-12-05
*/
html {
font-feature-settings:
/*
Features intended for bicameral [cased] alphabets (Latin, Greek, Cyrillic, etc.)
*/
"smcp" off, /* S1 Small Caps - Substitutes lower-case letters with small caps versions */
@myfonj
myfonj / result-fx-65b1-2018-12-06.txt
Last active January 2, 2019 12:34
Unicode characters that decomposes to ASCII + something
 ¨¯´¸˘˙˚˛˜˝ͺ΄΅᾽᾿῀῁῍῎῏῝῞῟῭΅´῾           ‗ ‾  ゛゜ﱞﱟﱠﱡﱢﱣ﹉﹊﹋﹌ﹰﹲﹴﹶﹸﹺﹼﹾ ̄
!‼⁉︕﹗!
""
#﹟#
$﹩$
%﹪%
&﹠&
''
(⁽₍⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇⒜⒝⒞⒟⒠⒡⒢⒣⒤⒥⒦⒧⒨⒩⒪⒫⒬⒭⒮⒯⒰⒱⒲⒳⒴⒵㈀㈁㈂㈃㈄㈅㈆㈇㈈㈉㈊㈋㈌㈍㈎㈏㈐㈑㈒㈓㈔㈕㈖㈗㈘㈙㈚㈛㈜㈝㈞㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩㈪㈫㈬㈭㈮㈯㈰㈱㈲㈳㈴㈵㈶㈷㈸㈹㈺㈻㈼㈽㈾㈿㉀㉁㉂㉃︵﹙(🄐🄑🄒🄓🄔🄕🄖🄗🄘🄙🄚🄛🄜🄝🄞🄟🄠🄡🄢🄣🄤🄥🄦🄧🄨🄩
)⁾₎︶﹚)
@myfonj
myfonj / say.html.datauri.txt
Last active August 4, 2023 14:30
US & GB word pronunciation audio tester Google Dictionary (from Oxford recordings databank)
data:text/html,%3C!doctype%20html%3E%3Chtml%20lang=en%3E%3Ctitle%3EUS-GB%20pronunciation%202.0%3C/title%3E%3Cmeta%20name=viewport%20content="width=device-width,%20initial-scale=1"%3E%3Cbody%20onload=x='https://ssl.gstatic.com/dictionary/static/sounds/20160317/'%20text=snow%20bgcolor=black%3E%3Cbutton%20onfocus=this.click()%20onclick=(e=this.firstChild).src=x+i.value+'--_us_1.mp3';e.play()%3E%3Caudio%20onplay=i.focus()%3E%3C/audio%3EUS%3C/button%3E%3Cinput%20id=i%20autocapitalize=off%20placeholder=(shift+)tab%20value=honest%3E%3Cbutton%20onfocus=this.click()%20onclick=(e=this.firstChild).src=x+i.value+'--_gb_1.mp3';e.play()%3E%3Caudio%20onplay=i.focus()%3E%3C/audio%3EGB%3C/button%3E
@myfonj
myfonj / 0_html-sandbox-2.0.6.datauri.txt
Last active April 19, 2025 15:58
HTML sandbox - editor in data URI 1176 b, with live preview and persistence.
data:text/html;charset=utf-8;verbatim,<!doctype html><html style="color-scheme:dark light"><title>HTML sandbox 2.0.6</title><meta name=viewport content=width=device-width,initial-scale=1><body style=margin:0;display:flex;height:100vh onload="OT=(DC=document).title,H=(L=location).hash.slice(1)||'',RX=/(^data:.+?(;verbatim)?,)?([^]*)/,A.value=H.match(RX)[2]?H:decodeURIComponent(H)||A.value;T=W=0;E=RegExp('^'+(D='data:text/html;charset=utf-8,'));F=()=>{if(W!=(V=A.value))W=V,M=V.match(RX),I.src=M[2]?V:(M[1]||D)+encodeURIComponent(M[3]),DC.title=NT=((TM=V.match(/<title\b[^]*?\x3E([^]*?)<\/title\b/m))&&(NT=TM[1])&&(NT=NT.trim())&&(DC.title=NT+' @ '+OT))||OT};F()"><textarea autocapitalize=off style=resize:horizontal;width:50vw autofocus id=A onkeyup=clearTimeout(T);T=setTimeout(F,400) onblur=try{history.pushState({},NT,'\u0023'+(S=I.src.replace(E,'')))}catch(e){L.hash=S}><!doctype html><html lang="en" style="color-scheme: dark light;">%0A<meta name="viewport" content="width=device-width, initial-scale=1">%0A<title>%
@myfonj
myfonj / mirror.bat
Created March 22, 2019 10:20
wget website mirror
rem based on https://www.reddit.com/r/DataHoarder/comments/8uirgp/httrack_vs_scrapy_vs_hamster_vs_wget/e1g0dlz/
pushd C:\web-root\offline-mirror
wget ^
--adjust-extension ^
--span-hosts ^
--convert-links ^
--backup-converted ^
--page-requisites ^
--trust-server-names ^
--no-check-certificate ^