Skip to content

Instantly share code, notes, and snippets.

View hurdad's full-sized avatar

Alexander Hurd hurdad

View GitHub Profile
@hurdad
hurdad / install_tensorflow_centos7.sh
Created December 26, 2018 03:36 — forked from thoolihan/install_tensorflow_centos7.sh
Install TensorFlow on CentOS7
sudo yum -y install epel-release
sudo yum -y install gcc gcc-c++ python-pip python-devel atlas atlas-devel gcc-gfortran openssl-devel libffi-devel
# use pip or pip3 as you prefer for python or python3
pip install --upgrade virtualenv
virtualenv --system-site-packages ~/venvs/tensorflow
source ~/venvs/tensorflow/bin/activate
pip install --upgrade numpy scipy wheel cryptography #optional
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0rc0-cp35-cp35m-linux_x86_64.whl
# or below if you want gpu, support, but cuda and cudnn are required, see docs for more install instructions
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.10.0rc0-cp35-cp35m-linux_x86_64.whl
@hurdad
hurdad / Makefile
Created September 29, 2018 23:29 — forked from misaka-10032/Makefile
CXX+NVCC Makefile template
# cxx
CXX := g++
CXXFLAGS :=
CXXFLAGS += -g
#CXXFLAGS += -O3
CXXFLAGS += -std=c++11
#CXXFLAGS += -fopenmp
# cc
CC := gcc
@hurdad
hurdad / gssapi-client.c
Created July 22, 2018 19:46 — forked from cbusbey/gssapi-client.c
GSSAPI "house"
// The GSSAPI security mechanism
#include <czmq.h>
#include <zmq.h>
void zsocket_set_gssapi_client(void * zocket)
{
int rc = zmq_setsockopt (zocket, ZMQ_GSSAPI_SERVICE_PRINCIPAL, "host", 4);
assert (rc == 0 || zmq_errno () == ETERM);

Disabling GNOME Tracker and Other Info

GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here: http://lduros.net/posts/tracker-sucks-thanks-tracker/

After discovering it chowing 2 cores, I decided to go about disabling it.

Directories

@hurdad
hurdad / center_geo.py
Created January 15, 2016 20:12 — forked from amites/center_geo.py
Center Geolocations
from math import cos, sin, atan2, sqrt
def center_geolocation(geolocations):
"""
Provide a relatively accurate center lat, lon returned as a list pair, given
a list of list pairs.
ex: in: geolocations = ((lat1,lon1), (lat2,lon2),)
out: (center_lat, center_lon)
"""
x = 0