Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am rorosha on github.
* I am roshi (https://keybase.io/roshi) on keybase.
* I have a public key ASBrfjSnZ10tSWWJwuNUhiRNCYXierkmLjaTdS6ZV12MyAo
To claim this, I am signing this object:
@Rorosha
Rorosha / sanitycheck.sh
Created October 13, 2014 20:39
A script to run basic tests on Fedora images in the current directory
#!/bin/bash
# This script checks your locally downloaded files to see if they pass
# the Checksums [0] and ISO Size [1] testcases.
#
# [0] https://fedoraproject.org/wiki/QA:Testcase_Mediakit_Checksums
# [1] https://fedoraproject.org/wiki/QA:Testcase_Mediakit_ISO_Size
#
# Author: Mike Ruckman (roshi AT fedoraproject.org)
# Date: 2014-10-08
@Rorosha
Rorosha / cloudtoserver.sh
Last active August 29, 2015 14:07
convert cloud instance to a server product
#!/bin/sh
#
# Script to migrate a cloud instance (cattle) to a server (pet).
# Ported from the cloudtoserver [0] written in python.
#
# [0] https://github.com/fedora-cloud/cloudtoserver
#
# Author: Mike Ruckman (roshi AT fedoraproject.org)
convertToServer () {
@Rorosha
Rorosha / check_email.py
Created September 13, 2012 15:59
Basic Utility Functions
def email_check(email):
"""Checks to make sure user inputted email actually conforms to what an
email should look like. Returns True if everything looks right."""
try:
pieces = email.split('@')
if ' ' not in pieces[0] and '.' in pieces[1]:
return True
except:
return False