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
@echo off | |
set "VIRTUAL_ENV=C:\path\to\project\venv" | |
CALL :RESOLVE "%VIRTUAL_ENV%\.." PromptName | |
for %%f in (%PromptName%) do set PromptName=%%~nxf | |
if defined _OLD_VIRTUAL_PROMPT ( | |
set "PROMPT=%_OLD_VIRTUAL_PROMPT%" | |
) else ( | |
if not defined PROMPT ( |
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
Plex Media Server often stores incorrect 'added' timestamps when adding new items, causing some items to stick perpetually at the top | |
of the list. Run the following command in a command prompt to fix the database: | |
"%PROGRAMFILES%\Plex\Plex Media Server\Plex Media Server.exe" -sqlite "%LOCALAPPDATA%\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db" "UPDATE metadata_items SET added_at = created_at where added_at >= unixepoch();" | |
If that didn't work, you may have installed the 32bit build of Plex Media Server on 64bit Windows. Try the following: | |
"%PROGRAMFILES(X86)%\Plex\Plex Media Server\Plex Media Server.exe" -sqlite "%LOCALAPPDATA%\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db" "UPDATE metadata_items SET added_at = created_at where added_at >= unixepoch();" | |
The command can also be saved into a textfile, and renamed as 'fix-plex-recent-items.bat' for ease of use. |
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
@echo off | |
for %%i in (*) do ( | |
if not "%%~ni" == "organize" ( | |
md "%%~ni" && move "%%~i" "%%~ni" | |
) | |
) |
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
# In your docker-compose.yaml, set | |
# - BASE_URL=https://myhost.com | |
# with no port and no URL prefix. | |
location ^~ /planka { | |
# Set proxy headers | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; |
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
# Nginx reverse proxy config for wizarr in docker on a URL prefix | |
# Use docker's DNS | |
resolver 127.0.0.11; | |
# wizarr | |
location /wizarr/ { | |
set $upstream_app wizarr; | |
proxy_pass http://$upstream_app:5690; |
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
# nginx configuration snippet for running Uptime Kuma on a URL prefix | |
# set up for yourdomain.com/kuma, with traffic forwarded to a docker | |
# container with the hostname 'uptime-kuma' | |
# Use docker's DNS | |
resolver 127.0.0.11; | |
# uptime kuma | |
location /uptime { |