Skip to content

Instantly share code, notes, and snippets.


Zygmunt Krynicki zyga

View GitHub Profile
zyga /
Created Apr 1, 2013
Attach iSCSI disk to VirtualBox, works without auth
VBoxManage storageattach "Ubuntu Precise Server" --storagectl "SATA" --port 0 --device 0 --type hdd --medium iscsi --server --target "iqn.2013-01.silverbox:precise-server" --tport 3260
zyga /
Last active Apr 2, 2021
Parser for `pactl list` output
#!/usr/bin/env python3
# Copyright 2013 Canonical Ltd.
# Written by:
# Zygmunt Krynicki <>
Parser for `pactl list` output
from argparse import ArgumentParser
zyga /
Last active Sep 25, 2019
raspi-tool for sending/receiving images from running Raspberry Pi devices
#!/usr/bin/env python3
import abc
import argparse
import contextlib
import io
import os
import platform
import socket
import subprocess
import sys
View f28.ks
# Firewall configuration
firewall --enabled --service=mdns
# X Window System configuration information
xconfig --startxonboot
repo --name="fedora" --mirrorlist=$releasever&arch=$basearch
repo --name="updates2" --mirrorlist=$releasever&arch=$basearch
# System authorization information
auth --useshadow --enablemd5
# System keyboard
zyga / package.yml
Last active Oct 12, 2017
Indent package for Solus (unfinished)
View package.yml
name : indent
version : 2.2.11
release : 1
source :
- : aaff60ce4d255efb985f0eb78cca4d1ad766c6e051666073050656b6753a0893
homepage :
license :
- GPLv2
summary : C language source code formatting program
description : |
zyga /
Last active Sep 14, 2017
Experiment with python3 ast module
import ast
class Visitor(ast.NodeVisitor):
def __init__(self):
self._names_seen = set()
def visit_Name(self, node):
node = ast.parse("all( not in ['plainbox', 'tuxracer'])")
zyga /
Created Aug 6, 2017
Quick script checking if a given file may be a valid appimage file
#!/usr/bin/env python3
import argparse
import struct
def main() -> None:
parser = argparse.ArgumentParser()
'appimage', metavar='APPIMAGE', help="Appimage file to query",
zyga / Makefile
Last active Mar 30, 2017
setns apparmor bug
View Makefile
.PHONY: all clean
CFLAGS += -Wall
all: oops
rm -f oops
zyga /
Created Jun 9, 2016
Script to patch ubuntu-core.snap at revision 122 to support the new hostfs mount point
if [ "$(id -u)" != 0 ]; then
echo "This script requires root access, run it with sudo please"
exit 1
case $(md5sum $core_snap | cut -d ' ' -f 1) in
echo "Patching ubuntu-core snap to include hostfs mount point"
tmp="$(mktemp -d)"
zyga / display-port-audio-test-program.txt
Last active Dec 16, 2015
Display Port test program (plan)
View display-port-audio-test-program.txt
# 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: