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
| @echo off | |
| setlocal enabledelayedexpansion | |
| echo ======================================== | |
| echo Installing Open WebUI as a Windows service | |
| echo ======================================== | |
| :: Define variables | |
| set "INSTALL_DIR=%~dp0" | |
| set "INSTALL_DIR=%INSTALL_DIR:~0,-1%" | |
| set "DATA_DIR=%INSTALL_DIR%\data" |
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
| --- | |
| blueprint: | |
| name: Conversation agent Agenda Notification | |
| description: | |
| Conversation agent generates a notification based on the upcoming calendar | |
| agenda, location, and weather information. | |
| domain: automation | |
| input: | |
| notify_time: | |
| name: Notification time |
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
| // Subscribe on YouTube, and follow on TikTok (@mattupham)! Socials found below: | |
| // https://mattupham.com/links | |
| // @ me on Discord with any questions! | |
| https://link.mattupham.com/discord | |
| // -------------------------------------------- | |
| // PLEASE REPLACE "your-api-key-here" WITH AN | |
| // API KEY FROM https://ipgeolocation.io/ | |
| let apiKey = "your-api-key-here"; |
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
| types { | |
| text/html html htm shtml; | |
| text/css css; | |
| text/xml xml; | |
| image/gif gif; | |
| image/jpeg jpeg jpg; | |
| application/javascript js; | |
| application/atom+xml atom; | |
| application/rss+xml rss; |
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
| <# | |
| .SYNOPSIS | |
| Script to Initialize my custom powershell setup. | |
| .DESCRIPTION | |
| Script uses scoop | |
| .NOTES | |
| **NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted. | |
| Author: Mike Pruett | |
| Date: October 18th, 2018 |
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
| /* 2>nul || title FreeStandbyMemory.bat by AveYo v2019.06.01 | |
| @echo off|| csc compiling snippet, advanced schedule, builtin add_remove - UPDATE: reliable free memory detection | |
| set/a CLEAR_EVERY_MINUTES=1 | |
| set/a CLEAR_WHEN_UNDER_MB=512 | |
| set/a CLEAR_SYSTEMCACHEWS=0 | |
| :: check_admin_rights | |
| reg query "HKEY_USERS\S-1-5-20\Environment" /v TEMP >nul 2>nul || ( | |
| color 0e & echo. & echo PERMISSION DENIED! Right-click %~nx0 ^& Run as administrator |
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
| import java.io.*; | |
| import java.util.zip.Deflater; | |
| import java.util.zip.GZIPInputStream; | |
| import java.util.zip.GZIPOutputStream; | |
| public class OmcTextDecoder { | |
| private final int SALT_LENGTH = 256; | |
| private final String XML_HEADER = "<?xml"; | |
| private final byte[] salts = new byte[]{(byte) 65, (byte) -59, (byte) 33, (byte) -34, (byte) 107, (byte) 28, (byte) -107, (byte) 55, (byte) 78, (byte) 17, (byte) -81, (byte) 6, (byte) -80, (byte) -121, (byte) -35, (byte) -23, (byte) 72, (byte) 122, (byte) -63, (byte) -43, (byte) 68, (byte) 119, (byte) -78, (byte) -111, (byte) -60, (byte) 31, (byte) 60, (byte) 57, (byte) 92, (byte) -88, (byte) -100, (byte) -69, (byte) -106, (byte) 91, (byte) 69, (byte) 93, (byte) 110, (byte) 23, (byte) 93, (byte) 53, (byte) -44, (byte) -51, (byte) 64, (byte) -80, (byte) 46, (byte) 2, (byte) -4, (byte) 12, (byte) -45, (byte) 80, (byte) -44, (byte) -35, (byte) -111, (byte) -28, (byte) -66, (byte) -116, (byte) 39, (byte) 2, (byte) -27, (byte) -45, (byte) -52, (byte) 125, (byte) 39, (by |
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
| $sourcePath = 'HKLM:\software\Microsoft\Speech_OneCore\Voices\Tokens' #Where the OneCore voices live | |
| $destinationPath = 'HKLM:\SOFTWARE\Microsoft\Speech\Voices\Tokens' #For 64-bit apps | |
| $destinationPath2 = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\SPEECH\Voices\Tokens' #For 32-bit apps | |
| cd $destinationPath | |
| $listVoices = Get-ChildItem $sourcePath | |
| foreach($voice in $listVoices) | |
| { | |
| $source = $voice.PSPath #Get the path of this voices key | |
| copy -Path $source -Destination $destinationPath -Recurse | |
| copy -Path $source -Destination $destinationPath2 -Recurse |
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
| -- How to use this script: | |
| -- 1. Install the Logitech Gaming Software: http://support.logitech.com/en_us/software/lgs | |
| -- 2. Launch it, and right click on your profile (the gear icon) and then click on "Scripts". | |
| -- 3. Add the following code into the Script window, save it, and close it. Enjoy. | |
| -- Now G1 is bound to F13, G2 to G14, ... G12 to F24. | |
| function OnEvent(event, arg) | |
| -- OutputLogMessage("event = %s, arg = %s\n", event, arg) |
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
| ; [Win+A] Toggle always on top | |
| #a:: Winset, Alwaysontop, , A | |
| ; [Win+WheelUp] Increase opacity | |
| #WheelUp:: | |
| DetectHiddenWindows, on | |
| WinGet, curtrans, Transparent, A | |
| if ! curtrans | |
| curtrans = 255 | |
| newtrans := curtrans + 8 |
NewerOlder