Nginx + ssl with Let’s Encrypt

https://letsencrypt.org

 

 

Advertisements

Bash: Check if a directory exist:

Check if a directory exist:

if [ -d "$DIRECTORY" ]; then
  # Control will enter here if $DIRECTORY exists.
fi

Or to check if a directory doesn’t exist:

if [ ! -d "$DIRECTORY" ]; then
  # Control will enter here if $DIRECTORY doesn't exist.
fi

Part 1. How setup public (for maven or gradle) Nexus Repository OSS?

I read the official doc (https://books.sonatype.com/nexus-book).

Q: I don’t want to pay, can I make repository free?

A: Yes.
1) You can add static jar in your website (copy from you local .m2 folder)
e.g: http://blockchain-monitoring.org/repository/org/blockchain_monitoring/fly-client/maven-metadata.xml

2) Nexus Repository OSS

Q: What is Nexus Repository OSS ?

A: “is a fully-featured repository manager which can be freely used, customized, and distributed under the Eclipse Public License (EPL Version 1).”

Q: How to download?

A:

find archive https://support.sonatype.com/hc/en-us/articles/218238798

$ wget https://download.sonatype.com/nexus/oss/nexus-2.14.3-02-bundle.zip

Continue reading “Part 1. How setup public (for maven or gradle) Nexus Repository OSS?”

Как скопировать файлы на сервер или с сервера на локальную машину?

мы хотим скопировать локальный файл test.txt на сервер server.org под пользователем admin

scp /opt/my-test-directory/test.txt admin@server.org:/directory/ 

Если захотите копировать папку, используйте -r

Пример:

scp -r /opt/my-test-directory/ admin@server.org:/directory/ 

Если мы захотели скопировать файлы с сервера на свою машину

scp admin@server.org:/path/to/test.txt /opt/my-test-directory

How to share docker images?

  1. After

    docker images

    you can see your docker image:Screen Shot 2017-05-06 at 09.13.32

2. You need to give specific name:

2.1 if your specific name is <none>

docker tag a999b9cc99dd myname/server:latest

2.2 make tag with TARGET_IMAGE[:TAG] like you want to share

docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]

3. Push and share docker image

3.1 login in our docker cli (command line interface)

docker login

3.2 push in cloud.docker.com

docker push {userOrOrganisation}/repository

git reset –hard

для того чтобы сбросить внесенные изменения. перейдите в корневую директорию

git reset –hard

Create a website or blog at WordPress.com

Up ↑