- name
- description
- version
- keywords
- homepage
- author
- repository
- licenses
- stars
- updated
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
#On MacOS, adds this to your .bash_profile | |
function json { coffee --print --bare $1.coffee | sed '1s/&.//' | sed 's/});/}/' | sed 's/({/{/' | sed "s/\([^ '\"].*[^ '\"]\): /\"\1\": /1" > $1.json ;} | |
export -f json |
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
renderer: | |
template: "the template to use" | |
template_type: "the template engine" | |
url: "the address of the page" | |
headers: | |
content_language: "The language the content is in (en,fr)" | |
last_modified: "The last modified date for the requested object, in RFC 2822 format" | |
expires: "Gives the date/time after which the response is considered stale" | |
etag: "An identifier for a specific version of a resource, often a message digest" | |
head: |
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
function tard { tar cvf $1-$(date +%Y-%m-%dT%H:%MZ).tar $1;} | |
export tard | |
function tarzd { tar cvfz $1-$(date +%Y-%m-%dT%H:%MZ).tar.gz $1;} | |
export tarzd |
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
# | |
#Creator: 2013, Olivier Huin (https://github.com/olih) | |
#License: Eclipse Public License - v 1.0 | |
#Contributors: | |
# | |
#Very basic page view cost calculator | |
#Dollar conversion | |
D= 0.65 |
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
# | |
#Creator: 2013, Olivier Huin (https://github.com/olih) | |
#License: Eclipse Public License - v 1.0 | |
#Contributors: | |
# | |
#This code is a quick hack and should not be used for production | |
#as it is not optimized and the random numbers could be predicted. | |
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
# | |
#Creator: 2013, Olivier Huin (https://github.com/olih) | |
#License: Eclipse Public License - v 1.0 | |
#Contributors: | |
# | |
pairToMap= (key,value)-> | |
row= | |
Name: key | |
Value: value |
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/python | |
# | |
#Creator: 2013, Olivier Huin (https://github.com/olih) | |
#License: Eclipse Public License - v 1.0 | |
#Contributors: | |
# | |
import sys, getopt | |
import csv |
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 | |
# encoding: utf-8 | |
""" | |
Executes a ps | |
Kill all processes with a given name | |
Creator: 2013, Olivier Huin (https://github.com/olih) | |
License: Eclipse Public License - v 1.0 | |
Contributors: | |
""" |
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
# | |
#Creator: 2013, Olivier Huin (https://github.com/olih) | |
#License: Eclipse Public License - v 1.0 | |
#Contributors: | |
# | |
# Generates a random password | |
#This code is a quick hack and should not be used for production | |
#as it is not optimized and the random numbers could be predicted. | |
G=10000000000 |