This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Activate the next window in the same window class and virtual desktop. | |
; This works by searching windows by ahk_cls. | |
NextWindow() | |
{ | |
; Get the active window class | |
WinGetClass cls, A | |
; Sometimes the active window class is blank when a Chrome tab is loading. | |
if !RegExMatch(cls, "[^\s]") | |
return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'win32/registry' | |
# Enumerate Putty sessions. blk: (reg, session name). | |
def each_session(&blk) | |
Win32::Registry::HKEY_CURRENT_USER.open('Software\SimonTatham\PuTTY\Sessions') do |reg| | |
reg.each_key do |key| | |
reg.open(key, Win32::Registry::Constants::KEY_WRITE) do |session| | |
yield session, key | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compose a street map and weather radar into an image. | |
# | |
# Map GIS export from ArcGIS. Query f=html to view a sample exported image and form to tweak parameters. | |
# https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer/export?bbox=-15165054.230000%2C2294608.041000%2C-6778397.876000%2C6947666.110000&bboxSR=&layers=&layerDefs=&size=3440%2C1440&imageSR=102100&format=png32&transparent=false&dpi=&time=&layerTimeOptions=&dynamicLayers=&gdbVersion=&mapScale=&rotation=&datumTransformations=&layerParameterValues=&mapRangeValues=&layerRangeValues=&f=html | |
# | |
# Radar GIS export from NOAA. | |
# https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS_Observations/radar_base_reflectivity/MapServer/export?bbox=-15165054.230000%2C2294608.041000%2C-6778397.876000%2C6947666.110000&bboxSR=&layers=&layerDefs=&size=3440%2C1440&imageSR=102100&format=png32&transparent=true&dpi=&time=&layerTimeOptions=&dynamicLayers=&gdbVersion=&mapScale=&rotation=&datumTransformations=&layerParameterValues=&mapRangeValues=&laye |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import time | |
from Foundation import NSObject, NSLog | |
import objc | |
import sys | |
# Load CoreAudio framework | |
objc.loadFramework('CoreAudio') | |
# Load Audio Toolbox framework for additional audio session info |
OlderNewer