Powershell ( Administrator )
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
This should return the following output:
Name : OpenSSH.Client~~~~0.0.1.0
State : NotPresent
Name : OpenSSH.Server~~~~0.0.1.0
| { | |
| "go.formatTool": "goimports", | |
| "go.lintOnSave": "package", | |
| "go.lintTool": "staticcheck", | |
| "go.vetOnSave": "package", | |
| "gopls": { | |
| "ui.completion.usePlaceholders": true, | |
| "ui.diagnostic.analyses": { | |
| "fieldalignment": true, | |
| "unusedwrite": true, |
| // Pattern Specification | |
| // | |
| // In the following example, we are retrieving invoices and sending them to a collection agency if | |
| // 1. they are overdue, | |
| // 2. notices have been sent, and | |
| // 3. they are not already with the collection agency. | |
| // This example is meant to show the end result of how the logic is 'chained' together. | |
| // | |
| // This usage example assumes a previously defined OverdueSpecification class | |
| // that is satisfied when an invoice's due date is 30 days or older, |
| Automate Api e2e test: | |
| https://www.freecodecamp.org/news/how-to-automate-rest-api-end-to-end-tests/ | |
| Sling, create client api for e2e tests | |
| https://github.com/dghubble/sling |
| package benchuuid | |
| import ( | |
| "testing" | |
| "github.com/lithammer/shortuuid" | |
| "github.com/segmentio/ksuid" | |
| "github.com/sony/sonyflake" |
| Genera un perfil pprof de la memoria de un programa go | |
| ------------------------------------------------------ | |
| go test -bench=. -memprofile memprofile.pprof | |
| Chequeamos el perfil y lo analizamos en web | |
| ------------------------------------------- | |
| go tool pprof -http=:8080 memprofile.pprof memprofile.pprof |
| if test -f /etc/profile.d/git-sdk.sh | |
| then | |
| TITLEPREFIX=SDK-${MSYSTEM#MINGW} | |
| else | |
| TITLEPREFIX=$MSYSTEM | |
| fi | |
| if test -f ~/.config/git/git-prompt.sh | |
| then | |
| . ~/.config/git/git-prompt.sh |
Powershell ( Administrator )
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
This should return the following output:
Name : OpenSSH.Client~~~~0.0.1.0
State : NotPresent
Name : OpenSSH.Server~~~~0.0.1.0
| #!/usr/bin/env bash | |
| set -e | |
| # usage: file_env VAR [DEFAULT] | |
| # ie: file_env 'XYZ_DB_PASSWORD' 'example' | |
| # (will allow for "$XYZ_DB_PASSWORD_FILE" to fill in the value of | |
| # "$XYZ_DB_PASSWORD" from a file, especially for Docker's secrets feature) | |
| file_env() { | |
| local var="$1" | |
| local fileVar="${var}_FILE" |
| FROM selenium/standalone-chrome | |
| # lets install node 6.x then cleanup | |
| # install build-essential and leave in case npm needs it | |
| # we have to sudo because selenium defaults to seluser | |
| WORKDIR /tmp | |
| ADD https://deb.nodesource.com/setup_6.x nodesource_setup.sh | |
| RUN sudo bash nodesource_setup.sh \ | |
| && sudo apt-get install -y nodejs build-essential \ | |
| && sudo rm -rf /var/lib/apt/lists/* |
| sudo: required #is required to use docker service in travis | |
| language: php #can be any language, just php for example | |
| services: | |
| - docker # required, but travis uses older version of docker :( | |
| install: | |
| - echo "install nothing!" # put your normal pre-testing installs here |