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 | |
# -*- coding: utf-8 -*- | |
#Näyttää hetuvaihtoehdot syntymän, tarkisteen ja sukupuolen perusteella | |
import sys | |
tarkisteet = ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','H','J','K','L','M','N','P','R','S','T','U','V','W','X','Y'] | |
if len(sys.argv) < 3: | |
print ("%s <hetu> <tarkiste> [M|N]" % sys.argv[0]) |
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 | |
. /etc/environment | |
lvcreate -l90%FREE -s -n rootsnap /dev/host/root | |
#XFS specific: Mounting ignoring uuid because the original volume has same uuid | |
mount -o ro,nouuid /dev/host/rootsnap /mnt/rootsnap | |
mount /backuptarget |
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
sed -e "s_\(..\)\/\(..\)\/\(..\)_20\3-\2-\1_" |
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/bash -e | |
# | |
# Printing made easy for your Linux laptop in the University of Jyväskylä. | |
# Public domain. Original work by Zouppen and cedx. | |
# | |
# Before using, send your public key to charra (to avoid password prompt) | |
# and put the following in your ~/.ssh/config: | |
# | |
# Host charra | |
# User YOUR_USERNAME |
NewerOlder