Skip to content

Instantly share code, notes, and snippets.

@aejay
aejay / FixSpotifyAeroSnap.ahk
Created December 20, 2012 13:51
I'm tired of not being able to use Aero's Snap feature on Spotify's window in Win7 and Win8. This AutoHotKey script will perform a fix to the window on load, as well as any time you attempt to use a Win+{Direction} combo on the Spotify window.
if WinExist("Spotify") or WinExist("ahk_class SpotifyMainWindow")
{
WinGet, Style, Style
WinSet, Transparent, OFF
WinSet, Style, % Style | 0x40000 | 0x400000 | 0x800000 | 0xc00000
}
#Up::
FixSpotify()
Send #{Up}
@aejay
aejay / AutoAcceptMeetings.vba
Created February 15, 2013 16:00
Quick Outlook macro to automatically accept a meeting request, and notify you that it has been accepted. Use the Alt+F11 combo to pull up the VBA editor. To utilize the function, you will need to add a rule that uses the "Run a script" action.
Sub AutoAcceptMeetings(oRequest As MeetingItem)
If oRequest.MessageClass <> "IPM.Schedule.Meeting.Request" Then
Exit Sub
End If
Dim oAppt As AppointmentItem
Set oAppt = oRequest.GetAssociatedAppointment(True)
Dim oResponse
@aejay
aejay / Custom.css
Created January 1, 2014 17:06
Removing some temptation from the StayFocusd extension for Chrome. To use this, 1) Remove the button from your toolbar, 2) visit the extensions page and allow the extension to run in incognito mode (recommended), and 3) add these styles to your user stylesheets (on Windows, that's found at %APPDATA%\Local\Google\Chrome\User Data\Default\User Sty…
#laankejkbhbdhmipfmgcngdelahlfoji .checkbox,
#laankejkbhbdhmipfmgcngdelahlfoji .trash,
#laankejkbhbdhmipfmgcngdelahlfoji .show-button {
display: none!important;
}
#laankejkbhbdhmipfmgcngdelahlfoji .enable-controls:before {
content: "Get back to work.";
}