Skip to content

Instantly share code, notes, and snippets.

View Virakal's full-sized avatar

Jon Goodger Virakal

View GitHub Profile
@Virakal
Virakal / toggle-mouse-button.lua
Created February 23, 2023 06:07
Logitech Script: ToggleLMB when button is clicked
-- When this button is pressed, holdButton will be toggled on or off
local toggleButton = 6
-- When toggleButton is pressed, this button will be toggled on or off
local holdButton = 1
local isPressing = false
function OnEvent(event, arg, family)
if event == "MOUSE_BUTTON_RELEASED" and arg == toggleButton and not IsKeyLockOn("scrolllock") then
if isPressing then
@Virakal
Virakal / gist:6e09cb3b26fb038ae1c029451346c9e3
Last active November 12, 2019 13:47
Boxstarter Config
Disable-UAC
Disable-BingSearch
Disable-GameBarTips
Set-TaskbarOptions -Lock -Dock Left -Combine Always
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst toolsroot

Keybase proof

I hereby claim:

  • I am virakal on github.
  • I am virakal (https://keybase.io/virakal) on keybase.
  • I have a public key ASBRoFP15n4eQSxLJMjdvY0SZtC4Fg5x2RZWE8ZbsEBIrAo

To claim this, I am signing this object:

@Virakal
Virakal / confluence-monospace.user.js
Last active April 2, 2020 14:40
Monospace Button for Confluence
// ==UserScript==
// @name Monospace Keyboard Shortcut for Confluence
// @version 0.1
// @description Adds a new keyboard shortcut (Ctrl+Alt+M) for monospace formatting
// @match */pages/createpage.action?*
// @match */pages/editpage.action?*
// ==/UserScript==
tinyMCE.activeEditor.addShortcut("ctrl+alt+m","monospace","confMonospace")
@Virakal
Virakal / persist-directive
Created July 31, 2013 16:28
Automatically persist Angular ng-models between sessions using local storage.
/**
* Usage examples:
*
* <input type="text" ng-model="someText" persist></input>
*
* You can also specify a type to cast the value to:
* <input type="num" ng-model="aNumber" persist="int"></input>
*
* Valid types include:
*
@Virakal
Virakal / persist-directive
Created July 31, 2013 16:28
Automatically persist Angular ng-models between sessions using local storage.
/**
* Usage examples:
*
* <input type="text" ng-model="someText" persist></input>
*
* You can also specify a type to cast the value to:
* <input type="num" ng-model="aNumber" persist="int"></input>
*
* Valid types include:
*