Skip to content

Instantly share code, notes, and snippets.

@karlredman
karlredman / surfingkeys.js
Last active February 6, 2020 09:15
my surfingkeys.js (google chrome surfingkeys extension configuration)
// an example to create a new mapping `ctrl-y`
mapkey('<Ctrl-y>', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
// map('gt', 'T');
// an example to remove mapkey `Ctrl-i`
unmap('<Ctrl-i>');
//▔▔▔▔▔▔▔▔▔▔
// ➤ NOTES
//▁▁▁
//
//
// Vivaldi keyboard shortcuts are preferred when they need to:
// ● work on browser chrome windows :- always available
// ● happen in an independent process, not blocked by page events :- faster, snappier
//
// Surfingkeys keyboard shortcuts are preferred otherwise as they:
@denisidoro
denisidoro / setup.sh
Last active January 30, 2017 15:52
Codeanywhere CentOS setup
#!/bin/sh
# Update and install some binaries
sudo yum -y update
sudo yum -y install zsh curl wget git nano unzip
# Use temporary directory
mkdir ~/tmp
cd ~/tmp
@db93n2
db93n2 / quick dates.ahk
Last active March 13, 2018 12:27
📆 (autohotkey) - hotstrings to quickly type various date formats
#noEnv
#singleInstance, force
sendMode, input
; #hotstring * ; send each hotstring without needing to type an endkey (space, enter etc)
sp := a_space ; send a space after each hotstring
return ; -----------------------------------------------------------------------
@blueset
blueset / README.md
Last active July 23, 2024 04:42
Download/Print StuDocu.com documents without watermark

Usage

Add StuDocu Extracter to your Browser favorites, and click on it after you open the StuDocu document.

How it works

javascript:(function(){var a = "", x = document.getElementsByTagName("svg"); for(var i = 0; i < x.length; i++){a += x[i].outerHTML;} document.getElementsByTagName("body")[0].innerHTML = a;var a = document.getElementsByTagName("svg");for (var i = 0; i < a.length; i++){a[i].style.width="99.8%";a[i].style.height="auto";a[i].style.position="inherit";a[i].style.display="block";a[i].style.boxShadow="0 3px 3px rgba(0,0,0,0.3)";a
@Onurtag
Onurtag / ExploreEverything.ahk
Last active March 27, 2025 19:50
ExploreEverything.ahk: An autohotkey (ahk v1) script that allows you to search the current explorer folder, your desktop and more using Everything
#SingleInstance Force
#NoTrayIcon ;If you want the tray icon to be visible; comment this line by adding a semicolon ; in front of the #. Example: ;#NoTrayIcon
; ALTERNATIVE METHOD: Try the built-in Everything option "hotkey_explorer_path_search"
; ^^^INFO: https://www.voidtools.com/forum/viewtopic.php?p=17390#p17390
EverythingPath := "C:\Program Files\Everything\Everything.exe" ;Set this to your everything.exe path. Keep the quotes.
;---Optional setup for special folders---
MyRecycleBin := "Recycle Bin" ;If your OS is not English, go to your explorer's "Recycle Bin" (🚮) folder and change this to the title of that window. Keep the quotes.
@EhsanKia
EhsanKia / launchy.ini
Created September 27, 2016 04:01
Keypirinha Plugin to replicate Launchy's database format
#
# Launchy Package configuration file
#
[main]
# Plugin's main configuration section.
# (Nothing here for now)
[directories]
{
"header": {
"Name": "WorkDox",
"Layout": "Ashby1",
"Base": "Blank",
"Version": "0.1",
"Author": "JoshAshby 2016",
"KLL": "0.3c",
"Date": "2015-09-12",
"Generator": "KIICONF 0.2"
@TheNicholasNick
TheNicholasNick / 01_Building.from.Source
Last active January 30, 2017 15:52
CodeAnywhere - Blank Ubuntu 14.04 Initial Config Steps
sudo apt-get update
sudo apt-get install --reinstall language-pack-en-base
sudo dpkg-reconfigure locales
cat <<EOT >> ~/.bashrc
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_MESSAGES=POSIX
EOT
[
[
{
"a": 0
},
"Esc\n\n\n\n~\n`",
{
"a": 4
},
"!\n1\n\n\nF1",