Сообщения за 2020

[DevOps] Installation docker and portainer

Hello, Portainer it's a web GUI for managing of docker images. Is possible work as a local docker so and as remote.  Installation script: #!/bin/sh sudo su yum install -y docker systemctl start docker systemctl enable docker groupadd docker usermod -aG docker $USER docker run hello -world docker volume create portainer_data docker run -d -p 8000 : 8000 -p 9000 : 9000 --name = portainer --restart = always -v / var / run / docker . sock: / var / run / docker . sock -v portainer_data: / data portainer / portainer

How run Chrome without CORS security

 Hello, it's a script for running chrome without CORS, on MacOSX (write it in one line). #!/usr/bin/env bash open -n -a / Applications / Google\ Chrome . app / Contents / MacOS / Google\ Chrome --args --user-data-dir = "/tmp/chrome_dev_test" --disable-web-security For Linux, and Windows, this is script is some, just add some params.

[DevOps] AndroidSDK for Linux

Hello, it's my script for the installation Android SDK to CentOS.  # Script for install Android SDK to CentOS # based on: https://gist.github.com/jpswade/33841e261b28073d9e7551922acea1f2 # and : https://github.com/mahiso/AndroidSDKCentOS7 #!/bin/sh yum install java -y yum install android -tools -y cd / opt mkdir / sdks cd / sdks mkdir -p android -sdk-linux cd android -sdk-linux # @see https://developer.android.com/studio/index.html wget --output-document = android -sdk . zip --quiet https: // dl . google . com / android / repository / sdk -tools-linux-3859397 . zip unzip android -sdk . zip rm -f android -sdk . zip yes | tools / bin / sdkmanager --licenses tools / bin / sdkmanager "tools" "platform-tools" "extras;google;m2repository" echo 'export ANDROID_HOME=/opt/sdks/android-sdk-linux' >> ~/. bashrc echo 'export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools' >> ~/. bashrc #let's chec

[DevOps] NodeJS installation script for hot update

     Hello, this is script is needed for the hot switch versions of nodeJS on machine. You can have two installed different versions of nodeJS. For example, it's can be v12 and v14. So is possible to switch on a different version using only one command. Currently, I work only on Linux based (and macOS as a client system) systems and code will be targeted on these systems #!/bin/sh # Install nodeJS 14.2.0 sudo su yum install -y git curl https: // raw . githubusercontent . com / creationix / nvm / v0 . 35.3 / install . sh | bash source ~/. bashrc nvm install v14 . 13.0 # Actual for some oses export NVM_DIR = "$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm For getting list of all installed nodes, you can use #!/bin/sh nvm ls #list all nodes nvm use < version > # switch to specific version More information you can get on official repo: https://github.com/nvm-sh/nvm Or on another site (first link in