Skip to content

Instantly share code, notes, and snippets.

View jakebrinkmann's full-sized avatar

Jake Brinkmann jakebrinkmann

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/tcsh
setenv PYTHONPATH $STORAGE/.gdalpy/lib/python2.7/site-packages
alias conda $STORAGE/.gdalpy/bin/conda
alias python '$STORAGE/.gdalpy/bin/python2.7'
conda install -c https://conda.binstar.org/jevans hdf4
conda install -c https://conda.binstar.org/jevans geos
conda install -c https://conda.binstar.org/jevans gdal
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakebrinkmann
jakebrinkmann / Calculate_working_mean.ipynb
Created September 17, 2015 13:10
Example for Nischal
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakebrinkmann
jakebrinkmann / hyperion_acqs.png
Last active September 26, 2015 02:20
Working with USGS Machine-to-machine interface
hyperion_acqs.png
@jakebrinkmann
jakebrinkmann / check_github_status.sh
Created November 23, 2016 22:58
Query all public repos in an account and their modified ("pushed_at") times. To make a pretty table, run as: `bash check_github_status.sh | column -t`
while read p; do # For each Github account
# use auth to avoid getting locked out for too many requests per hour :)
CURL='curl -s -u username:password'
# List all repos within an account
REPOURLS=$($CURL $p | grep '"url": "https://api.github.com/repos' | sed 's/.*"\(https.*\)",/\1/')
for URL in $REPOURLS; do
# Get all the info
REPOINFO=$($CURL $URL)
# Find the "full name", including organization
REPONAME=( $(echo "$REPOINFO" | grep full_name | sed 's/.*:\s"\(.*\)",/\1/') )
@jakebrinkmann
jakebrinkmann / Vagrantfile
Created December 1, 2016 22:00
CentOS7 Vagrantfile with access to guest port (apache) and Windows shared folder (/vagrant_dropbox)
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below.
Vagrant.configure("2") do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "centos/7"
@jakebrinkmann
jakebrinkmann / setup-dd-wrt-router.md
Last active December 7, 2016 03:21
Setup my wireless router (Linksys WRT54GL) at home (with DD-WRT firmware)
  1. To do a 30-30-30 reset you must push the reset button with your router powered on. Hold it for 30 seconds with the router powered on. STILL holding it, pull the power cord for 30 seconds. Still holding it, plug the power back into your router and continue to hold the reset button for 30 more seconds. You will have held the button for a full 90 seconds without releasing it.
  2. Set a static IP on your computer to 192.168.1.7. Subnet mask should be 255.255.255.0.
  3. Connect the lan cable from your computer to a LAN port of your router. Make sure your router is plugged in. Nothing should be connected to your computer or the router except the lan cable between them. Turn your firewall and any wireless computer connections OFF.
  4. Power cycle the router (uplug the power from the router for 30 seconds and then plug it back in)
  5. Open your browser to 192.168.1.1 by putting that in the browser address window of your browser. You should open the dd-wrt webgui
  6. Leave the username blank and enter "admin" as the pa