- Azure > Marketplace > Ubuntu
- Autoshutdown Disabled
- Networking: Add inbound rule for port 1194 (TCP and UDP)
wget https://git.io/vpn -O openvpn-install.sh
| #!/usr/bin/env sh | |
| COMMAND=$1 | |
| case "$COMMAND" in | |
| ass-outline) | |
| # Add outline to all ASS subtitles in current directory | |
| for file in *.ass; do | |
| echo "$COMMAND: Processing $file" | |
| perl -pe 's/(^Dialogue: ([^{]*?,){9})(?=[^{])/\1\{\\bord3}\{\\blur14}/g' <"$file" >temp | |
| mv temp "$file" |
| # | |
| # This background job automatically suspends your Workstation after a specified amount of | |
| # time. It will come in handy if Windows sleep feature seems to go AWOL. | |
| # | |
| # start with | |
| # powershell.exe -windowstyle hidden -executionpolicy Unrestricted P:\ATH\TO\logoff.ps1 | |
| # | |
| # `-windowstyle hidden` will make your PowerShell disappear/run in background | |
| # `-executionpolicy Unrestricted` will enable this PowerShell process to allow non-signed scripts | |
| # |
| /** | |
| * querySelectorAll with regex support. | |
| * TS version: https://gist.github.com/sagirk/3240407ebbc9369356759a806b66fe34. | |
| * | |
| * Note: In the `attributeToSearch` parameter's absence, all attributes on all | |
| * DOM nodes will be searched. This can get quite expensive for large DOM trees. | |
| * | |
| * Usage example: | |
| * `querySelectorAllRegex(/someregex/, 'target-specific-attribute-if-needed');` | |
| * |
| /** | |
| * querySelectorAll with regex support. | |
| * Adapted from: https://stackoverflow.com/a/62144522. | |
| * | |
| * Note: In the `attributeToSearch` parameter's absence, all attributes on all | |
| * DOM nodes will be searched. This can get quite expensive for large DOM trees. | |
| * | |
| * Usage example: | |
| * `querySelectorAllRegex(/someregex/, 'target-specific-attribute-if-needed');` | |
| * |
| # Video encoding. Arguments to ffmpeg should be passed in quotes | |
| # Example | |
| # ls *.avi | ff_avi2webm "-filter:v 'crop=in_w-100:in_h/2'" | |
| ff_any2webm(){ | |
| parallel ffmpeg -i {} $1 -c:v vp9 {.}.webm | |
| } | |
| ff_whatsapp(){ | |
| # Convert specified videos to mp4 that are compatible with whatsapp |
| # Interpolate video frames for a higher frame rate | |
| ffmpeg -i source.mp4 -filter:v minterpolate -r 25 result.mp4 | |
| ffmpeg -i source.mp4 -vf minterpolate=50,tblend=all_mode=average,framestep=2 result.mp4 | |
| # Change the framerate (to 5 fps) of an input h264 raw video and convert to mkv | |
| ffmpeg -r 5 -i input.h264 -vcodec copy output.mkv | |
| # Crop a video to the bottom right quarter | |
| ffmpeg -i in.mp4 -filter:v "crop=in_w/2:in_h/2:in_w/2:in_h/2" -c:a copy out.mp4 |
Sidewinderd: https://github.com/tolga9009/sidewinderd
Download:
Reed Slaby, March 2018
Having grown tired of wasting a perfectly good monitor on my ethereum mining rig, I finally decided to replace the Ubuntu Desktop 16.04 installation with Ubuntu Server 16.04. Many of the gtutorials available at the time of this writing range from unecessarily complicated to flat-out wrong. This guide is intended to address many of those shortfalls.
To complete this guide, you should already have: