// Задача поиска отрезка (подмассива) массива чисел с заданной суммой
int findingSum = 11;
List<Integer> data = List.of(10, -5, 2, 3, -4, 5, 6, 8, -2);
Map<Integer, Integer> map = new HashMap<>();
int sum = 0;
for (int i = 0; i < data.size(); i++) {
sum += data.get(i);
map.put(sum, i);
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
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | |
# Find all git repositories and update it to the master latest revision | |
for i in $(find . -name ".git" | cut -c 3-); do |
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
boomerang-1.0.0.min.js:11 [Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: Paint Timing. https://www.chromestatus.com/features/5637885046816768. | |
l @ boomerang-1.0.0.min.js:11 | |
p @ boomerang-1.0.0.min.js:11 | |
runAllAnalyzers @ boomerang-1.0.0.min.js:12 | |
onBeforeBeacon @ boomerang-1.0.0.min.js:12 | |
fireEvent @ boomerang-1.0.0.min.js:11 | |
real_sendBeacon @ boomerang-1.0.0.min.js:11 | |
f @ boomerang-1.0.0.min.js:11 | |
requestIdleCallback (async) | |
setImmediate @ boomerang-1.0.0.min.js:11 |
Steps work for me:
-
Stop all containers
docker stop $(docker ps -a -q)
-
Stop docker
sudo service docker stop
-
Copy docker directory
cp -r /var/lib/docker/* /home/docker/
-
Unmount all old docker overlays
umount -f /var/lib/docker/overlay/*/*
andumount -f /var/lib/docker/containers/*/mounts/shm
- Go to the video url you want to download
- Open devtools into browser (
ctrl+shift+i
in firefox) - Show the network tab
- Reload tab with video and look into devtools
- Find line with text 1080p.m3u8 and copy url (like: https://edge-7.facecast.net/secure/VgTub-XSFSFFSFSF/DFSDGDSGDSGGD-pyJiOPQ/34634636/4367546/235235/1080p.m3u8)
- Download and install Streamlink
- Open console and execute:
streamlink hls://URL_FROM_STEP_5 best -o video1080p.ts