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: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: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: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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Es@@WKkB@e@EEQAIG{@qAm@a@MSKE@Kd@yACHC@AILaATu@p@uADYHUTgALYj@oBRgA\sAFEFBHM?I@H`@d@DTFLB
}|hyHvta@@XHw@Uu@]k@Ri@BYHUE}@_B_BKe@IMh@e@?jDC\@VDf@\h
@davipatti
davipatti / TensorFlow-GPU-Mac.md
Last active July 30, 2018 03:05
Compiling TensorFlow with GPU support on Mac

Compiling TensorFlow with GPU support on Mac

Compiling TensorFlow on a mac with GPU is no longer officially supported. But it's still possible and a lot of fun(!) to compile.

I mainly followed this repo:

Here is a run down of everything I did: