Skip to content

Instantly share code, notes, and snippets.

View nedgonaes's full-sized avatar

nedgonaes nedgonaes

  • Cornell University
  • Ithaca, NY
View GitHub Profile
@nedgonaes
nedgonaes / taf.py
Created September 4, 2019 02:29
very rough cut at finding airports in a list that have better than 1000/2 weather.
#!/usr/bin/env python3
import urllib.request
import xml.etree.ElementTree as ET
from datetime import datetime,timedelta
from collections import namedtuple
import math
#NOTE: TAKE THIS AS AN INPUT
@nedgonaes
nedgonaes / bootstrap.sh
Last active February 17, 2016 22:52
script to setup an mpi cluster node
#!/bin/bash
#install openmpi stuff
yum install gcc -y
yum install openmpi-devel -y
#add new user cluster
useradd cluster
#copy credentials to cluster users
--- build_detect_platform 2013-01-07 16:07:29.000000000 -0500
+++ build_detect_platform 2013-02-16 14:28:06.000000000 -0500
@@ -178,13 +178,6 @@
PLATFORM_LIBS="$PLATFORM_LIBS -lsnappy"
fi
- # Test whether tcmalloc is available
- $CXX $CXXFLAGS -x c++ - -o /dev/null -ltcmalloc 2>/dev/null <<EOF
- int main() {}
-EOF
hyperdex_binary_test_SOURCES = \
binary-test.cc
hyperdex_binary_test_LDADD = \
libhyperclient.la \
-lrt
hyperdex_binary_test_LDFLAGS = \
-no-install
hyperdex_binary_test_CPPFLAGS = \
$(E_CFLAGS) \
$(CPPFLAGS)
@nedgonaes
nedgonaes / hack.sh
Created April 15, 2012 02:21 — forked from hussam/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#