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
archiver () { | |
name=$1 | |
original=$2 | |
result=$(curl "http://web.archive.org/save/"$original | grep "var redirUrl" | awk '{print $4}' | sed -e 's/";//g' | sed -e 's/"/http:\/\/web.archive.org/g') | |
echo "[$name]($original),[Archived]($result)" | |
} | |
alias archiveit=archiver |
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 -*- | |
from odf.opendocument import OpenDocumentText | |
from odf.style import (Style, TextProperties, ParagraphProperties, | |
ListLevelProperties, TabStop, TabStops) | |
from odf.text import (H, P, List, ListItem, ListStyle, ListLevelStyleNumber, | |
ListLevelStyleBullet) | |
from odf import teletype |