Skip to content

Instantly share code, notes, and snippets.

View parhamfh's full-sized avatar
🤠
nothing is happening, everything is relative

parhamfh

🤠
nothing is happening, everything is relative
View GitHub Profile
@parhamfh
parhamfh / jdutil.py
Last active August 29, 2015 14:09 — forked from jiffyclub/jdutil.py
"""
Functions for converting dates to/from JD and MJD. Assumes dates are historical
dates, including the transition from the Julian calendar to the Gregorian
calendar in 1582. No support for proleptic Gregorian/Julian calendars.
:Author: Matt Davis
:Website: http://github.com/jiffyclub
"""
@parhamfh
parhamfh / ctf1
Last active January 4, 2016 04:49
#!/usr/bin/python
# coding utf8
import subprocess
import sys
import uuid
import time
from hashlib import sha1
from datetime import datetime as dt
# print sys.argv
#!/usr/bin/ruby
#
# This script fixes /usr/local only.
#
# 6th January 2010:
# Modified the script to just fix, rather than install. - rpavlik
#
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several
@parhamfh
parhamfh / store contact email
Created June 14, 2013 12:23
Div for adding store's contact email
<div id="contact">
{{#store_email}}
{{#lang}}Contact{{/lang}}: <a href="mailto:{{store_email}}">{{store_email}}</a>
{{/store_email}}
</div>