Skip to content

Instantly share code, notes, and snippets.

View davipatti's full-sized avatar

David Pattinson davipatti

  • UW-Madison
  • New York, USA
View GitHub Profile
@davipatti
davipatti / gist:7e76b0980888cc266537
Created August 7, 2014 15:07
andante compilation error
dhcp-172-17-187-12:Andante david$ make
gcc -I. -I../../lm -I../liborc -c -o alloc_structures.o alloc_structures.c
gcc -I. -I../../lm -I../liborc -c -o andante.o andante.c
gcc -I. -I../../lm -I../liborc -c -o assign_radii.o assign_radii.c
gcc -I. -I../../lm -I../liborc -c -o borrow_chi.o borrow_chi.c
gcc -I. -I../../lm -I../liborc -c -o build_stuff.o build_stuff.c
gcc -I. -I../../lm -I../liborc -c -o check_rotamers.o check_rotamers.c
gcc -I. -I../../lm -I../liborc -c -o combo_utility.o combo_utility.c
gcc -I. -I../../lm -I../liborc -c -o create_rotamer_library.o create_rotamer_library.c
gcc -I. -I../../lm -I../liborc -c -o d5_util1.o d5_util1.c
@davipatti
davipatti / gist:25142a01442232a76ae2
Created August 8, 2014 10:31
another andante compilation error
dhcp-172-17-187-12:Andante david$ make
gcc -I. -I../../lm -I../liborc -c -o alloc_structures.o alloc_structures.c
gcc -I. -I../../lm -I../liborc -c -o andante.o andante.c
gcc -I. -I../../lm -I../liborc -c -o assign_radii.o assign_radii.c
gcc -I. -I../../lm -I../liborc -c -o borrow_chi.o borrow_chi.c
gcc -I. -I../../lm -I../liborc -c -o borrowed_clashes.o borrowed_clashes.c
gcc -I. -I../../lm -I../liborc -c -o build_stuff.o build_stuff.c
gcc -I. -I../../lm -I../liborc -c -o check_rotamers.o check_rotamers.c
gcc -I. -I../../lm -I../liborc -c -o clash_check.o clash_check.c
gcc -I. -I../../lm -I../liborc -c -o combo_utility.o combo_utility.c
@davipatti
davipatti / gist:929321ca3351c522a3d9
Created August 6, 2014 14:45
amber make errors
1 warning generated.
mv -f .deps/tinyxmlparser.Tpo .deps/tinyxmlparser.Plo
/bin/sh ../../libtool --tag=CXX --mode=link g++ -DNDEBUG -DUSE_TINYXML -DTIXML_USE_STL -DC99_OK -O2 -fno-common -DHAVE_ZLIB -framework Accelerate -static -o libtinyxml.la -rpath /Users/david/amber12/lib tinyxml.lo tinyxmlerror.lo tinystr.lo tinyxmlparser.lo -lz
libtool: link: ar cru .libs/libtinyxml.a tinyxml.o tinyxmlerror.o tinystr.o tinyxmlparser.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libtinyxml.a(tinystr.o) has no symbols
libtool: link: ranlib .libs/libtinyxml.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libtinyxml.a(tinystr.o) has no symbols
libtool: link: ( cd ".libs" && rm -f "libtinyxml.la" && ln -s "../libtinyxml.la" "libtinyxml.la" )
Making all in Log
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/Users/david/amber12/AmberTools/src/boost-1.38.
@davipatti
davipatti / gist:7d51f17af7c06ce09f45
Last active February 21, 2016 23:13
colour alphabet translator
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
#!/bin/bash
min=60
say "Testing"
sleep 1
say "Testing"
sleep 1
-I: Adding /Users/david/bin/amber14/dat/leap/prep to search path.
-I: Adding /Users/david/bin/amber14/dat/leap/lib to search path.
-I: Adding /Users/david/bin/amber14/dat/leap/parm to search path.
-I: Adding /Users/david/bin/amber14/dat/leap/cmd to search path.
-s: Ignoring startup file: leaprc
-f: Source tleapIn.
Welcome to LEaP!
Sourcing: ./tleapIn
----- Source: /Users/david/bin/amber14/dat/leap/cmd/leaprc.ff12SB
@davipatti
davipatti / csv headers
Last active January 30, 2018 21:05
Run internet speed test every 20 mins. Log the results and plot
/usr/local/bin/speedtest-cli --csv > ~/.speedtest.log.csv
@davipatti
davipatti / install_pymol.sh
Created April 26, 2018 11:17
Build pymol from source on mac
#!/bin/bash -e
cd /tmp
wget "https://sourceforge.net/projects/pymol/files/pymol/2/pymol-v2.1.0.tar.bz2"
tar -xf pymol-v2.1.0.tar.bz2
cd pymol
mkdir -p ~/bin/pymol/modules
python2.7 setup.py build install \
--install-scripts=~/bin/pymol \
david ~> vf new -p python3 pystart-env
Running virtualenv with interpreter /usr/local/bin/python3
Using base prefix '/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6'
New python executable in /Users/david/.virtualenvs/pystart-env/bin/python3.6
Also creating executable in /Users/david/.virtualenvs/pystart-env/bin/python
Installing setuptools, pip, wheel...done.
(pystart-env) david ~> pip install pystart
Collecting pystart
Collecting validate-email>=1.3 (from pystart)
Requirement already satisfied: pip>=9.0.1 in ./.virtualenvs/pystart-env/lib/python3.6/site-packages (from pystart) (10.0.1)
@davipatti
davipatti / custom.css
Last active June 12, 2018 12:23
jupyter notebook theme
@font-face {
font-family: "Roboto Mono";
font-weight: normal;
font-style: normal;
src: local('"Roboto Mono"'), url('fonts/roboto.ttf') format('truetype');
}
div.CodeMirror {
font-family: "Roboto Mono", monospace, monospace;
}