This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oc export bc,dc,svc,route,is,serviceaccount -l template=jenkins-persistent-template --as-template=jenkins -o yaml > jenkins.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
kind: Template | |
apiVersion: v1 | |
metadata: | |
labels: | |
app: mongodb | |
name: mongodb | |
annotations: | |
openshift.io/display-name: Deploy Mongodb | |
description: Deploy Mongodb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snapshot / to /data1 | |
rsync -avz \ | |
--exclude '/dev' --exclude '/proc' --exclude '/sys' \ | |
--exclude '/data2' --exclude '/data1' \ | |
--exclude '/boot' --exclude '/run' \ | |
/ /data1 | |
tar zcvf backup_vanilla_220318.tar.gz srv/ mnt/ media/ lost+found/ usr/ sbin/ lib64/ lib bin/ opt/ home/ var/ etc/ root/ tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Links | |
https://medium.com/@calerogers/gpu-virtualization-with-kvm-qemu-63ca98a6a172 | |
http://vfio.blogspot.co.uk/2015/05/vfio-gpu-how-to-series-part-1-hardware.html | |
#####HOST####### | |
Ubuntu 18.04 with functioning NVIDIA 1050 Ti. | |
Docker-nvidia and GPU based tensorflow all work well. | |
justin@justin-ubuntu:~$ lspci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#PCI-passthrough doesn't work though .... | |
virt-install \ | |
-n RHEL7.5_2 \ | |
--description "virt-install test" \ | |
--os-type=Linux \ | |
--os-variant=rhel7 \ | |
--ram=2048 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
subscription-manager register | |
subscription-manager attach --pool=8a85f98460bfb0470160c2ff250f3e66 | |
subscription-manager repos --disable=rhel-7-server-htb-rpms | |
yum update -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script requires jq, a command line to to parse and format JSon. | |
# https://stedolan.github.io/jq/ | |
function padBase64 { | |
STR=$1 | |
MOD=$((${#STR}%4)) | |
if [ $MOD -eq 1 ]; then | |
STR="${STR}=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script requires jq, a command line to to parse and format JSon. | |
# https://stedolan.github.io/jq/ | |
function padBase64 { | |
STR=$1 | |
MOD=$((${#STR}%4)) | |
if [ $MOD -eq 1 ]; then | |
STR="${STR}=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Log log = LogFactory.getLog(MyTokenController.class); | |
CloseableHttpClient httpClient | |
= HttpClients.custom() | |
.setSSLHostnameVerifier(new NoopHostnameVerifier()) | |
.build(); | |
HttpComponentsClientHttpRequestFactory requestFactory | |
= new HttpComponentsClientHttpRequestFactory(); | |
requestFactory.setHttpClient(httpClient); |
OlderNewer