Skip to content

Instantly share code, notes, and snippets.

FROM alpine:3.9
ENV HOME=/config
RUN set -x && \
apk add --no-cache curl ca-certificates && \
chmod +x /usr/local/bin/kubectl && \
\
# Create non-root user (with a randomly chosen UID/GUI).
adduser kubectl -Du 2342 -h /config
@atolia
atolia / smtp-test.sh
Last active April 30, 2020 13:04
SMTP TLS tester. Check if the SMTP credentials are correct using SMTP TLS
#!/bin/bash
test -z $1 && { echo -e "Usage:\n$0 login@mycompany.com [smtp.mycompany.com:587]\ndefault = smtp.office365.com:587" ; exit 1 ; }
login=`echo -n $1|base64`
url=${2:-smtp.office365.com:587}
echo -n Enter password:
read -s password

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@atolia
atolia / kubectl.fish
Created February 17, 2018 16:48 — forked from terlar/kubectl.fish
Kubernetes fish completions
# kubernetes - is an open source system for managing containerized
# applications across multiple hosts, providing basic mechanisms for
# deployment, maintenance, and scaling of applications.
# See: https://kubernetes.io
function __kubectl_no_command
set -l cmd (commandline -poc)
if not set -q cmd[2]
return 0
end
@atolia
atolia / flibusta.conf
Last active December 12, 2016 16:40
Nginx conf for flibusta proxy
server {
server_name flibusta.MYDOMEN.ru;
listen 80;
location / {
proxy_pass https://flibusta.is;
proxy_set_header Host flibusta.is;
proxy_set_header X-Real-IP $remote_addr;
add_header X-Robots-Tag noindex;
proxy_redirect http://static.flibusta.is:443/ http://stat-flibusta.MYDOMEN.ru/;