Skip to content

Instantly share code, notes, and snippets.

@ansemjo
ansemjo / gitlab-backup-to-minio.md
Last active March 5, 2024 23:30
upload gitlab omnibus backups to minio

setup Minio somewhere

Minio is an object storage server compatible with the S3 protocol. Head to https://minio.io/ to learn more.

Hint: You might want to use MINIO_WORM=on to pretect against accidental or malicious deletion of your backups.

seperate users with iam policies

Since RELEASE.2018-10-18T00-28-58Z minio supports seperate users with attached IAM policies. Instead of (or additionally to) using MINIO_WORM=on you could create a new user and attach a writeonly policy:

@falkenbt
falkenbt / generate_kibana_index_patterns.sh
Created August 31, 2017 13:09
Generate Kibana index patterns and set the default Index pattern incl. base auth
#/bin/bash
if [[ $# -eq 0 ]] ; then
echo "Usage: `basename "$0"` <Kibana-URL> [noauth]"
echo "Example: `basename "$0"` http://localhost:5601"
exit 1
fi
AUTH=""
if [[ "$2" != "noauth" ]]; then
@mgeeky
mgeeky / forticlientsslvpn-expect.sh
Last active April 15, 2024 07:30
Simple script intended to automate Fortinet SSL VPN Client connection on Linux using expect scripting.
#!/bin/bash
# Forticlient SSL VPN Client launching script utilizing expect.
# --------------------------------------------
# CONFIGURATION
# If empty - script will take some simple logic to locate appropriate binary.
FORTICLIENT_PATH=""
@salex89
salex89 / docker-private-registries
Created October 13, 2016 12:35
List of private docker repositories (self-hosted and SaaS) other than Docker Hub
Portus - http://port.us.org/
Quay - https://quay.io/
Harbor - https://vmware.github.io/harbor/
Atomic Registry - http://www.projectatomic.io/registry/
Nexus Repository Manager OSS 3.xx - https://www.sonatype.com/nexus-repository-oss
"Official" Docker Registry 2.0 - https://docs.docker.com/registry/
@application2000
application2000 / how-to-install-latest-gcc-on-ubuntu-lts.txt
Last active February 21, 2024 03:02
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
@sit
sit / gitproxy-socat
Created January 20, 2009 02:30
A simple wrapper around socat to use as a git proxy command
#!/bin/sh
# Use socat to proxy git through an HTTP CONNECT firewall.
# Useful if you are trying to clone git:// from inside a company.
# Requires that the proxy allows CONNECT to port 9418.
#
# Save this file as gitproxy somewhere in your path (e.g., ~/bin) and then run
# chmod +x gitproxy
# git config --global core.gitproxy gitproxy
#
# More details at http://tinyurl.com/8xvpny