Skip to content

Instantly share code, notes, and snippets.

View fgeorgatos's full-sized avatar
💭
I respond at random times - you have been warned ;-)

Fotis Georgatos fgeorgatos

💭
I respond at random times - you have been warned ;-)
View GitHub Profile
@rsperl
rsperl / Makefile #snippet
Last active April 17, 2024 23:02
self-documenting makefile with colors
SHELL=/bin/bash
# to see all colors, run
# bash -c 'for c in {0..255}; do tput setaf $c; tput setaf $c | cat -v; echo =$c; done'
# the first 15 entries are the 8-bit colors
# define standard colors
ifneq (,$(findstring xterm,${TERM}))
BLACK := $(shell tput -Txterm setaf 0)
RED := $(shell tput -Txterm setaf 1)
digraph graphname {
Primer3;
Java;
RNAz;
HPCBIOS_Bioinfo;
MUMmer;
MrBayes;
libxml2;
expat;
FSL;
@erikhazzard
erikhazzard / gist:6602963
Created September 18, 2013 00:53
Install CUDA, OpenCL, and PyOpenCL on EC2 with Ubuntu 12.04
#!/bin/bash
sudo apt-get update
sudo apt-get install gcc
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_5.5-0_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1204_5.5-0_amd64.deb
sudo apt-get update
sudo apt-get install cuda
export PATH=/usr/local/cuda-5.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib64:$LD_LIBRARY_PATH
sudo apt-get install opencl-headers python-pip python-dev python-numpy python-mako