This file contains 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
; Recommended for performance and compatibility with future AutoHotkey releases. | |
#NoEnv | |
; Recommended for new scripts due to its superior speed and reliability. | |
SendMode Input | |
; Ensures a consistent starting directory. | |
SetWorkingDir %A_ScriptDir% | |
; Mentioned in the hotkeys docs for UP | |
Space & F1::Return |
This file contains 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
Register-ScheduledTask ` | |
-TaskName "AHK-Macros" ` | |
-Action $(New-ScheduledTaskAction -Execute "path\to\ahk.exe" -Argument "D:\Drive\etc\macros.ahk" -WorkingDirectory "D:\Drive\etc") ` | |
-Trigger $(New-ScheduledTaskTrigger -AtLogOn) ` | |
-Principal $(New-ScheduledTaskPrincipal -GroupId "BUILTIN\Administrators" -RunLevel Highest) |
This file contains 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
#!/bin/bash | |
changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
runOnChange() { | |
echo "$changedFiles" | grep -q "$1" && eval "$2" | |
} | |
runOnChange resources/js/ "npm run <your-npm-script>" | |
runOnChange resources/scss/ "npm run <your-npm-script>" |
This file contains 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
switch ($args[0]) { | |
"hide" { | |
Set-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name System.IsPinnedToNameSpaceTree -Value 0 | |
Set-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name System.IsPinnedToNameSpaceTree -Value 0 | |
break; | |
} | |
"show" { | |
Set-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name System.IsPinnedToNameSpaceTree -Value 1 | |
Set-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name System.IsPinnedToNameSpaceTree -Value 1 | |
break; |
This file contains 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
''' | |
Put this script in a messy folder filled with images and video files. | |
After running it, a "Years" folder will be created with the media files | |
sorted by months in each year. | |
You can also change what types of files to look for in your folder by | |
adding to or changing the "imgFormats" and "videoFormats" lists. | |
''' | |
import os |
NewerOlder