echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
| curl --include \ | |
| --no-buffer \ | |
| --header "Connection: Upgrade" \ | |
| --header "Upgrade: websocket" \ | |
| --header "Host: example.com:80" \ | |
| --header "Origin: http://example.com:80" \ | |
| --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \ | |
| --header "Sec-WebSocket-Version: 13" \ | |
| http://example.com:80/ |
| def _init_numpy_mkl(): | |
| # Numpy+MKL on Windows only | |
| import os | |
| import ctypes | |
| if os.name != 'nt': | |
| return | |
| # disable Intel Fortran default console event handler | |
| env = 'FOR_DISABLE_CONSOLE_CTRL_HANDLER' | |
| if env not in os.environ: | |
| os.environ[env] = '1' |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "net" | |
| "net/http" | |
| "os" |
| git config --global diff.tool bc | |
| git config --global difftool.bc.path "C:\Program Files\Beyond Compare 4\BComp.exe" | |
| git config --global merge.tool bc | |
| git config --global mergetool.bc.path "C:\Program Files\Beyond Compare 4\BComp.exe" | |
| git config --global alias.mydiff "difftool --dir-diff --tool=bc --no-prompt" |
These methods in this gist worked for me on my U.S.-based keyboard layouts. I am unsure about other layouts. If you have problems, revert your changes; delete the registry key you created (and reboot).
Update: you should probably scroll down to approach 4 where I suggest using Microsoft PowerToys Keyboard Manager.
Navigate to and create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map.
Here I have 2 methods for running portainer on windows, a quick, preferred method only requiring a fairly recent version of docker, or a more complicated method to try if that does not work.
This setup will let you run Portainer on windows by using the host.docker.internal endpoint (docker.for.win.localhost is depricated since docker version 3.2.1, but older versions may use this instead).
Please note:
| #requires -version 5.0 | |
| #requires -module PSReadline | |
| Function Optimize-PSReadLineHistory { | |
| <# | |
| .SYNOPSIS | |
| Optimize the PSReadline history file | |
| .DESCRIPTION | |
| The PSReadline module can maintain a persistent command-line history. However, there are no provisions for managing the file. When the file gets very large, performance starting PowerShell can be affected. This command will trim the history file to a specified length as well as removing any duplicate entries. | |
| .PARAMETER MaximumLineCount |
See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.jsonfile in/etc/docker:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
