Skip to content

Instantly share code, notes, and snippets.

@freepenguins
freepenguins / lv_rsync_backup.sh
Created October 16, 2023 18:08 — forked from amirkdv/lv_rsync_backup.sh
Backup an LVM logical volume via Rsync
#!/bin/bash
# Backup an entire LVM logical volume via a snapshot LV and rsync
[[ $( whoami ) != 'root' ]] && echo "sudo please" && exit 1
set -o errexit
set -o nounset
# LVM logical volume to backup
lv=book01
@freepenguins
freepenguins / lvimg.sh
Created October 16, 2023 18:08 — forked from huafu/lvimg.sh
Backup of LVM logical volume by creating a gzip compressed image of temporary snapshot
#!/bin/bash
# usage:
# lvimg lv_dev [backup_path]
#
# lv_dev: path to the logical volume to backup
# backup_path: optional, base path of backups (default to /mnt/backups)
# config
DEFAULT_BACKUP_PATH="/mnt/backups"
@freepenguins
freepenguins / README.md
Created February 5, 2022 20:38 — forked from jamesramsay/README.md
Gmail: delete old emails automatically

Gmail: delete old emails automatically

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at https://script.google.com
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
  • LABEL_TO_DELETE: the label that should be have old messages deleted
@freepenguins
freepenguins / ca.md
Created February 21, 2018 17:37 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@freepenguins
freepenguins / centos6.ks
Created April 1, 2017 16:20 — forked from kenjiskywalker/centos6.ks
CentOS 6.3 install on KVM from kickstart
# Kickstart file automatically generated by anaconda.
#version=RHEL6
install
rootpw --iscrypted [HASH PASSWORD]
text
keyboard us
lang en_US.UTF-8
selinux --disabled
timezone --utc Asia/Tokyo
@freepenguins
freepenguins / gist:ec1426481457e0b71391e24cf82d358b
Created October 24, 2016 19:00 — forked from stephenc/gist:3053561
Continuous Deployment with Jenkins and Puppet

Puppet with Jenkins

Setup Jenkins

With Puppet:

puppet module install rtyler-jenkins

puppet apply -v -e "include jenkins"