Skip to content

Instantly share code, notes, and snippets.

@ansemjo
ansemjo / gitlab-backup-to-minio.md
Last active Apr 8, 2021
upload gitlab omnibus backups to minio
View gitlab-backup-to-minio.md

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 Aug 31, 2017
Generate Kibana index patterns and set the default Index pattern incl. base auth
View generate_kibana_index_patterns.sh
#/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 May 13, 2021
Simple script intended to automate Fortinet SSL VPN Client connection on Linux using expect scripting.
View forticlientsslvpn-expect.sh
#!/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 Oct 13, 2016
List of private docker repositories (self-hosted and SaaS) other than Docker Hub
View docker-private-registries
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 Apr 8, 2021
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
View how-to-install-latest-gcc-on-ubuntu-lts.txt
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 && \
@moonwitch
moonwitch / ubuntu-trusty-preseed.seed
Last active Jan 11, 2020
Preseed for Trusty Thrall - 14.04 LTS
View ubuntu-trusty-preseed.seed
########################################################################
#### Custom Preseed Amlin Europe using Ubiquity
### By Kelly Crabbé for Amlin Europe
### Tested on Ubuntu Trusty Thral 14.04 LTS
####################################################################
# General
####################################################################
# Once installation is complete, automatically power off.
@sit
sit / gitproxy-socat
Created Jan 20, 2009
A simple wrapper around socat to use as a git proxy command
View gitproxy-socat
#!/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