I hereby claim:
- I am huskercane on github.
- I am huskercane (https://keybase.io/huskercane) on keybase.
- I have a public key whose fingerprint is 2034 CBCA C81A 1FED C9B9 04E9 A05D 30F2 FD14 98E3
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| package physical | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "sync" | |
| "time" |
| require 'rest-client' | |
| # create a vsys pattern | |
| def create_vsys_pattern | |
| # POST /resources/virtualSystemPatterns/ | |
| # Content-Type - application/zip | |
| # deployer.virtualapplicationpatterns.create('/root/vsys_pattern.zip') | |
| return nil if find_devops_app.size > 0 |
| ### Keybase proof | |
| I hereby claim: | |
| * I am huskercane on github. | |
| * I am huskercane (https://keybase.io/huskercane) on keybase. | |
| * I have a public key whose fingerprint is 826D 5461 53C4 7B7A 0E89 71AA EC4C A9A0 AE40 7AC6 | |
| To claim this, I am signing this object: |
| __author__ = 'rohits' | |
| import socket | |
| import thread | |
| class PortTester(object): | |
| thread_count = 0 | |
| def __init__(self, input, log): |
| #!/bin/sh | |
| esxcli storage core path list | grep "Device:" | grep "naa" | awk '{print $2}' | sort > /tmp/2.txt | |
| esxcli storage vmfs extent list | grep naa | awk '{print $4}' | sort > /tmp/1.txt | |
| new_disk=`grep -v -f /tmp/1.txt /tmp/2.txt` | |
| echo "Adding iSCSI datastore ${new_disk}" | |
| if [[ ! -z $new_disk ]]; then | |
| echo "format and configure datastore" | |
| list=`ls /vmfs/devices/disks/naa* | grep -v ':'` |
| dpkg -l 'linux-*' | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0123456789]' | grep -E "(image|headers)" | xargs sudo apt-get -y purge |
| { | |
| "cmd": ["groovy","$file"], | |
| "selector": "source.groovy", | |
| "file_regex": "[ ]*at .+[(](.+):([0-9]+)[)]", | |
| } |
| import java.net.URI; | |
| import javax.ws.rs.core.UriBuilder; | |
| import org.apache.http.conn.ssl.SSLConnectionSocketFactory; | |
| import org.apache.http.conn.ssl.SSLContextBuilder; | |
| import org.apache.http.conn.ssl.TrustSelfSignedStrategy; | |
| import org.apache.http.impl.client.CloseableHttpClient; | |
| import org.apache.http.impl.client.HttpClients; | |
| import org.apache.wink.client.ClientResponse; |
| # configure WinRM | |
| Set-WSManQuickConfig -Force | |
| Set-Item WSMAN:\LocalHost\MaxTimeoutms -Value "1800000" | |
| Set-Item WSMAN:\LocalHost\Service\AllowUnencrypted -Value $true | |
| Set-Item WSMAN:\LocalHost\Service\Auth\Basic -Value $true | |
| Set-Item WSMAN:\LocalHost\Client\Auth\Basic -Value $true | |
| Set-Item WSMan:\Localhost\Client\TrustedHosts -Value "*" -Force | |
| Set-Service WinRM -startuptype "automatic" |