Skip to content

Instantly share code, notes, and snippets.

Avatar

Vitaliy Tsibikov vitalik74

  • Russia, Ekaterinburg
View GitHub Profile
View ng or webpack not detecting file change
I faced with the same problem on Ubuntu 16.04 and angular CLI 1.0.0-beta.30
The problem was related with Inotify Watches Limit on Linux.
To solve to issue I increased the watches limit to 512K
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p --system
After that I restarted my IDE (WebStorm in my case) and after that the change detection started to work.
Link - https://github.com/angular/angular-cli/issues/2356#issuecomment-278298550
@vitalik74
vitalik74 / mov2webp.sh
Created May 29, 2018 — forked from dreampiggy/mov2webp.sh
ffmpeg MOV to Animated WebP
View mov2webp.sh
ffmpeg -i input.mov -vcodec libwebp -lossless 1 -q:60 -preset default -loop 0 -an -vsync 0 output.webp
@vitalik74
vitalik74 / encoding-video.md
Created May 29, 2018 — forked from Vestride/encoding-video.md
Encoding video for the web
View encoding-video.md

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
View Java Collections Complexity cheatsheet
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
@vitalik74
vitalik74 / docker-clear.bat
Last active Jun 27, 2018 — forked from daredude/docker-clear.bat
delete all docker container and images on windows
View docker-clear.bat
@echo off
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")