Skip to content

Instantly share code, notes, and snippets.

View ksclarke's full-sized avatar
🥑
Perpetual rambler, rarely at ease

Kevin S. Clarke ksclarke

🥑
Perpetual rambler, rarely at ease
View GitHub Profile
@ksclarke
ksclarke / blender.txt
Created May 14, 2022 22:10
Tips for working with Blender
# Can convert the ffmpeg movie (mkv) format to animated GIF (reducing the resolution in the process)
ffmpeg -i 0001-0124.mkv -vf scale=1280:720,setsar=1:1 skipping-mushroom-1.gif
@ksclarke
ksclarke / pr.md
Created October 22, 2016 16:52 — 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:

#!/bin/sh
#
# Use posixregex CLI tool from: https://github.com/syzdek/dmstools/blob/master/src/posixregex.c
RE_IPV4="((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])"
posixregex -r "^(${RE_IPV4})$" \
127.0.0.1 \
10.0.0.1 \
192.168.1.1 \