This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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'): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Puppet::Functions.create_function(:modularfile) do | |
def modularfile(path) | |
path = path.gsub('.', '0x2e') | |
call_function('hiera', [path]) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/google/gopacket" | |
"github.com/google/gopacket/pcap" | |
"github.com/google/gopacket/layers" | |
"log" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from functools import cache | |
import argparse | |
import dbus | |
import subprocess | |
import json | |
import dbus.mainloop.glib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import re | |
import datetime | |
import ipaddress | |
import os | |
import sys | |
def get_iface_networks(dev): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
OlderNewer