Skip to content

Instantly share code, notes, and snippets.


Sophia Parafina spara

  • Count Down City
  • Twitter @spara
View GitHub Profile
spara /
Created May 9, 2017
find open ports using netstat
sudo netstat -plunt

Protip 1: Create a Non-root User

This is good advice particularly in Linux

RUN groupadd -r nodejs \
   && useradd -m -r -g nodejs nodejs

USER nodejs

Rails on Docker

Note: many issues listed below are not specific to Rails or to Ruby. They can also exist in other languages or web frameworks presenting similar challeneges. It is important to note these challenges, because they can impede the workflow and best practices taught and used by Rails practitioners.

Challenges and Remediations

Different versions of Ruby

There are many different versions of Ruby in use. This is very unique, in that, in the Python world, you have many versions, but almost everyone will be using the last 2.X or the last 3.X. In the Java world, most use cases are covered by the last two major releases of either Java released by Oracle or on OpenJDK.


sudo launchctl load -F /Library/LaunchDaemons/

sudo launchctl unload -F /Library/LaunchDaemons/


Keybase proof

I hereby claim:

  • I am spara on github.
  • I am spara ( on keybase.
  • I have a public key ASBSciQqQqGDXOL9fPAm8Fu13Pu-BgfkxcuNmxi6dVo0dwo

To claim this, I am signing this object:

spara / Makefile
Created Jul 19, 2016 — forked from yanofsky/Makefile
This is workflow for downloading, processing, and mosaicing Landsat scenes, as a Makefile
View Makefile
# lansatutil directory
LANDSAT = ~/landsat
# scenes to target
LC81220442016038LGN00 \
LC81220452016038LGN00 \
LC81210442014281LGN00 \
spara /
Last active May 16, 2016
useful docker commands

Stopping and removing containers and volumes

Note: If you get a "no space left on device error", you may have stopped containers taking up space.

Show all containers, running and stopped

docker ps -a

One liner to stop / remove all of Docker containers:

spara / Landsat 8 gdal processing
Last active Mar 28, 2017 — forked from andymason/Landsat 8 gdal processing
Added projection wrap correction
View Landsat 8 gdal processing
#! /bin/bash
# Convert Landsat 8 GeoTIFF images into RGB pan-sharpened JPEGs.
# Requirements:
# * gdal
# * convert (image-magick)
# Reference info:
spara /
Created Mar 15, 2016
install pyicu on el capitan
brew install icu4c
CFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib pip install pyicu
import json, codecs
topics = ["CoreOS",