Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
Action | Windows/Linux | macOS |
---|---|---|
New window | Ctrl+Shift+N | Cmd+N |
Close window | Alt+F4 | Cmd+Shift+W |
// To use this bookmarklet just urlencode this, and remove the comment lines, create a new bookmark and copy this into the url | |
javascript:(function(){ | |
//remove image elems | |
for (let i= document.images.length; i-->0;) | |
document.images[i].parentNode.removeChild(document.images[i]); | |
// make TR and TD elems background white | |
let tableElems = document.querySelectorAll('tr, td'); | |
for(let i=0; i<tableElems.length;i++) | |
tableElems[i].style.backgroundColor='white';})(); |
"Match Groups (1st letter), (rest of letter characters (as many in a row as possible)) | |
"\u = Uppercase next character of 1st match | |
"\L = Lowercase rest of word | |
%s/\v<(\w)(\w{1,})/\u\1\L\2/g |
javascript:/* Adblock Simple */ | |
(function(){ | |
const exceptOrigins = [ | |
'https://disqus.com', | |
document.origin | |
]; | |
function remIF(e){ | |
try{ | |
var orgn = new URL(e.src || 'http://unknown-src').origin; |
/* | |
MyPage bookmarklet | |
Copyright 2006 Steve Clay | |
License: http://mrclay.org/licenses/bsd.html | |
*/ | |
// this lets you remove individual elements (I only use R, and esc) | |
/* | |
Perform actions via keyboard (mouse over [?] in the top right corner) | |
R Remove selected element(s) | |
U Undo removal |
(function() { | |
var CLASS = 'hide-images'; | |
var STYLE = 'html body,html body *,html body *::before,html body *::after { background-image: none !important; } html body img, html body svg, html body video, html body iframe { opacity: 0.02 !important; }'; | |
var block = document.querySelector('.' + CLASS); | |
// add/remove style block to override images | |
if (block) block.remove(); | |
else { | |
block = document.createElement('style'); | |
block.className = CLASS; |
@echo off | |
set filename=%1 | |
set "strToMeasure=%CD%" | |
call :strLen strToMeasure strlen | |
@REM echo.String is %strlen% characters long | |
call :filePath %strlen% %filename% | |
exit /b | |
@REM methods stolen to get string length |
`javascript:javascript:(function(){var d=document,i=0,l,em=0,ed,b=d.body,w=window,sl=[],hid=[],$=b.getElementsByTagName('*'),cTp=(d.all&&!w.opera)?'absolute':'fixed',css=d.createElement('style');css.type='text/css';css.media='all';var cT='#mPp{font-size:15px;padding:5px;background:#fdd;color:#000;position:'+cTp+';top:0;right:0;zIndex:1000;text-align:right}#mPp:hover{padding:.5em;line-height:1.6;}#mPp:hover u{display:none}#mPp i{display:none;text-align:left;cursor:default;color:#000}#mPp:hover i{display:block}#mPp b{border:1px outset #000;background:#fff;color:#666;padding:0 2px;margin-right:4px}#mPe{position:absolute;left:0;right:0;padding:5px 10px;background:#fdd;text-align:left}#mPe textarea{width:99%;display:block}'+'.mPs,.mPs *{background:#ff0;color:#000;}.mPh{background:#ffc;}.mPi,.mPi *{background:#fff;width:auto;float:none;margin:1em 0;padding:0;}body.mPi{text-align:left;margin:0;}'.replace(/;/g,' !important;');if(css.styleSheet)css.styleSheet.cssText=cT;else css.appendChild(d.createTextNode(cT));d.get |
javascript:void(function(){setInterval(function(){document.querySelectorAll('iframe').forEach(function(element){console.log('Iframe Killa - Removing Element:', element);element.parentNode.removeChild(element)})},100)}()); |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\Neovim] | |
@="Edit with Neovim" | |
"Icon"="C:\\tools\\neovim\\Neovim\\bin\\nvim-qt.exe" | |
[HKEY_CLASSES_ROOT\*\shell\Neovim\command] | |
@="\"C:\\tools\\neovim\\Neovim\\bin\\nvim-qt.exe\" \"%1\"" |