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
olekhy / docker-compose.alias.sh
Created Aug 24, 2019
how to run docker compose on system where its not possible to install one fe google cloud
View docker-compose.alias.sh
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
View polly-from-file.sh
aws polly synthesize-speech \
--output-format mp3 \
--voice-id Zhiyu \
--language-code cmn-CN \
--text file://p50.txt \
p50.mp3
@olekhy
olekhy / docker-cleanup-resources.md
Last active Mar 22, 2019 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks
View docker-cleanup-resources.md

Docker - How to cleanup (unused) resources

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

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

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

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 https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
@olekhy
olekhy / selenium_curl.sh
Created May 8, 2018 — forked from prashanthrajagopal/selenium_curl.sh
Run Selenium test via curl
View selenium_curl.sh
s_id=`curl -X POST http://127.0.0.1:4444/wd/hub/session -d '{"desiredCapabilities":{"browserName":"firefox","platform":"MAC"}}'|awk -F'"' '{print $6}'`
curl -X POST http://127.0.0.1:4444/wd/hub/session/$s_id/url -d '{"url":"http://www.google.com"}'
curl -X POST http://127.0.0.1:4444/wd/hub/session/$s_id/element -d '{"using":"id","value":"gbqfq"}'
curl -X POST http://127.0.0.1:4444/wd/hub/session/$s_id/element/0/value -d {"value":["selenium"]}
curl -X POST http://127.0.0.1:4444/wd/hub/session/$s_id/element -d '{"using":"id","value":"gbqfb"}'
curl -X POST http://127.0.0.1:4444/wd/hub/session/$s_id/element/1/click
curl -X DELETE http://127.0.0.1:4444/wd/hub/session/$s_id/window
@olekhy
olekhy / gitflow-breakdown.md
Last active Jun 21, 2017 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.
View gitflow-breakdown.md

Initialize

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
https://trac.ffmpeg.org/wiki/Capture/Desktop
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
losless
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
View gist:a6fd4d07594e11212bc33ccedff4977b
cat /home/a1/pro/dimabay/spa/npm-debug.log
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
You can’t perform that action at this time.