Skip to content

Instantly share code, notes, and snippets.

View subhojit777's full-sized avatar

Subhojit Paul subhojit777

View GitHub Profile
@subhojit777
subhojit777 / prepare-commit-msg.sh
Last active October 14, 2020 12:57 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/bash
# JIRA branch name - JIRAPRJ-777-short-desc
# Prepended commit message - JIRAPRJ-777:<space>
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
@subhojit777
subhojit777 / playground.rs
Created July 18, 2018 05:57 — forked from rust-play/playground.rs
Code shared from the Rust Playground
extern crate regex;
use regex::RegexBuilder;
use std::fmt::Write;
fn main() {
let query = "is";
let mut query_as_string = String::from("");
if true {