Skip to content

Instantly share code, notes, and snippets.

View mdlinville's full-sized avatar

Matt Linville mdlinville

View GitHub Profile
@mdlinville
mdlinville / release_1.12.md
Created July 11, 2018 17:38
Release process for 1.12

Release meister docs

This is a work in progress and is pending agreement on an integration-branch workflow. You don't need all of that stuff in place to get started, though.

Early steps

  1. Create 1.12 working branch (I propose dev-1.12 instead of release-1.12) locally, based on master. Push it to upstream.
  2. First PR: Update config.toml to show 1.12 as the current version and add
@mdlinville
mdlinville / pre-hugo-pr.md
Last active May 21, 2018 17:34
Process for fixing pre-Hugo PRs
  1. Add user's remote to your local system. Scroll down to the bottom of the conversation view in Github and look for text like: Add more commits by pushing to the add-path-type branch on xlgao-zju/website.

    The first bolded item is the branch name and the second bolded item is the repo name. These are each links. Copy the URL for the second link. Go to the command line and add the remote:

    git remote add REMOTENAME <URL>

    It doesn't really matter what you call the remote.

@mdlinville
mdlinville / bash_profile.sh
Last active September 15, 2018 21:46
Bash profile debugging
# Change these to where your git-completion.bash and git-prompt.sh live
# If you don't have them locally, get them from:
# https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
# https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
GIT_COMPLETION_FILE="/usr/local/git/current/share/git-core/git-completion.bash"
GIT_PROMPT_FILE="/usr/local/git/current/share/git-core/git-prompt.sh"
# Git tab-completion
if [ -f ${GIT_COMPLETION_FILE} ]; then
source "${GIT_COMPLETION_FILE}"
@mdlinville
mdlinville / .bash_profile
Last active April 13, 2018 18:21
Git auto-complete and prompt stuff for .bash_profile
# Paste the below into your .bash_profile, make tweaks, and restart your terminal
# Change these to where your git-completion.bash and git-prompt.sh live
# If you don't have them locally, get them from:
# https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
# https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
GIT_COMPLETION_FILE="/usr/local/git/current/share/git-core/git-completion.bash"
GIT_PROMPT_FILE="/usr/local/git/current/share/git-core/git-prompt.sh"
@mdlinville
mdlinville / test_yaml.md
Created January 26, 2018 17:32
Test yaml markdown
apiVersion: v1
kind: Namespace
metadata:
 name: blue
---
 apiVersion: v1
 kind: Namespace
 metadata:
 name: orange
@mdlinville
mdlinville / .bash_profile
Created November 30, 2017 23:59
Make your Git setup better
# Add this stuff at the end of your .bash_profile file
# Git auto-completion support
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
# Put git branch into prompt
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
# This will make the prompt look like [user@host](BRANCHNAME)$
# and have a * if there are dirty changes, + if there are clean changes,
# Get basic configs in a layer for later
FROM docs/docker.github.io:docs-builder AS builder
# Get archives, remove the temporary index
FROM docs/docker.github.io:docs-base AS docs_base
RUN rm /usr/share/nginx/html/index.html
# Get the current docs from the checked out branch
# md_source will contain a directory for each archive
COPY . md_source