Skip to content

Instantly share code, notes, and snippets.

View mattwthompson's full-sized avatar
💭
👋

Matt Thompson mattwthompson

💭
👋
  • Open Molecular Software Foundation
  • Iowa City, IA
  • 15:03 (UTC -05:00)
View GitHub Profile
@tcmoore3
tcmoore3 / povray-render.vmd
Last active April 19, 2018 17:08
VMD command for rendering images with POV-Ray with a transparent background
# this command makes a POV-Ray 3 script and then renders it with povray, with the following settings:
# use the same aspect ratio as the screen (+W%w and +H%h)
# write targa file (+FT) with filename + ".tga" (-O%s.tga)
# make background transparent (+UA)
# use anti-aliasing (+A)
# make it so that you can kill povray during rendering (+X)
render POV3 vmdscene.pov povray +W%w +H%h -I%s -O%s.tga +X +A +FT +UA
# this is a nice command, but it's tedious to come here and copy it each time
# to get around this, i've written a tcl procedure that does this, and
@nepsilon
nepsilon / git-change-commit-messages.md
Last active June 2, 2024 23:31
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

@mattratleph
mattratleph / vimdiff.md
Last active June 21, 2024 15:33 — forked from roothybrid7/vimdiff_cheet.md
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)