Skip to content

Instantly share code, notes, and snippets.

happy developer

Alexander Hutorezki olekhy

happy developer
  • Berlin, Germany
Block or report user

Report or block olekhy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
olekhy /
Created Dec 30, 2019
working with files on google backup tackeout

install tool to find duplicate files sudo apt install fdupes

find duplicates fdupes firstDir --recurse secondDir > duplicates

delete empty directories find ./ -empty -type d -delete

display nuber of files groped by the extension

olekhy /
Created Aug 24, 2019
how to run docker compose on system where its not possible to install one fe google cloud
echo alias docker-compose="'"'docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$PWD:$PWD" \
-w="$PWD" \
docker/compose:1.24.0'"'" >> ~/.bashrc
aws polly synthesize-speech \
--output-format mp3 \
--voice-id Zhiyu \
--language-code cmn-CN \
--text file://p50.txt \
olekhy /
Last active Mar 22, 2019 — forked from bastman/
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see:

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
olekhy /
Created Aug 1, 2018 — forked from raminfp/
Install Docker CE on Ubuntu 17.10 and Docker-compose

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
olekhy /
Created May 8, 2018 — forked from prashanthrajagopal/
Run Selenium test via curl
s_id=`curl -X POST -d '{"desiredCapabilities":{"browserName":"firefox","platform":"MAC"}}'|awk -F'"' '{print $6}'`
curl -X POST$s_id/url -d '{"url":""}'
curl -X POST$s_id/element -d '{"using":"id","value":"gbqfq"}'
curl -X POST$s_id/element/0/value -d {"value":["selenium"]}
curl -X POST$s_id/element -d '{"using":"id","value":"gbqfb"}'
curl -X POST$s_id/element/1/click
curl -X DELETE$s_id/window
olekhy /
Last active Jun 21, 2017 — forked from JamesMGreene/
A comparison of using `git flow` commands versus raw `git` commands.


gitflow git
git flow init git init
- git commit --allow-empty -m "Initial commit"
- git checkout -b develop master

Connect to the remote repository

View gist:de73fc3244c4a165f10b8cbe1ad8fb42
sudo apt-get install caffeine variety zsh vlc ffmpeg p7zip-rar p7zip-full unace unrar zip unzip sharutils rar uudeview mpack arj cabextract file-roller flashplugin-installer ubuntu-restricted-extras git mc apache2 php mysql-server mysql-client vim skype chromium-browser brasero ssh gimp
sudo apt install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw smartmontools ethtool tp-smapi-dkms acpi-call-tools
sudo add-apt-repository ppa:atareao/atareao
sudo apt update
View capture display on linux.txt
ffmpeg -framerate 25 -video_size 1024x768 -f x11grab -i :0.0+100,200 -f alsa -ac 2 -i pulse -vcodec libx264 -crf 0 -preset ultrafast -acodec pcm_s16le output.mkv
ffmpeg -video_size 1920x1080 -framerate 30 -f x11grab -i :0.0 -c:v libx264 -qp 0 -preset ultrafast capture.mkv
View gist:91d3c757834413e560204a734024d55d
0 info it worked if it ends with ok
1 verbose cli [ '/home/a1/.nvm/versions/node/v4.4.0/bin/node',
1 verbose cli '/home/a1/.nvm/versions/node/v4.4.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'test' ]
2 info using npm@2.14.20
3 info using node@v4.4.0
4 verbose run-script [ 'pretest', 'test', 'posttest' ]
5 info pretest dimabay-spa@1.9.9
6 info test dimabay-spa@1.9.9
You can’t perform that action at this time.