Skip to content

Instantly share code, notes, and snippets.

View mandarvaze's full-sized avatar

Mandar Vaze mandarvaze

View GitHub Profile
@mandarvaze
mandarvaze / gen_sitemap.py
Created December 15, 2020 16:50
Generate Sitemap based on python dict
import os
from datetime import datetime
from jinja2 import Template
base_url = 'http://example.com'
# Following can go into settings.py
sitemap_dict = {
'urls': [
{
@mandarvaze
mandarvaze / hug_honeybadger.py
Created October 15, 2020 16:18
Honeybadger integration with hug framework
"""Code written to test integration of Honeybadger
with hug.
You need to :
pip install honeybadger
pip install hug
Have a trial/free account for Honeybadger
Set the Honeybadger API key as an environment variable
HONEYBADGER_API_KEY
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Get all your bitbucket issues at once-Fetches/Displays your bitbucket issues
-
:copyright: (c) 2011 by Openlabs Technologies & Consulting (P) Limited
:license: BSD, see LICENSE for more details.
-
The username and password for this program can be set in multiple ways.
-
1. Set environment variable
@mandarvaze
mandarvaze / build.sh
Created April 10, 2012 16:40
Build Script for cross-compiling OpenFOAM 2.1.x for Windows
#!/bin/bash
#
# Refer to http://www.symscape.com/openfoam-2-1-x-on-windows-64-mpi for original instructions
# Following script is for Ubuntu Linux
#
# Check if apropriate file/packages exists - if not install the package
#
set -x
function maketar()