Skip to content

Instantly share code, notes, and snippets.


  • Red Hat
Block or report user

Report or block msehnout

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import requests
from requests_kerberos import HTTPKerberosAuth
class Response:
def __init__(self, data, id, status): = data = id
self.status = status


package main

import "fmt"

func main() {
	abc := []string{"aaa", "bbb", "ccc"}
	for i := range abc {
msehnout /
Created Dec 15, 2019
Print a list of images into a PDF file with two images per page.
import os
from fpdf import FPDF
from PIL import Image
input = os.environ["INPUT"]
output = os.environ["OUTPUT"]
images = os.listdir(input)
msehnout / azure_image.json
Last active Dec 10, 2019
[WIP] osbuild pipeline for the new Azure image
View azure_image.json
"build": {
"pipeline": {
"stages": [
"name": "org.osbuild.dnf",
"options": {
"repos": [
"metalink": "$releasever&arch=$basearch",
msehnout /
Created Mar 2, 2018
Simple flat_map example - filtering data from list of structs
struct Task {
b: u8,
c: String,
struct Day {
a: u8,
msehnout /
Last active Nov 2, 2017
C++17 Coding Challenge in Rust
* # C++17 Coding challenge in Rust
* How to deal with edge cases:
* * if the input file is empty, the program should write “input file missing” to the console.
* * if the input file does not contain the specified column, the program should write “column name doesn’t exists in the input file” to the console.
* The rest was not considered and mercilessly unwrapped.
use std::env;
use std::env;
use std::io::{self, stdin, Read, Write, Result};
use std::net::{SocketAddrV4, TcpStream, UdpSocket, TcpListener, Ipv4Addr};
use std::str;
use std::sync::Arc;
use std::thread;
static MAN_PAGE: &'static str = /* @MANSTART{tail} */ r#"
nc - Concatenate and redirect sockets
You can’t perform that action at this time.