Skip to content

Instantly share code, notes, and snippets.

View pyther's full-sized avatar

Matthew Gyurgyik pyther

View GitHub Profile
@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
@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 <[email protected]>
#
# 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.
#
#!/bin/bash
# Backup Script - Matthew Gyurgyik ([email protected])
#
# 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
#!/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
# 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
--- 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'):
Puppet::Functions.create_function(:modularfile) do
def modularfile(path)
path = path.gsub('.', '0x2e')
call_function('hiera', [path])
end
end
Name: keepassx
Version: 2.0
Release: 1%{?dist}
Summary: Cross-platform password manager
Group: User Interface/Desktops
License: GPLv2+
URL: http://www.keepassx.org
Source0: keepassx-%{version}.tar.gz
BuildRequires: qt4-devel > 4.1
BuildRequires: libXtst-devel
package main
import (
"fmt"
"github.com/google/gopacket"
"github.com/google/gopacket/pcap"
"github.com/google/gopacket/layers"
"log"
)
#!/bin/bash
HARDWARE="\
kmod-pcengines-apuv2 \
kmod-crypto-hw-ccp \
kmod-gpio-nct5104d kmod-gpio-button-hotplug \
kmod-sp5100-tco \
kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb3 \
kmod-sound-core kmod-pcspkr \
amd64-microcode \