Skip to content

Instantly share code, notes, and snippets.


Sophia Parafina spara

  • Count Down City
  • Twitter @spara
View GitHub Profile
spara / scraper.js
Created Sep 27, 2013
Example node scraper, runs as cronjob every 15 minutes
View scraper.js
var request = require('request');
cheerio = require('cheerio');
util = require('util');
http = require('http');
cronJob = require('cron').CronJob;
var data = new Array();
new cronJob('*/15 * * * * *', function(){
spara /
Created Sep 29, 2011
QGIS standalone python script template for OSX
# To run the script you must set PYTHONPATH and path to QGIS binaries
# on Linux: export PYTHONPATH=/qgispath/share/qgis/python
# on Windows: set PYTHONPATH=c:\qgispath\python
# on OSX: export PYTHONPATH=/Applications/
# export PATH="/Applications/$PATH"
from qgis.core import *
import sys
import os
spara / fur_elise.ino
Created Feb 15, 2012
Caterina's Fur Elise on Arduino
View fur_elise.ino
void setup() {
pinMode(10, OUTPUT);
void loop() {
// play e4
tone(10, 329.63, 300);
spara /
Last active May 18, 2021
Install Docker CE 17.05 and Compose 1.13.0

Installing Docker CE Edge for Ubuntu Linux

Remove previous versions of Docker and Compose

sudo apt-get purge docker-compose
sudo apt-get purge docker-ce

Install dependencies

spara / Tech Ethics Reading
Last active Dec 18, 2020
Casey Fiesler, PhD, JD, geekD Tech Ethics Reading List
View Tech Ethics Reading

Tech Ethics Reading List

suggested books from Dr. Casey Fiesler via musical twitter

  • Algorithms of Oppression

    by Safiya Umoja Noble

    A revealing look at how negative biases against women of color are embedded in search engine results and algorithms

spara /
Created Aug 11, 2012
convert vmdk to ova
spara ~/Downloads$ /Applications/VMware\ OVF\ Tool/ovftool ./ubuntu-11.10-64bit-CartoDB-vmdk/cartodbUbuntu1110-64bit.vmx ./cartodb.ova
Opening VMX source: /Users/sparafina/Downloads/ubuntu-11.10-64bit-CartoDB-vmdk/cartodbUbuntu1110-64bit.vmx
Opening OVA target: /Users/sparafina/Downloads/cartodb.ova
Writing OVA package: /Users/sparafina/Downloads/cartodb.ova
Disk Transfer Completed
Completed successfully
spara / Dockerfile
Created Jun 6, 2017
Dockerfile for AtSea Shop Sample Application
View Dockerfile
FROM node:latest AS storefront
WORKDIR /usr/src/atsea/app/react-app
COPY react-app/package.json .
RUN npm install
COPY . /usr/src/atsea/app
RUN npm run build
FROM maven:latest AS appserver
WORKDIR /usr/src/atsea
COPY pom.xml .
spara /
Created Mar 23, 2011
Installs GeoServer on Canonical ubuntu EC2 AMI, GeoServer is proxied through apache
# install Geoserver on Ubuntu Maverick 10.10
# note: Geoserver is proxied through apache so port 8080 is not used
# @spara 11/15/10
# setup sources
sudo sh -c "echo ' ' >> /etc/apt/sources.list"
sudo sh -c "echo 'deb maverick multiverse' >> /etc/apt/sources.list"

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.