I hereby claim:
- I am maakuth on github.
- I am maakuth (https://keybase.io/maakuth) on keybase.
- I have a public key ASDar8sqDv1PSDPWqzg6lderRehi3yacdrhe7HqOgtnDWwo
To claim this, I am signing this object:
| #!/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 |
| sed -e "s_\(..\)\/\(..\)\/\(..\)_20\3-\2-\1_" |
| #!/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 |
| #!/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]) |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| def isPalindrome(whatever): | |
| reverse = '' | |
| for c in whatever: | |
| reverse = c + reverse | |
| return reverse == whatever |
| # When testing changes, the easiest way to reload the theme is with /RELOAD. | |
| # This reloads the configuration file too, so if you did any changes remember | |
| # to /SAVE it first. Remember also that /SAVE overwrites the theme file with | |
| # old data so keep backups :) | |
| # TEMPLATES: | |
| # The real text formats that irssi uses are the ones you can find with | |
| # /FORMAT command. Back in the old days all the colors and texts were mixed | |
| # up in those formats, and it was really hard to change the colors since you |
| try: | |
| import lxml.etree as ET | |
| except: | |
| import xml.etree.ElementTree as ET | |
| import requests | |
| def getRss(): | |
| lang = "fi" | |
| url = "http://feeds.yle.fi/areena/v1/series/1-1440981.rss?lang={0}".format(lang) | |
| return requests.get(url).content |
| #!/bin/sh | |
| if [ $# -eq 0 ] | |
| then | |
| echo "Usage $0 img1.png img2.tif img3.pdf" | |
| echo "Requires ghostscript, imagemagick" | |
| fi | |
| for file in "$@" | |
| do |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| rooms = `sudo -u postgres psql synapse -t -c "select room_id from rooms;"`.split("\n") | |
| rooms.reject! {|r| r.strip == "" } | |
| rooms.each_with_index do |r, i| | |
| `./synapse-compress-state -p 'postgresql://USERNAME:PASSWORD@HOSTNAME/DBNAME' -r '#{r.strip}' -o out#{i}.sql -t` | |
| end |