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
| dsquery user -samid d123456 | |
| :: Retorno => CN=Fulano da Silva,OU=Users,OU=XYZ,DC=rede,DC=sp |
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
| REM -------------------------------- | |
| REM Script de sincronização do FTP 156 com diretório local | |
| REM Autor: Andrew Solera (asolera@prefeitura.sp.gov.br) | |
| @ECHO OFF | |
| SET connectionname=nome_da_conexao | |
| SET remotedir=/path/to/file/ | |
| SET localdir=C:\local_dir | |
| SET filemask=file_mask_????????.txt |
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
| const express = require('express'); | |
| const app = express(); | |
| const interceptor = require('express-interceptor'); | |
| const responseInterceptor = interceptor((req, res) => { | |
| return { | |
| isInterceptable: () => true, | |
| intercept: (body, send) => { | |
| console.log('Intercepted!'); | |
| send(body); |
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
| const secondsToSkip = 3; | |
| let video = document.getElementById("video-player_html5_api"); | |
| document.onkeydown = (event) => { | |
| if (event.keyCode == 37) video.currentTime = video.currentTime - secondsToSkip; | |
| if (event.keyCode == 39) video.currentTime = video.currentTime + secondsToSkip; | |
| }; |
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/sh | |
| du -sh ./* |
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
| FROM golang:1.14.3-alpine3.11 AS build | |
| RUN apk add --no-cache git | |
| RUN go get github.com/docker/docker/api/types | |
| RUN go get github.com/docker/docker/client | |
| RUN apk del git | |
| WORKDIR /go/src/myapp |
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 | |
| awk '(NR == 1) || (FNR > 1)' file_*.csv > files.csv |
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
| # Credentials must be passed in through environment variables (DB_HOST, DB_PORT, DB_USER, DB_PASS, DB_NAME) | |
| variables: | |
| DOCKER_DRIVER: overlay2 | |
| GIT_STRATEGY: fetch | |
| PGPASSWORD: "$DB_PASS" | |
| services: | |
| - docker:19.03.8-dind | |
| stages: |
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
| <sequence name="ExternalAuth" statistics="enable" trace="enable" xmlns="http://ws.apache.org/ns/synapse"> | |
| <property expression="$axis2:REST_URL_POSTFIX" name="originalResource" scope="default" type="STRING"/> | |
| <property action="remove" name="REST_URL_POSTFIX" scope="axis2"/> | |
| <property name="BLOCKING_SENDER_PRESERVE_REQ_HEADERS" value="false"/> | |
| <property name="HTTP_METHOD" scope="axis2" type="STRING" value="POST"/> | |
| <callout initAxis2ClientOptions="false" serviceURL="https://api.external.example/auth?token=abcdefg"> | |
| <source type="envelope"/> | |
| <target key="response"/> | |
| </callout> | |
| <property expression="$trp:Set-Cookie" name="setCookieHeader" scope="default" type="STRING"/> |
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
| FROM another/image:example | |
| # Credits to https://stackoverflow.com/a/64062083 | |
| # some dockerfile commands... | |
| ENV JAVA_FOLDER java-se-8u41-ri | |
| ENV JVM_ROOT /usr/lib/jvm | |
| ENV JAVA_PKG_NAME openjdk-8u41-b04-linux-x64-14_jan_2020.tar.gz | |
| ENV JAVA_TAR_GZ_URL https://download.java.net/openjdk/jdk8u41/ri/$JAVA_PKG_NAME |
OlderNewer