Skip to content

Instantly share code, notes, and snippets.

View pyther's full-sized avatar

Matthew Gyurgyik pyther

View GitHub Profile
--- baseimg/overlayfs/overlayfs.py.orig 2015-08-24 12:24:00.067498108 -0400
+++ baseimg/overlayfs/overlayfs.py 2015-08-24 12:39:10.807999806 -0400
@@ -65,8 +65,9 @@ def should_touch():
if not path.exists(mtab):
return False
with open(mtab, 'r') as f:
- line = f.readline()
- return line.startswith('overlay / overlay')
+ for line in f.readlines():
+ if line.startswith('overlay / overlay'):
#!/bin/bash
# Detects Linux Distribution
#
# Many Distributions have lsb_release or use /etc/lsb_release
# For those that do not we have some fallback cases
#
# The goal is to report the Distribution and Version that is being used
# An icon will be display based on the first word of the distro's name.
# Example: Scientific Linux 6.1 will be Scientific.png or Scientific.gif
#!/bin/bash
# Detects Linux Distribution
#
# Most Distributions have lsb_release or use /etc/lsb_release
# For those that do not we have some fallback cases
OS=$(uname -s)
VER=$(uname -r)
#!/bin/bash
# Backup Script - Matthew Gyurgyik (pyther@pyther.net)
#
# Backup a System using rsync and --link-dest (hard links)
# Backups are stored in a folder called $Year$Month$Day ex. 2010Oct18
#
# Exclude file format:
# /backup/exclude.txt
# + /etc
# + /home
@pyther
pyther / syslinux-install_update
Created January 9, 2011 23:25
syslinux-install_update
#!/bin/bash
#
# Sylinux Installer / Updater Scripts
# Copyright (C) 2011 Matthew Gyurgyik <pyther@pyther.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
@pyther
pyther / rec_vhs.sh
Created July 26, 2009 02:23
Simple shell script to configure alsa the record from capture card
#!/bin/bash
function set_alsa {
#Unmute Line
amixer sset Line 100 -q
amixer sset Line unmute -q
#Mute PCM record
amixer sset PCM Capture 0 -q