Skip to content

Instantly share code, notes, and snippets.

View douglasjacobsen's full-sized avatar

Doug Jacobsen douglasjacobsen

View GitHub Profile
@douglasjacobsen
douglasjacobsen / pr.md
Created April 17, 2018 20:02 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@douglasjacobsen
douglasjacobsen / snap-knl.inp
Created May 10, 2017 17:10
SNAP KNL Cache Mode Input Deck
! Input from namelist
&invar
nthreads=1
nnested=1
npey=8
npez=8
ndimen=3
nx=720
lx=72.0
ny=16
import sys, os, glob, shutil, numpy
from random import *
from scipy.spatial import Delaunay
import matplotlib.pyplot as plt
nCells = 500
points = numpy.zeros((nCells, 2))
seed()

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@douglasjacobsen
douglasjacobsen / MPAS-Bug Template
Last active December 19, 2015 00:20
Template information for a bug report in MPAS
Version of MPAS (From source, in README.md, core's Registry.xml file, and output file):
=======================================================================================
Description of issue:
======================
Platform used (System Specs, as well as name, and operating system if possible):
================================================================================
Compiler used (With version):