Skip to content

Instantly share code, notes, and snippets.

View ivomarino's full-sized avatar

Ivo Marino ivomarino

View GitHub Profile
@ivomarino
ivomarino / xtrabackup-s3.sh
Created October 23, 2024 12:03
Script to stream xtrabackup to S3, full and incremental
#!/bin/sh
# Example /root/.my.cnf:
#
# [client]
# user=root
#
# [xtrabackup]
# datadir=/var/lib/mysql
# parallel=4

Keybase proof

I hereby claim:

  • I am ivomarino on github.
  • I am imarino (https://keybase.io/imarino) on keybase.
  • I have a public key whose fingerprint is 59E7 2B26 9173 4CFC BA5C 6710 813C 3E56 D7E3 138E

To claim this, I am signing this object:

@ivomarino
ivomarino / appflow_docker_example.yml
Last active August 27, 2018 14:37
Docker provisioning with AppFlow
#
# Docker
#
conf_docker_enable: true
conf_docker_persistent_storage_path: "/data/containers"
# If you want to share persistens volumes between nodes use GlusterFS
# conf_docker_persistent_storage_path: "/mnt/glusterfs/gvol0/brick1/containers"
conf_docker_group_members: [ syseng, otheruser ]
conf_docker_opts: "-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock --insecure-registry registry:5000"
conf_docker_networks:
@ivomarino
ivomarino / Ansinble-values.yml
Last active July 11, 2017 14:09
ansinble-values
conf_docker_containers:
portainer:
image: portainer/portainer
state: started
restart_policy: always
# published_ports: "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- name: provision docker containers
@ivomarino
ivomarino / momentum.sh
Last active April 24, 2018 18:42
momentum.sh - A simple script for allowing OSX users to use Momentum backgrounds
#!/bin/sh
#
# A simple script for allowing OSX users to use Momentum backgrounds found
# in this Chrome plugin https://chrome.google.com/webstore/detail/momentum/laookkfknpbbblfpciffpaejjkokdgca
# as Desktop backround.
#
# Quick one-liner installation and execution (requires wget on CLI):
#
# % wget -O ~/Pictures/momentum.sh https://gist.githubusercontent.com/ivomarino/b2ff5b26018d4f174629/raw/a91ee46e62968527f7908db2dea5b29d5708719e/momentum.sh && chmod +x ~/Pictures/momentum.sh && cd ~/Pictures && ./momentum.sh