Skip to content

Instantly share code, notes, and snippets.

View bigspawn's full-sized avatar
🎧
code and phc

Igor Grishin bigspawn

🎧
code and phc
View GitHub Profile
@bigspawn
bigspawn / update_git_repos.sh
Created December 11, 2020 12:33 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
#!/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
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
@bigspawn
bigspawn / gist:901fc356594e960f14616618c6cd5e16
Last active October 9, 2019 08:10
Задача поиска отрезка (подмассива) массива чисел с заданной суммой
// Задача поиска отрезка (подмассива) массива чисел с заданной суммой
        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);
@bigspawn
bigspawn / How-move-docker-directory.md
Last active September 14, 2018 08:37
Instruction on how move docker /var/lib/docker directory to another path

Steps work for me:

  1. Stop all containers docker stop $(docker ps -a -q)

  2. Stop docker sudo service docker stop

  3. Copy docker directory cp -r /var/lib/docker/* /home/docker/

  4. Unmount all old docker overlays umount -f /var/lib/docker/overlay/*/* and umount -f /var/lib/docker/containers/*/mounts/shm

@bigspawn
bigspawn / download-from-facecast.md
Last active April 28, 2024 12:18
How download video from facecast.net