Skip to content

Instantly share code, notes, and snippets.

@notsure2
notsure2 / build-qbittorrent-static.sh
Last active November 13, 2022 21:06
How to compile latest qBittorrent-nox with static qt and boost for Debian Stretch 9.0 (using Debian Stretch 9.0)
#!/bin/sh
set -e
apt install -y build-essential git perl python2.7 libboost-all-dev libboost-tools-dev zlib1g-dev autoconf libssl-dev
QBITTORRENT_TAG=v4_2_x
LIBTORRENT_TAG=RC_1_2
QT5_TAG=5.12
rm -rf work
mkdir work
@Goshik92
Goshik92 / ffmpeg_options.txt
Last active April 23, 2018 15:33
Using Intel Quick Sync Video accelerator to capture realtime video with ShareX and ffmpeg in HEVC/H.265
-y -rtbufsize 256M -f dshow -framerate $fps$ -i video="screen-capture-recorder":audio="virtual-audio-capturer" -c:v hevc_qsv -load_plugin hevc_hw -global_quality 20 -look_ahead 1 -r $fps$ -tune zerolatency -movflags +faststart -c:a aac -strict -2 -ac 2 -b:a 256k "$output$"
@magnetikonline
magnetikonline / README.md
Last active April 29, 2024 23:45
PowerShell execute command (.exe) with arguments safely (e.g. with spaces).

PowerShell execute command with arguments safely

In my opinion this is the best way for executing external commands from PowerShell with arguments in a safe manner - via the use of an array to hold the arguments.

Consider this one a PowerShell gem to keep in the toolbox.

Note

The example below makes use of EchoArgs.exe - a small utility that simply echoes back arguments passed to it. Utility is part of the PowerShell Community Extensions, or the exe alone can be downloaded at https://ss64.com/ps/EchoArgs.exe.

Example