Skip to content

Instantly share code, notes, and snippets.

View midzelis's full-sized avatar

Min Idzelis midzelis

View GitHub Profile
@werty1st
werty1st / docker wait nfs systemd
Created July 30, 2019 22:01
docker wait nfs systemd
UPDATE / SOLUTION FOR ANYONE HAVING THIS PROBLEM
1.) Make sure your NFS mount in /etc/fstab does NOT have the "bg" background field
and
2.) Create: /etc/systemd/system/docker.service.d/override.conf
with:
[Unit]
After=nfs.mount
and then
systemctl daemon-reload
Source: https://albertomolina.wordpress.com/2016/12/02/shrinking-qcow2-images/
virt-df -h image.raw
Filesystem Size Used Available Use%
image.raw:/dev/sda1 1.9G 1020M 837M 52%
guestfish
><fs> add image.raw
><fs> run
><fs> list-filesystems
@cpswan
cpswan / gmail.py
Created January 22, 2017 11:13
Example Network UPS Tool (NUT) configs
#!/usr/bin/python
import os
import sys
import smtplib
import mimetypes
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email.MIMEAudio import MIMEAudio
from email.MIMEImage import MIMEImage
@cgoldberg
cgoldberg / gource-multiple-repositories.sh
Last active May 22, 2024 12:53 — forked from derEremit/gource-multiple-repositories.sh
Generates gource video of multiple source code repositories.
#!/usr/bin/env bash
# Generates gource video out of multiple repositories.
# First, get a local branch/clone of each repository.
# Then, pass the repositories as command line arguments.
#
# Example:
# $ gource-multiple-repositories.sh /path/to/repo1 /path/to/repo2
@BipedalTV
BipedalTV / MythCutKey
Last active August 21, 2020 23:36 — forked from dmoo1790/gist:507582
Script to cut MythTV recordings 0.26+fixes
#!/bin/bash
# MythCutKey Version 0.15e
# This script cuts myth recordings at key frames using the MythTV seek table.
# Why? No external programs required, lossless and fast.
# Updates the myth database with sql calls.
# Rebuilds output file seek table with mythutil (mythcommflag at present).
# Output files may NOT be easily editable again and may have glitches at cut points.
#
# Undo option allows restoration of original recording and associated database
@birkhoff
birkhoff / tycho_build-SNAPSHOT.gradle
Created May 18, 2012 14:49
Tycho Gradle Build Script
apply plugin: 'base'
import groovy.io.FileType
tychoVersion = "0.14.1"
try{
workspacePath = workspacePath
}catch(MissingPropertyException e){
workspacePath = "../"