rsync -avH -P /home/localuser/testfile1 -e ssh [email protected]:/target/file/path
rsync -P --rsh=ssh [email protected]:/path/to/source /localpath/to/dest
kubectl create -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml |
#!/usr/bin/env bash | |
# Find invalid LVs that exist in physical (via lvscan) but not managed by gluster | |
vgs=$1 | |
host_address='10.165.210.xxx' | |
valid_lvs=$(gluster volume info | grep $vgs | grep ${host_address} | sed -e 's/.*brick_\(.[a-z0-9]*\)\/brick/\1/') | |
all_lvs=$(lvscan | grep $vgs | grep 'brick_' | awk -F'brick_' '{ print substr($2,0,32)}') |
export AWS_CA_BUNDLE=$path_private_ca_cert | |
aws --endpoint-url https://$minioserver s3 cp $filename s3://$bucketname |
openssl req -new -key cngo.key -out cngo-csr.pem -subj "/CN=cngo/O=app1/O=infra-team" | |
openssl x509 -req -in cngo-csr.pem -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out cngo.crt -days 730 |
kubectl get pod --all-namespaces | grep Evicted | grep 10d | awk '{print $1" " $2}' | xargs -n2 sh -c 'kubectl delete pod $2 -n $1' sh |
git fetch --prune origin "+refs/tags/*:refs/tags/*" |
rsync -avH -P /home/localuser/testfile1 -e ssh [email protected]:/target/file/path
rsync -P --rsh=ssh [email protected]:/path/to/source /localpath/to/dest
git config --global alias.lol 'log --graph --decorate --pretty=oneline --abbrev-commit --all' |
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
NO_COLOR="\[\033[0m\]" | |
PS1="$GREEN\u@\h$NO_COLOR:\w$YELLOW\$(parse_git_branch)$NO_COLOR\$ " |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE Repository | |
PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.6//EN" | |
"http://jackrabbit.apache.org/dtd/repository-2.6.dtd"> | |
<Repository> | |
<DataSources> | |
<DataSource name="repositoryDS"> |