This file contains hidden or 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 ctypes | |
import ctypes.util | |
import enum | |
import errno | |
from collections.abc import Generator | |
from collections import OrderedDict | |
from typing import Dict, Iterable, Optional | |
import osbuild |
This file contains hidden or 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/python3 | |
import contextlib | |
import os | |
def find_entry(dir_fd: int, target) -> os.DirEntry: | |
with os.scandir(dir_fd) as it: | |
for entry in it: | |
info = entry.stat(follow_symlinks=False) |
This file contains hidden or 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/python3 | |
import argparse | |
import json | |
import os | |
import sys | |
import tempfile | |
import dnf |
This file contains hidden or 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/python3 | |
import json | |
import os | |
import sys | |
from urllib.parse import urlparse | |
def main(): |
This file contains hidden or 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/python3 | |
import argparse | |
import configparser | |
import json | |
import os | |
import sys | |
import tempfile | |
import urllib.request | |
import yaml |
This file contains hidden or 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/python3 | |
import os | |
import json | |
import sys | |
all_partitions = [ | |
{"start": 2048, "size": 972800, "type": "C12A7328-F81F-11D2-BA4B-00A0C93EC93B", | |
"filesystem": {"type": "vfat", "uuid": "46BB-8120", "label": "EFI System Partition", | |
"mountpoint": "/boot/efi"}}, |
This file contains hidden or 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 | |
set -e | |
set -x | |
OS=${1:-fedora} | |
ROOT=$(pwd) | |
echo "$OS @ $ROOT" | |
mkdir -p "$ROOT/build-$OS" |
This file contains hidden or 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
/* gcc -Wall -o cfr cfr.c */ | |
#define _GNU_SOURCE | |
#include <assert.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> |
This file contains hidden or 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
// curl -u username:password "http://localhost:5000/post?hostname=test.xatom.net" | |
package main | |
import ( | |
"encoding/base64" | |
"fmt" | |
"flag" | |
"io/ioutil" | |
"log" | |
"net/http" |
NewerOlder