- (версия с картинками) https://drive.google.com/open?id=0B5jmlxxuu55tT0xTYXg0ZEhfNFk
- (версия с текстом) https://docs.google.com/presentation/d/1kd6zkEUPNxtDFwxybK53bpdw_QMq2GD1mJA1dkn42UQ/edit?usp=sharing
This file contains hidden or 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
| #!/bin/bash | |
| DOCKER_COMPOSE_FILES='docker-compose1.yml,docker-compose2.yml' | |
| DOCKER_COMPOSE_UP_MODE=1 #1|0 | |
| DOCKER_COMPOSE_UP_LOG_FILE='/tmp/log.txt' | |
| DOCKER_COMPOSE_BUILD_OPTIONS="" #any options for `docker-compose build` | |
| DOCKER_COMPOSE_UP_OPTIONS="" #any options for `docker-compose up` | |
| DOCKER_COMPOSE_RUN_OPTIONS="" #any options for `docker-compose run` | |
| TEST_CONTAINERS="application1=/test.sh,application2=/test2.sh" | |
| ##### get port remover ##### |
This file contains hidden or 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
| #!/bin/bash | |
| while read oldrev newrev refname | |
| do | |
| short_sha=${newrev:0:8} | |
| ulid=$(/usr/local/bin/ulid) | |
| build_id="acid-worker-${ulid}-${short_sha}" | |
| e_build_id=$(echo "$build_id" | base64 -w 0) | |
| e_project_id=$(echo "$ACID_PROJECT_ID" | base64 -w 0) | |
| e_acidjs=$(git show ${newrev}:acid.js | base64 -w 0) |
This file contains hidden or 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
| function Get-KerberosTicketGrantingTicket | |
| { | |
| <# | |
| .SYNOPSIS | |
| Gets the Kerberos Tickets Granting Tickets from all Logon Sessions | |
| .DESCRIPTION | |
| Get-KerberosTicketGrantingTicket uses the Local Security Authority (LSA) functions to enumerate Kerberos logon sessions and return their associate Kerberos Ticket Granting Tickets. |
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
This file contains hidden or 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
| #!/bin/bash | |
| VHOST=project | |
| EXCHANGE=project-exchange | |
| ADMIN_USER=admin | |
| ADMIN_PASS=secret | |
| MGMT_USER=mgmt | |
| MGMT_PASS=secret | |
| QUEUE1=queue1 | |
| QUEUE2=queue2 |
This file contains hidden or 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
| function Add-Parameter { | |
| [CmdletBinding()] | |
| param( | |
| [Parameter(Position = 0)] | |
| [Management.Automation.RuntimeDefinedParameterDictionary] | |
| $Dictionary = @{}, | |
| [Parameter(Position = 1, Mandatory, ValueFromPipeline)] | |
| [Management.Automation.RuntimeDefinedParameter]$Parameter | |
| ) |
This file contains hidden or 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
| function Convert-CodeCoverage { | |
| <# | |
| .SYNOPSIS | |
| Convert the file name and line numbers from Pester code coverage of "optimized" modules to the source | |
| .EXAMPLE | |
| Invoke-Pester .\Tests -CodeCoverage (Get-ChildItem .\Output -Filter *.psm1).FullName -PassThru | | |
| Convert-CodeCoverage -SourceRoot .\Source -Relative | |
| Runs pester tests from a "Tests" subfolder against an optimized module in the "Output" folder, | |
| piping the results through Convert-CodeCoverage to render the code coverage misses with the source paths. |
This file contains hidden or 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
| Originally: | |
| https://gist.github.com/7565976a89d5da1511ce | |
| Hi Donald (and Martin), | |
| Thanks for pinging me; it's nice to know Typesafe is keeping tabs on this, and I | |
| appreciate the tone. This is a Yegge-long response, but given that you and | |
| Martin are the two people best-situated to do anything about this, I'd rather | |
| err on the side of giving you too much to think about. I realize I'm being very | |
| critical of something in which you've invested a great deal (both financially |
This file contains hidden or 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
| podTemplate(label: 'builder', | |
| containers: [ | |
| containerTemplate(name: 'jnlp', image: 'larribas/jenkins-jnlp-slave-with-ssh:1.0.0', args: '${computer.jnlpmac} ${computer.name}'), | |
| containerTemplate(name: 'docker', image: 'docker', command: 'cat', ttyEnabled: true), | |
| containerTemplate(name: 'kubectl', image: 'ceroic/kubectl', command: 'cat', ttyEnabled: true), | |
| containerTemplate(name: 'maven', image: 'maven:3.3.9-jdk-8-alpine', ttyEnabled: true, command: 'cat') | |
| ], | |
| volumes: [ | |
| hostPathVolume(hostPath: '/var/run/docker.sock', mountPath: '/var/run/docker.sock'), | |
| secretVolume(secretName: 'maven-settings', mountPath: '/root/.m2'), |