Find out own SSH fingerprint:
ssh-keygen -lf /etc/ssh/ssh_host_ecdsa_key.pub
Add own public key to remote server for later verification:
FROM alpine:3.9.6 | |
COPY --from=mvisonneau/gitlab-ci-pipelines-exporter:0.2.14 /usr/local/bin/gitlab-ci-pipelines-exporter /usr/local/bin/ | |
RUN apk add --no-cache ca-certificates | |
USER 65534 | |
EXPOSE 8080 |
This is how to create a run
function in Gradle (Groovy) to execute a command in a selectable working directory
and with additional environment variables.
It is based on groovy's String.execute(...)
build.gradle
This is how to disable the default Windows error sound, which occurs, for example, when you search something in a browser and there is no result, or when you type something wrong in a terminal.
I tested this on a german Windows installation, so I'm not sure if my english translations are the correct ones.
This is how to create a simple static file server with deno and abc.
It serves the current dir and you can run it directly from the hosted script:
deno run --allow-net="0.0.0.0:80" --allow-read https://kekru.de/serve.ts
deno run --allow-net="0.0.0.0:80" --allow-read https://gist.githubusercontent.com/kekru/751e32b5d97661f3649ce8ad8f8517ba/raw/2982a65c1205f72c56daf8827a8fc2f6b012600d/serve.ts
This is how to read credentials from a .netrc formatted file, which is encrypted using gpg and use these credentials as login data for gradle remote repositories.
First you need to have gpg keys created.
Then create a ~/.netrc
as shown below and encrypt it with gpg -r <your email> -e ~/.netrc
, which will create a .netrc.gpg
. Remove the unencypted .netrc
afterwards.
Now create a ~/.gradle/init.gradle
as shown below.
Simple Docker Setup for serving static files and proxy pass a path to a server
Just click "Download ZIP" oder "Embed -> Clone" and then run docker-compose up
.
The server is available on http://localhost:8080 and will serve the files in ./static
choco install -y handle
handle > handles.log
example.exe
) and stop it with Powershell:Stop-Process -Name example