Skip to content

Instantly share code, notes, and snippets.

@simlun
simlun / raspi-monitor
Last active June 9, 2024 15:15
Script to enable and disable the HDMI signal of the Raspberry PI
#!/bin/bash -e
# /usr/local/sbin/raspi-monitor
# Script to enable and disable the HDMI signal of the Raspberry PI
# Inspiration: http://www.raspberrypi.org/forums/viewtopic.php?t=16472&p=176258
CMD="$1"
function on {
/opt/vc/bin/tvservice --preferred
@sandersch
sandersch / clone_lvm_part.sh
Last active May 18, 2022 16:30
Back up an lvm partition using Clonezilla
# Mount image desintion to /home/partimag as desired
# No wizards from here. Use the Clonezilla command line
# Abort script on any failures, print out commands for debugging
set -e
set -x
# Partition to clone
[ -n "$VG_NAME" ] || VG_NAME="systemvg"
[ -n "$LV_NAME" ] || LV_NAME="rootlv"
@boTux
boTux / ubuntu-touch_owncloud-sync_contact-calendar.sh
Last active June 7, 2019 10:17
[Ubuntu-Phone] Owncloud Contact & Calendar Sync - Carddav & Caldav via syncevolution.
#!/bin/bash
# ---------------------------------------------------------------------------
# Ubuntu Phone - Sync Owncloud Contacts & Calendar Account
# Carddav & Caldav.
# Tested on : Ubuntu-touch vivid - ubuntu-touch/rc-proposed/bq-aquaris.en/vegetahd/
# Last edit : 2015/10/07.
# Author : Romain Fluttaz, boTux.fr, <romain@botux.fr>
# ============= [ Configuration ] ============= #