Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Building clouds

Mark Brookfield virtualhobbit

:octocat:
Building clouds
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am virtualhobbit on github.
  • I am virtualhobbit (https://keybase.io/virtualhobbit) on keybase.
  • I have a public key whose fingerprint is F565 3FDC C9D6 804B 73C1 B508 CB75 F690 4BB5 F35F

To claim this, I am signing this object:

View gist:3cf1df1f2b2bd2da81b01047e29ba79a
stages:
- build
- deploy
image: alpine
before_script:
- git config --global http.sslVerify false
get_packer:
View tiller-service-account.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: tiller
View gitlab-runner-namespace.json
{
"apiVersion": "v1",
"kind": "Namespace",
"metadata": {
"name": "gitlab-runner",
"labels": {
"name": "gitlab-runner"
}
}
}
View values.yaml
## GitLab Runner Image
imagePullPolicy: IfNotPresent
gitlabUrl: https://<insert GitLab server name here>
runnerRegistrationToken: <insert registration token here>
unregisterRunners: true
terminationGracePeriodSeconds: 3600
certsSecretName: gitlab-domain-cert
concurrent: 10
checkInterval: 30
View gist:df7c820655b6931c177a9b5e97586d0a
# Format the username
if ($userName -ne $null) {
$user = $userName + "@" + $userDomain
} else {
$user = $userName
};
# Add the user to the Gugent group
$group = "Gugent"
Add-LocalGroupMember -Group $group -Member $user
View gist:dec8fc520ef416db4b1b5d456ad563be
export cf_server="myServer"
export cf_username="myUser"
export cf_password="myPassword"
export cf_category="c1001"
for i in $(ls *.js);
do
j=$(echo $i | cut -f 1 -d '.');
jsdoc $i -d $j;
zip -r $j.zip $j/;
View gist:42718efbb015cd34f6130fbfaccd7ab2
<edge>
<name>{attXmlConfigName}</name>
<appliances>
<applianceSize>compact</applianceSize>
<appliance>
<resourcePoolId>{attXmlConfigResourcePoolId}</resourcePoolId>
<datastoreId>{attXmlConfigDatastoreId}</datastoreId>
</appliance>
</appliances>
<vnics>
View gist:46f06e6c5e72122228c12fbf7af90710
var xmlDetail = new Properties();
xmlDetail.put("{attXmlConfigName}",attXmlConfigName);
xmlDetail.put("{attXmlConfigResourcePoolId}",attXmlConfigResourcePoolId);
xmlDetail.put("{attXmlConfigDatastoreId}",attXmlConfigDatastoreId);
xmlDetail.put("{attXmlConfigNicName}",attXmlConfigNicName);
xmlDetail.put("{attXmlConfigPortgroupId}",attXmlConfigPortgroupId);
xmlDetail.put("{attXmlConfigPrimaryAddress}",attXmlConfigPrimaryAddress);
xmlDetail.put("{attXmlConfigSubnetMask}",attXmlConfigSubnetMask);
xmlDetail.put("{attXmlConfigUserName}",attXmlConfigUserName);
xmlDetail.put("{attXmlConfigPassword}",attXmlConfigPassword);
View newNum.js
var inc = "1";
var newNum = parseInt(inNum, 10) + parseInt(inc, 10);
if ((newNum.toString()).length < 2){
newNum = "0" + newNum;
}
return newNum;
You can’t perform that action at this time.