Skip to content

Instantly share code, notes, and snippets.

@tukkek
tukkek / history.sh
Last active October 4, 2025 23:46
Linux terminal history utility
#!/usr/bin/bash
# 1. Install Fuzzy Finder: apt-get install fzf
# 2. Place this script on your $PATH
# 3. Add to your ~/.bashrc file:
# alias "?=source history.sh"
# 4. Use the ? alias to search and select commands
cmd=`history|cut -c 8-|tac|fzf --reverse --scheme=history`
eval "$cmd"
history -s "$cmd"

Konsole delete word

By Raymond Li (Raymo111) 29 August 2021

To map shortcuts like Ctrl+Bksp/Del to delete words backwards and forwards in Konsole:

  1. Go to Settings > Edit Current Profile... > Keyboard > Edit...`
  2. Edit (or add) the following key combos if they don't already exist:
Key Combination Output (Explanation)
Backspace-Ctrl \x7f Backspace without Ctrl should just delete the character before the cursor
Backspace+Ctrl \E\b Backspace with Ctrl should delete the word before the cursor. ^H should be encoded as \x08 (ascii control character code in hex) but Konsole converts that to \b, it's code for backspace.
@lemieuxster
lemieuxster / Bookmarkified
Created May 2, 2012 18:37
QR Code Bookmarklet
javascript:(function(window, document, undefined) {try {var selectedText = document.getSelection().toString(); if (selectedText === ''){selectedText = window.location.href;} if(selectedText !== ''){var baseQRUrl = 'http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl=' + encodeURIComponent(selectedText); window.open(baseQRUrl, '_blank', 'width=400,height=400');}} catch (e) {}})(window, document);