Skip to content

Instantly share code, notes, and snippets.

@michaelmob
michaelmob / surfingkeys-config.js
Created December 30, 2022 22:43
My Surfingkeys Configuration
// Fix (2022-12-30): Holding shift to open a link in a new tab using hints
// https://github.com/brookhong/Surfingkeys/issues/1897
settings.hintShiftNonActive = true;
@michaelmob
michaelmob / vim-plug-install.vim
Last active April 9, 2021 18:15
Fetch plug.vim with wget
if empty(glob('~/.vim/autoload/plug.vim'))
let plugurl = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
silent execute '!wget -P ~/.vim/autoload ' . plugurl
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
version: "3.3"
services:
script-server:
container_name: script-server
image: bugy/script-server
restart: unless-stopped
ports:
- "5000:5000"
volumes:
- type: bind
@michaelmob
michaelmob / qemu_usb_dm_config.yml
Last active January 13, 2018 05:24
QEMU_USB_DEVICE_MANAGER_CONFIG
configuration-url: "https://rawgit.com/thetarkus/5527f55dc1ce6eeaf805a9bb1bdc86da/raw/c1b7609801d77c24be6d5eed3329350bd73375f6/qemu_usb_dm_config.yml"
host-machine:
hostname: "pc"
virtual-machines:
windows-vm-1:
monitor: ":7101"
usb-devices:
http://127.0.0.1:8888
@michaelmob
michaelmob / scrot
Last active February 26, 2022 00:20
Use gnome-screenshot for area selection like scrot
#!/usr/bin/env bash
exec gnome-screenshot -a -f ${@:2}
@michaelmob
michaelmob / gchk.user.js
Last active March 25, 2016 23:09
Removes Google's Click Hijacking from search results.
// ==UserScript==
// @name Google Click Hijacking Killer
// @version 1
// @namespace GCHK
// @description Remove Google's Click Hijacking
// @include http://www.google.com/search*
// @include https://www.google.com/search*
// @grant none
// ==/UserScript==
@michaelmob
michaelmob / Phantom-Sequence.js
Created September 13, 2015 04:12
Phantomjs functions in a sequence instead of the awful nesting.
var Sequence = function() {
this.iter = 0;
this.funcs = [];
this.waitFor = function(testFx, onReady, onTimeOut, timeOutMillis) { // Modified!!!
/* https://github.com/ariya/phantomjs/blob/master/examples/waitfor.js
view github page for credits */
var maxtimeOutMillis = timeOutMillis ? timeOutMillis : 3000, //< Default Max Timout is 3s
start = new Date().getTime(),
condition = false,
@michaelmob
michaelmob / StartPage Bangs
Last active November 4, 2023 11:18
Adds !s to StartPage, like DDG
// ==UserScript==
// @name StartPage Bangs
// @namespace http://tarkus.co/
// @version 0.1
// @description Adds !s to StartPage, like DDG
// @match https://startpage.com/*
// @run-at document-start
// ==/UserScript==
// Bangs
@michaelmob
michaelmob / Steam's Link Filter Auto-Continue
Last active August 29, 2015 14:04
Instead of clicking "proceed to website" on Steam's link filter, this Userscript automatically redirects you.