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 | |
from __future__ import absolute_import, print_function, unicode_literals | |
from collections import defaultdict, namedtuple | |
from gettext import gettext as _, ngettext | |
from unittest import TestCase | |
from unittest.loader import TestLoader | |
from unittest.result import TestResult | |
from unittest.suite import TestSuite |
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 python2 | |
class Meta(type): | |
def __new__(mcls, name, bases, ns): | |
ns['_meta_for'] = name | |
return type.__new__(mcls, name, bases, ns) | |
class Base(object): |
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
# Display Port Audio Test Program | |
# ------------------------------- | |
# | |
# Goal: | |
# To play sound through the attached monitor, | |
# connected using a display port cable, | |
# without using a passive adapter. | |
# Purpose: | |
# To aid in manual testing of audio for hardware certification | |
# Requirements: |
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/sh | |
if [ "$(id -u)" != 0 ]; then | |
echo "This script requires root access, run it with sudo please" | |
exit 1 | |
fi | |
core_snap=/var/lib/snapd/snaps/ubuntu-core_122.snap | |
case $(md5sum $core_snap | cut -d ' ' -f 1) in | |
8170579dcd67c5eceb151695c21cdab1) | |
echo "Patching ubuntu-core snap to include hostfs mount point" | |
tmp="$(mktemp -d)" |
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
.PHONY: all clean | |
CFLAGS += -Wall | |
all: oops | |
clean: | |
rm -f oops |
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 | |
import argparse | |
import struct | |
def main() -> None: | |
parser = argparse.ArgumentParser() | |
parser.add_argument( | |
'appimage', metavar='APPIMAGE', help="Appimage file to query", | |
type=argparse.FileType(mode="rb")) |
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
import ast | |
class Visitor(ast.NodeVisitor): | |
def __init__(self): | |
self._names_seen = set() | |
def visit_Name(self, node): | |
self._names_seen.add(node.id) | |
node = ast.parse("all(package.name not in ['plainbox', 'tuxracer'])") |
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 : indent | |
version : 2.2.11 | |
release : 1 | |
source : | |
- http://debian.lagis.at/debian/pool/main/i/indent/indent_2.2.11.orig.tar.gz : aaff60ce4d255efb985f0eb78cca4d1ad766c6e051666073050656b6753a0893 | |
homepage : https://www.gnu.org/software/indent/ | |
license : | |
- GPLv2 | |
summary : C language source code formatting program | |
description : | |
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
#version=DEVEL | |
# Firewall configuration | |
firewall --enabled --service=mdns | |
# X Window System configuration information | |
xconfig --startxonboot | |
repo --name="fedora" --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch | |
repo --name="updates2" --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch | |
# System authorization information | |
auth --useshadow --enablemd5 | |
# System keyboard |
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 | |
import abc | |
import argparse | |
import contextlib | |
import io | |
import os | |
import platform | |
import socket | |
import subprocess | |
import sys |