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
# needs the "containerization-nfs" namespace | |
# kubectl create -n containerization-nfs -f <URL> | |
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: nfs-provisioner-runner | |
rules: | |
- apiGroups: [""] |
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
mkdir -p ~/.lucette/data | |
mkdir -p ~/.lucette/nfs | |
docker network create --subnet 192.168.240.0/24 cf | |
docker pull viovanov/lucette | |
docker run \ | |
-it --rm --name lucette \ | |
--net cf --ip 192.168.240.3 \ | |
--env=DOMAIN=lucette.io \ | |
--env=DEFAULT_APP_DISK_IN_MB=1024 \ | |
--env=DEFAULT_APP_MEMORY=1024 \ |
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
1: all_classes.select {|c| Object.const_get("VCAP::CloudController").const_get(c.to_s) < Sequel::Model } | |
2: VCAP::CloudController::App | |
3: VCAP::CloudController::App.methods | |
4: VCAP::CloudController::App.associations | |
5: VCAP::CloudController::App.attr_internal | |
6: VCAP::CloudController::App.instance_variables | |
7: VCAP::CloudController::App.import_attributes | |
8: VCAP::CloudController::App.export_attrs | |
9: VCAP::CloudController::App.export_attributes | |
10: VCAP::CloudController::App.import_attrs |
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
powershell -command "$l = New-Object System.Net.HttpListener ; $l.Prefixes.Add('http://+:8080/'); $l.Start(); while ($l.IsListening) { $c = $l.GetContext() ; $q = $c.Request; Write-Output (date); $r = $c.Response ; $m = [System.Text.ASCIIEncoding]::ASCII.GetBytes(((gci -path env:*) | Out-String)); $r.ContentLength64 = $m.Length ; $r.OutputStream.Write($m, 0, $m.Length) ; $r.OutputStream.Dispose(); }" |
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
$l = New-Object System.Net.HttpListener ; $l.Prefixes.Add("http://+:8080/"); $l.Start(); while ($l.IsListening) { $c = $l.GetContext() ; $q = $c.Request; Write-Output (date); $r = $c.Response ; $m = [System.Text.ASCIIEncoding]::ASCII.GetBytes(((gci -path env:*) | Out-String)); $r.ContentLength64 = $m.Length ; $r.OutputStream.Write($m, 0, $m.Length) ; $r.OutputStream.Dispose(); } |