View deploymentConfig.yml
apiVersion: v1
kind: DeploymentConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: '2018-02-14T01:32:41Z'
generation: 5
labels:
app: conjur-master
name: conjur-master
View interfaces
auto lo
iface lo inet loopback
auto ens160
iface ens160 inet static
address IP_ADDR
netmask NETMASK
gateway DEFAULT_GATEWAY
dns-nameservers DNS
View Linux Static IP
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
View InstallJava8_Ubuntu.sh
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java8-installer
## JAVA INSTALLED
## LIST JAVA INSTALL DIRS
update-alternatives --config java
export PATH=$PATH:<install dir from above command>
View VMWareOVFTOOL.cmd
# OVFTOOL <Source ESXi Host>/<VM Name> <Dest ESXi Host>
## COPY VMs between ESXi Hosts using OVFTool CLI
"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe" vi://root@192.168.0.69/ubuntu-template vi://root@192.168.2.1
# VMKFSTOOLS -i <Source VMDK> <Dest VMDK> -d thin
## CLONE VMs on same ESXi Host
ssh root@<ESXi Host IP>
vmkfstools -i /vmfs/volumes/datastore1/ubuntu-template/ubuntu-template.vmdk /vmfs/volumes/datastore1/TEST-UBUNTU/test-ubuntu.vmdk -d thin
View AIMCCP_GetPassword.ps1
$response = Invoke-RestMethod -Method "GET" -Uri "https://components.cyberark.local/AIMWebService/api/Accounts?AppID=RESTExamples&Safe=T-APP-CYBR-RESTAPI&Folder=Root&Object=Database-MicrosoftSQLServer-sql01.cyberark.local-Svc_BambooHR" -Headers @{ "Content-Type" = "application/json" } -SkipCertificateCheck
Write-Host "Password is: ${response.Content}"
Write-Host "----"
Write-Host $response
View GlobalCopyScript_Example.ps
# Install PoShSkyTap Module on PowerShell v5+
Install-Module PoShSkyTap
# Import PoShSkyTap Module
Import-Module PoShSkyTap
# List available commands
Get-Command -Module PoShSkyTap
CommandType Name Version Source
View VirtualBox-PortForward.md
vboxmanage controlvm "pcfdev-v0.547.0" natpf1 "http,tcp,<your_host_ip>,8080,,80"

^^^ command line to configure the port forwarding rule to allow you to hit the test app webpage from a remote host.

pcfdev-v0.547.0 is the name of the VM PCF Dev creates. That will change with PCF Dev versions, so use vboxmanage list runningvms to find the name or GUID of the VM you want to modify.

View PowerShell Customization.md

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

View install-powerline.sh
#!/bin/bash
set -eo pipefail
echo '\n---\n'
echo 'Cloning down Powerline Fonts...'
echo '\n---\n'
git clone https://github.com/powerline/fonts.git --depth=1
echo '\n---\n'