Skip to content

Instantly share code, notes, and snippets.

Avatar

Sophia Parafina spara

  • Count Down City
  • Twitter @spara
View GitHub Profile
@spara
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
spara / qgis_script_template.py
Created Sep 29, 2011
QGIS standalone python script template for OSX
View qgis_script_template.py
# 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/QGIS.app/Contents/Resources/python
# export PATH="/Applications/QGIS.app/Contents/MacOS/bin:$PATH"
from qgis.core import *
import sys
import os
@spara
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
delay(600);
tone(10, 329.63, 300);
@spara
spara / docker-ce-17.05-ubuntu-16.04-LTS-install.md
Last active May 18, 2021
Install Docker CE 17.05 and Compose 1.13.0
View docker-ce-17.05-ubuntu-16.04-LTS-install.md

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
spara / Tech Ethics Reading List.md
Last active Dec 18, 2020
Casey Fiesler, PhD, JD, geekD Tech Ethics Reading List
View Tech Ethics Reading List.md

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
spara / convert_vmdk.sh
Created Aug 11, 2012
convert vmdk to ova
View convert_vmdk.sh
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
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
spara / geoserver-ubuntu-ec2-install.sh
Created Mar 23, 2011
Installs GeoServer on Canonical ubuntu EC2 AMI, GeoServer is proxied through apache
View geoserver-ubuntu-ec2-install.sh
#
# 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 http://us.archive.ubuntu.com/ubuntu/ maverick multiverse' >> /etc/apt/sources.list"
View Rails_on_Docker.md

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.