Disables the new behavior when downloading a file. source
Versions: Firefox >=98.
Earlier (false
): a window opens with a choice of "Open in" and "Save".
Now (true
): a window with saving opens immediately.
Disable trim protocol in address bar.
Disables the new behavior when downloading a file. source
Versions: Firefox >=98.
Earlier (false
): a window opens with a choice of "Open in" and "Save".
Now (true
): a window with saving opens immediately.
Disable trim protocol in address bar.
-S
: Installing wikiInstall package
# pacman -S package
Sync (analog apt update
). Double y
- force sync.
TARGET_BRANCH="master" | |
TEMPORARY_BRANCH="temp" | |
git branch "$TEMPORARY_BRANCH" | |
git checkout "$TEMPORARY_BRANCH" | |
git branch -f "$TARGET_BRANCH" "$TEMPORARY_BRANCH" | |
git checkout "$TARGET_BRANCH" | |
git branch -d "$TEMPORARY_BRANCH" |
ffmpeg -i input.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4
#!/bin/bash | |
TOKEN="..." | |
echo "Enter URL to video (in format OID_VID)" | |
read vkUrl | |
#vkUrl="203384908_456239021" | |
hls=$(wget -qO - "https://api.vk.com/method/video.get?videos=$vkUrl&access_token=$TOKEN&v=5.56" | grep -iowE "hls\"\:\"http[^\"]*\"" | grep -iowE "http.[^\"]*" | sed 's!\\/!/!g') |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.PrintWriter; | |
import java.util.Scanner; | |
public class Gauss { | |
public static void swapRows(double[][] a, double[] b, int i, int j) { | |
double[] row = a[i]; |
<? | |
function reArrayFiles(&$files) { | |
$result = []; | |
$keys = array_keys($files); | |
for ($i = 0, $l = sizeof($files["name"]); $i < $l; $i++) { | |
foreach ($keys as $key) { | |
$result[$i][$key] = $files[$key][$i]; | |
}; |
Number.prototype.toData = function() { | |
if (this <= 0) { | |
return "0 bytes"; | |
}; | |
var n; | |
for (var i = 5; i >= 0; --i) { | |
n = Math.round(this / Math.pow(1024, i) * 10) / 10; | |
if (n >= 1) { | |
return n + " " + ["b", "KB", "MB", "GB", "TB"][i]); |