Skip to content

Instantly share code, notes, and snippets.

Avatar

Sophia Parafina spara

  • Count Down City
  • Twitter @spara
View GitHub Profile
@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

View pwk_lab_notes.md

Connecting to the web UI

  • link does not include port, and does not work

Setup tell student to explicitly use their docker hub username instead of

In the first terminal, set an environment variable for your Docker Hub user name. It can be the same user name that you used to log in to the terminals on this site.

===

View Dockerfile_rhel7-tomcat
FROM registry.access.redhat.com/rhel7/rhel
# Register container to access repositories
RUN subscription-manager register --username lenswipe2000 --password docker4thewin! --auto-attach
RUN yum-config-manager --disable rhel-7-server-rt-beta-rpms
# Install prepare infrastructure
RUN yum -y update && \
yum -y install wget && \
yum -y install tar
View atsea error
appserver_1 | 2017-07-13 22:02:44.336 INFO 1 --- [ main] rmationExtractorJdbcDatabaseMetaDataImpl : HHH000262: Table not found: orders
database_1 | ERROR: column "product_id" contains null values
database_1 | STATEMENT: alter table product add column product_id int8 not null
appserver_1 | 2017-07-13 22:02:44.358 WARN 1 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
appserver_1 | 2017-07-13 22:02:44.359 INFO 1 --- [ main] com.zaxxer.hikari.pool.HikariPool : Hikar
@spara
spara / elastic_beanstalk_external_sessions.md
Created Jul 13, 2017 — forked from mlconnor/elastic_beanstalk_external_sessions.md
Analaysis and recommendation for externalizing session in Elastic Beanstalk using Tomcat and memcached.
View elastic_beanstalk_external_sessions.md

Session Management in an Autoscaling Environment

Problem Statement

User sessions in J2EE and LAMP stacks have traditionally been handled in memory by the application server handling the user request. Because of that, load balancers have been configured to use sticky sessions. By sticky sessions we mean that once the user has visited the site, they will be assigned an app server and will return to that server for subsequent requests. The load balancers typically handle that by referencing the users session cookie.

Elastic cloud environments differ from traditional server configurations in that they have a variable number of servers based on traffic loads whereas traditional configurations had a fixed number of servers. When traffic volumes decline it is necessary to vaporize servers. In doing so, we would lose user sessions (essentially forcing a logout) unless we come up with a new strategy for session management.

A new approach

After much research, it is clear that the best

@spara
spara / install_wl-12.2.1.2.md
Last active Jul 10, 2017
building a weblogic 12.2.1.2 generic container in OSX
View install_wl-12.2.1.2.md

Custom Weblogic build to use with this tutorial

  1. install md5sum equivalent:
brew install md5sha1sum
  1. Download store/oracle/serverjre:8 container
docker pull store/oracle/serverjre:8
@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 / 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 / atsea_build_script.sh
Created May 11, 2017
Bash build script for AtSea application
View atsea_build_script.sh
#!/bin/bash
docker-compose down
mkdir -p app/react-app/node_modules
npm install --prefix app/react-app
npm run build --prefix app/react-app
rm -r app/static; mv app/react-app/build app/static
mvn package
cp -f target/AtSea-0.0.1-SNAPSHOT.jar app/
docker-compose build
docker-compose u