Skip to content

Instantly share code, notes, and snippets.

@dave-kennedy
dave-kennedy / edit-with-vim.reg
Last active March 6, 2018 20:46
Vim context menu entry for Windows
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\*]
[HKEY_CURRENT_USER\Software\Classes\*\shell]
[HKEY_CURRENT_USER\Software\Classes\*\shell\gvim]
@="Edit with Vim"
"Icon"="C:\\Program Files (x86)\\Vim\\vim80\\gvim.exe"
@dave-kennedy
dave-kennedy / vnc.sh
Last active December 16, 2021 15:42
Bash script for controlling VNC sessions
#!/usr/bin/env bash
display_help() {
echo "Usage: `basename "$0"` OPTIONS ACTION
Options must be specified before any action, and only one action may be specified.
Options:
-g | --geometry size specify VNC session display size
@dave-kennedy
dave-kennedy / demo.html
Last active February 20, 2024 17:43
Flyout menus for Bootstrap 4
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Bootstrap flyout demo</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">
<link href="flyout.css" rel="stylesheet">
</head>
<body>