Explanation:
- Workspace: local workspace
- Index:local staging area
- Repository:Local Warehouse
- Remote:a remote repository
yum groupinstall Desktop -y
yum install finger cmake patch gcc make autoconf libtool automake pkgconfig openssl-devel gettext file pam-devel libX11-devel libXfixes-devel libjpeg-devel
yum install flex bison gcc-c++ libxslt perl-libxml-perl xorg-x11-font-utils tigervnc-server git -y
reboot
git clone git://github.com/FreeRDP/xrdp.git
Pre-requisite: go to http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html download http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe and http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe
| ### print to stdout all the versions of packages that are installed, as well as their dependencies, in a tree-structure. | |
| $npm ls promzard | |
| $npm -g list | |
| test.js: | |
| function npmls(cb) { | |
| require('child_process').exec('npm ls --json', function(err, stdout, stderr) { | |
| if (err) return cb(err) |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer! | |
| export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ " | |
| # This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty! | |
| # ~/code/web:beta_directory$ git checkout master | |
| # Switched to branch "master" | |
| # ~/code/web:master$ git checkout beta_directory | |
| # Switched to branch "beta_directory" |
| #!/bin/bash | |
| REPO_URL="https://repository.xxx.net/repository/" | |
| USER="admin" | |
| PASSWORD="datpassword" | |
| BUCKET="portal-docker" | |
| KEEP_IMAGES=10 | |
| IMAGES=$(curl --silent -X GET -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' -u ${USER}:${PASSWORD} "${REPO_URL}${BUCKET}/v2/_catalog" | jq .repositories | jq -r '.[]' ) |
| #!/usr/bin/env python3 | |
| from requests import get | |
| import sys | |
| from json import dumps | |
| from os import listdir,remove,rmdir | |
| from shutil import rmtree | |
| REGISTRY_URL = "http://127.0.0.1:5000/v2/" | |
| REGISTRY_DATA_PATH = "/data/registry/" |
| import groovyx.net.http.*; | |
| import static groovyx.net.http.ContentType.*; | |
| import static groovyx.net.http.Method.*; | |
| class NexusArtifactCleanup { | |
| /** | |
| * Settings in which to run script. | |
| */ |
| 1. How to see if a Docker container is running or not ? | |
| docker inspect -f {{.State.Running}} <container-id> | |
| 2. What is a Docker Typical Workflow ( build image --> Run container ) etc | |
| 3. How do i transfer docker container from one host to another | |
| 4. How do i use docker-compose ? | |
| 5. Can i run multiple containers which are located on local disk via docker-compose ? |