Skip to content

Instantly share code, notes, and snippets.

View jalopez's full-sized avatar

Javier López jalopez

View GitHub Profile
@jalopez
jalopez / jira-prepare-commit-msg
Created January 16, 2023 12:27 — forked from jeremy-w/jira-prepare-commit-msg
A git hook to tag your commits with the JIRA issue ID. Requires a git client that runs the hook like Git Fork, Git Kraken, or anything TUI/CLI.
#!/bin/bash
#
# jira-prepare-commit-msg: Easy commit tagging for Jira
#
# https://gist.github.com/jeremy-w/818b2980f0d9768da83249458aa67678
#
# If you name your branch to include the Jira issue key,
# this hook will automatically add the issue key to your commit messages.
# This makes it easy to trace work back to Jira, and it also means
# your commits show up in the Activity tab for that issue.
@jalopez
jalopez / cloudSettings
Created April 24, 2018 06:25
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-04-24T06:24:47.017Z","extensionVersion":"v2.9.0"}
@jalopez
jalopez / Bookmark.js
Created November 26, 2010 14:28
A framework to save javascript status in URL
Bookmark = {
"listener": null,
"status": null
};
Bookmark.addEventListener = function(listener) {
this.listener = listener;
}
@jalopez
jalopez / user_fixture_from_csv.py
Created November 18, 2010 14:06
Django: Creates a JSON fixture for user model, from a CSV file
#!/usr/bin/python
import csv
import json
import hashlib
import random
import string
from optparse import OptionParser
def random_string(length):
char_set = string.ascii_letters + string.digits