Skip to content

Instantly share code, notes, and snippets.

View cmcculloh-kr's full-sized avatar

Christopher McCulloh cmcculloh-kr

View GitHub Profile
@cmcculloh-kr
cmcculloh-kr / branch-jira-bookmarklet.js
Last active November 1, 2023 14:07
Bookmarklet for creating Github branch names from JIRA tickets.
javascript: (function() {
const generateBranchName = () => {
const title = document.querySelector("title").innerText;
const issueCodeMatch = title.match(/\[(.*)\]/);
if (!issueCodeMatch) return;
let issueDescription = title.replace(/\[.*]\s/, "");
const parts = issueDescription.split(" - ");
issueDescription = parts.slice(0, parts.length - 1).join(" - ");
issueDescription = issueDescription.replace(/[^a-zA-Z0-9\s-]/g, '');
# Make Tab autocomplete regardless of filename case
set completion-ignore-case on
# List all matches in case multiple possible completions are possible
set show-all-if-ambiguous on
# Immediately add a trailing slash when autocompleting symlinks to directories
set mark-symlinked-directories on
# Use the text that has already been typed as the prefix for searching through
javascript: (function() {
var title = document.querySelectorAll('title')[0].textContent;
var repoAuthor = document.querySelectorAll('h1.entry-title > .author > a')[0].textContent;
var repoName = document.querySelectorAll('h1.entry-title > strong > a')[0].textContent;
var issueNumber = document.querySelectorAll('.gh-header-number')[0].textContent;
var titleStripped = title.replace('·', '');
issueNumber = issueNumber.replace('#', '');
titleStripped = titleStripped.replace(/\./g, '');
titleStripped = titleStripped.replace(/·/g, '');
titleStripped = titleStripped.replace(/%C2%B7/g, '');

Your Vision

What is a vision?

Your vision answers the question "What do I want?" A clear vision help you communicate why you're here and what impact you're going to have.

Your vision should be aligned with the company vision, with your manager's V2MOM, and it should be personal. It should be an honest reflection of your own vision for your own work.

If you manage a team, it should be reflective of the purpose of the team and your collective impact.

@dergachev
dergachev / GIF-Screencast-OSX.md
Last active July 17, 2024 14:20
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: