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
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. | |
*/ |
export CLUSTER_DNS=[...] | |
export CLUSTER_IP=[...] | |
ssh -i workshop.pem docker@$CLUSTER_IP | |
docker container run -d --name jenkins -p 8080:8080 jenkins:alpine | |
docker container ls # Wait until it is up and running |
How to Install VNC on an AWS EC2 Centos 7.2 AMI | |
Reference: http://devopscube.com/how-to-setup-gui-for-amazon-ec2-rhel-7-instance/ | |
1. Update the server using the following command. | |
sudo yum -y update | |
2. Install the gnome GUI components using the following command. | |
sudo yum groupinstall -y "Server with GUI" |