Skip to content

Instantly share code, notes, and snippets.

View judavi's full-sized avatar

Juan judavi

  • Palet Town
View GitHub Profile
@judavi
judavi / TFS courses
Last active September 21, 2017 14:35
Online
Intertech
Price: $2795
Duration: 4.00 days (32 hours)
Link:
https://www.intertech.com/Training/Microsoft/Visual-Studio/TFS/TFS-2017-Configuration-and-Administration
Accelebrate
@judavi
judavi / Dockerfile
Created February 7, 2018 11:38
Ms Build tools 2017 Docker Image
FROM microsoft/windowsservercore:10.0.14393.1358
ENV WINDOWS_IMAGE_VERSION=10.0.14393
#############
# vs_buildtools.exe --layout D:\vsoffline --add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.WebBuildTools --add Microsoft.VisualStudio.Workload.NetCoreBuildTools --includeOptional --lang en-US
#############
COPY ./vsoffline/ C:/TEMP/
ENV chocolateyUseWindowsCompression=false
@judavi
judavi / gist:ff3df385ba256cff71600c093fa52b67
Created February 7, 2018 16:39
Chocolatey no errors log
2018-02-07 11:25:34,338 3552 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2018-02-07 11:32:28,159 9148 [INFO ] - Chocolatey v0.10.8
2018-02-07 11:32:28,193 9148 [DEBUG] - Chocolatey is running on Windows v 10.0.14393.0
2018-02-07 11:32:28,198 9148 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2018-02-07 11:32:28,201 9148 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2018-02-07 11:32:28,232 9148 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install jdk8 --proxy=xxxxxxxx --confirm --log-file C:\pepe.txt -vd
2018-02-07 11:32:28,234 9148 [DEBUG] - Received arguments: install jdk8 --proxy=xxxxxxxxxx--confirm --log-file C:\pepe.txt -vd
2018-02-07 11:32:28,306 9148 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2018-02-07 11:32:28,404 9148 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribe
@judavi
judavi / gist:d8d134a835879424f00103e0f9f70a87
Created March 22, 2018 14:01
Docker RHEL 7 for non sudoers
https://adam.younglogic.com/2017/08/docker-without-sudo-on-centos-7/
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/2/html/Getting_Started_Guide/ch02s03.html
https://askubuntu.com/questions/79565/how-to-add-existing-user-to-an-existing-group
https://www.cyberciti.biz/faq/linux-list-all-members-of-a-group/
@judavi
judavi / CreateNewBuildConfigs.txt
Last active April 13, 2018 09:46
Start Openshift in a Container
oc new-build https://github.com/judavi/docker-pipeseroni
oc new-build https://github.com/judavi/OpenshiftPlayground/
./oc start-build openshiftplayground --build-arg foo=leemon
oc edit buildconfigs/docker-pipeseroni
@judavi
judavi / Readme.md
Last active May 11, 2018 08:24
Admission Controllers On Openshift
@judavi
judavi / Readme.md
Created May 20, 2018 08:52
Docker Certified Associate Prep Course

Docker Swarm

Swarm manager (N+2 for qurom) Docker daemon and discovery service . Just one no fault tolerance Swarm workers (1 to N)

Installation yum install -y yum-utils device-mapper-persisten-data lvm2 yum-config manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

- How create webhooks https://github.com/kubernetes/website/pull/6836/files
- https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#enable-external-admission-webhooks
- https://ahmet.im/blog/initializers/
- https://github.com/kubernetes/kubernetes/tree/release-1.9/test/images/webhook
apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
name: test
webhooks:
@judavi
judavi / certificate.pem
Created June 2, 2018 06:49
Google certificate
-----BEGIN CERTIFICATE-----
MIIcRjCCGy6gAwIBAgIIRyqDmscket0wDQYJKoZIhvcNAQELBQAwVDELMAkGA1UE
BhMCVVMxHjAcBgNVBAoTFUdvb2dsZSBUcnVzdCBTZXJ2aWNlczElMCMGA1UEAxMc
R29vZ2xlIEludGVybmV0IEF1dGhvcml0eSBHMzAeFw0xODA1MTUyMDQxMDFaFw0x
ODA4MDcxOTUzMDBaMGkxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlh
MRYwFAYDVQQHDA1Nb3VudGFpbiBWaWV3MRMwEQYDVQQKDApHb29nbGUgTExDMRgw
FgYDVQQDDA9taXNjLmdvb2dsZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
ggEKAoIBAQChpQDV2nzv672cubqyG09qUbmNgrShxZaC2wloL8k9eAAgN2Ky19z4
H/ZpQF+ucD8BJVnpa9tvne67UWjOFTVXEUogfLa0auNrI7TESipAYXiPsPAgHlA+
aYFrkdLrxt+HvmyolFsTlE1mHK1WCAweSZKi88EZ5j+dWYMvFTI5/UF0nv0GbNoC