Skip to content

Instantly share code, notes, and snippets.

View spara's full-sized avatar

Sophia Parafina spara

View GitHub Profile
@spara
spara / Llama2ColorAgent.ipynb
Created January 21, 2024 16:37 — forked from aaronblondeau/Llama2ColorAgent.ipynb
Demos a Llama 2 agent
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spara
spara / Mussels in miso butter sauce.md
Last active January 28, 2022 01:58
mussels recipe

Mussels in miso butter sauce

Ingredients

Mussels in miso butter

  • 2 cups frozen mussels (shelled)
  • 2 jalapeños
  • 1 cup enoki mushrooms
  • 1 cup wood ear mushrooms
  • 1 stalk of green onion
@spara
spara / Tech Ethics Reading List.md
Last active December 18, 2020 01:54
Casey Fiesler, PhD, JD, geekD Tech Ethics Reading List

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

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.

===

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
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 July 13, 2017 16:52 — forked from mlconnor/elastic_beanstalk_external_sessions.md
Analaysis and recommendation for externalizing session in Elastic Beanstalk using Tomcat and memcached.

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 July 10, 2017 22:45
building a weblogic 12.2.1.2 generic container in OSX

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 August 9, 2023 09:04
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