Skip to content

Instantly share code, notes, and snippets.

@peterfpeterson
peterfpeterson / Release_3.4.1_Checklist.md
Last active September 2, 2015 17:34
Mantid v3.4.1 release checklist
@peterfpeterson
peterfpeterson / README.md
Created June 26, 2015 17:57
MoleQueue simple test
@peterfpeterson
peterfpeterson / README.md
Last active August 29, 2015 14:16
abrt instructions

This is information gleaned from various places (some are even linked) for using abrt. I assume you have installed abrt-cli and have the abrtd daemon running.

For things that aren't in /usr/ you will need to enable handling of unpackaged software. In short

# sed -i 's/ProcessUnpackaged = no/ProcessUnpackaged = yes/' \
    /etc/abrt/abrt-action-save-package-data.conf

If, for some reason, you want to turn it off just flip the sed script

# sed -i 's/ProcessUnpackaged = yes/ProcessUnpackaged = no/' \
@peterfpeterson
peterfpeterson / README.md
Last active August 29, 2015 14:13
Paraview 3.98.1 opengl patch
@peterfpeterson
peterfpeterson / merge_conflicting.md
Last active August 29, 2015 14:11
Merging clang-format branch

Ticket #10813 touched most every file in Framework and will almost definitely create merge conflicts with any branch. Here is a recipe for dealing with those conflicts using feature/10698_DGS_normalization as an example.

Note: There is nothing to worry about until you publish/push your changes.

Recipe

  1. Fetch everything and make sure you are up-to-date. In other words, go to your git repository and git fetch -p -t

  2. Checkout your branch

@peterfpeterson
peterfpeterson / README.md
Last active August 29, 2015 14:08
72 in 7
@peterfpeterson
peterfpeterson / IDEformatting.md
Last active August 29, 2015 14:08
C++ IDE formatting options

Defaults are in bold. Lots of ones that are missing can be configured to use clang-format.

tool ver built-in options
clang-format 3.4 LLVM, Google, Chromium, Mozilla, WebKit
MS Visual Studio
QT Creator 3.2.1 Qt, GNU
Eclipse CDT K&R, BSD/Allman, GNU, Whitesmiths
XCode
@peterfpeterson
peterfpeterson / CacheHierarchy.md
Last active March 5, 2020 06:21
CPUS Have a Hierarchical Cache System
@peterfpeterson
peterfpeterson / fixwhitespace
Last active August 29, 2015 14:05
Two lines of sed in a bash script to fix up whitespace in files
#!/bin/bash
# remove all trailing whitespace
sed -i 's/[ \t]*$//' $1
# replace tabs with 4 places
sed -i 's/[\t]/ /g' $1
@peterfpeterson
peterfpeterson / load-to-blink1.sh
Created August 13, 2014 18:25
Script for updating blink1 based on system load.
#!/bin/bash
# Automatically change a Blink(1)'s color based on system load
# Using which for convenience at the moment
# blink1-tool needs to be in your PATH
BLINK1_TOOL=`which blink1-tool`
# How long to sleep between polling
# If this is too low and the system is borderline it would swap
# back and forth. Also, since we are watching the load, there is