Skip to content

Instantly share code, notes, and snippets.

@hoppfrosch
hoppfrosch / CornerNotify.ahk
Created March 25, 2014 11:28
CornerNotify #ahk #function
;---------------------------------------------------------------
; CornerNotify.ahk
; http://www.autohotkey.com/board/topic/94458-msgbox-replacement-monolog-non-modal-transparent-message-box-cornernotify/
;---------------------------------------------------------------
; CHANGELOG
;v1.12 2014-05-04 CHANGED BY LAGOMORPH
;Added additional "p" parameter for secs to make the popup persist until destroyed via CornerNotify_Destroy()
;Changed GUI name to CornerNotify instead of default GUI to avoid conflicts with other GUIs
@9to5IT
9to5IT / Script_Template.ps1
Last active March 27, 2025 22:52
PowerShell: Script Template
#requires -version 2
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>
@delicb
delicb / autohotkey.ahk
Last active November 22, 2018 12:17
My autohotkey scripts. I have it placed in
;===============================================================
; Perform action on computer unlock.
;===============================================================
;---------------------------------------------------------------
;Notify Lock\Unlock
; This script monitors LockWorkstation calls
;
; If a change is detected it 'notifies' the calling script
; On Lock
; This script will call function "on_lock()"
@dlimpid
dlimpid / autohotkey-macros.ahk
Last active November 20, 2018 12:38
My AutoHotkey Macros - volume, window position and z-position
; variables
; TODO:
; Variables should be at the very top of the script, before any hotkeys.
; Use `gosub` or something else and wrap in the windows size block
narrowWidth := 2 / 5
normalWidth := 1 / 2
wideWidth := 1 - narrowWidth
; Volume
@Rplus
Rplus / mouse.ahk
Last active November 19, 2018 14:10
my personal autohotkey script
; new mouse: microsoft comfort 6000,
; custom side-button behavior by autohotkey,
; => helpful for browser webpage (FB/blog/news)
XButton1::Send {PgDn}
XButton2::Send {PgUp}
~LButton & XButton2::Send {Home}
~LButton & XButton1::Send {End}
@tknerr
tknerr / Vagrantfile
Last active July 2, 2024 19:33
Sample Vagrantfile that works with all providers (virtualbox, aws, managed) and in combination with the vagrant-omnibus plugin
#
# Vagrantfile for testing
#
Vagrant::configure("2") do |config|
# the Chef version to use
config.omnibus.chef_version = "11.4.4"
def configure_vbox_provider(config, name, ip, memory = 384)
config.vm.provider :virtualbox do |vbox, override|
@jboner
jboner / latency.txt
Last active April 23, 2025 18:02
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@ronjouch
ronjouch / ronj-autohotkey.ahk
Created April 20, 2012 13:28
Collection of AutoHotkey scripts I use
; Variables definition
; -----------------------------------------------------------------------------
EnvGet, userProfile, USERPROFILE
Software := userProfile . "\Dropbox\software\"
; Launch or toggle program, http://lifehacker.com/5468862/create-a-shortcut-key-for-restoring-a-specific-window
; -----------------------------------------------------------------------------
ToggleWinMinimize(WindowTitle)
{
SetTitleMatchMode,2
@jpoehls
jpoehls / output.txt
Created March 26, 2012 16:48
PowerShell benchmarking function. Or, the Windows equivalent of Unix's `time` command.
PS> time { ping -n 1 google.com } -Samples 10 -Silent
..........
Avg: 62.1674ms
Min: 56.9945ms
Max: 87.9602ms
PS> time { ping -n 1 google.com } -Samples 10 -Silent -Long
..........
Avg: 00:00:00.0612480
Min: 00:00:00.0572167