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 | |
#################################################################### | |
# Python wrapper - sets env variables appropiately | |
# v2 - 20151109 | |
#################################################################### | |
# change this PYTHON variable if using an alternative python | |
# interpreter | |
PYTHON="/usr/bin/python" | |
export SRCHOME=$(pwd) |
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
import datetime | |
import time | |
a="Date(2015,6,0,23,58,0)" | |
b=a[5:-1] | |
c=[int(x) for x in b.split(",")] | |
d=datetime.datetime(c[0],c[1]+1,c[2]+1,c[3],c[4],c[5]) | |
timestamp = time.mktime(d.timetuple()) | |
print d | |
print timestamp |
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
$ORIGIN training.lacnic.net. | |
$TTL 15 ; 1 minute | |
@ IN SOA training.lacnic.net. root.localhost. ( | |
2011092606 ; serial | |
604800 ; refresh (1 week) | |
86400 ; retry (1 day) | |
2419200 ; expire (4 weeks) | |
604800 ; minimum (1 week) | |
) |
NewerOlder