Skip to content

Instantly share code, notes, and snippets.

View esmarkowski's full-sized avatar

Spencer Markowski esmarkowski

View GitHub Profile
@esmarkowski
esmarkowski / ml-compose.yml
Created March 30, 2024 23:59
OpenSearch Docker Compose
version: '3'
services:
opensearch-node1:
image: opensearchproject/opensearch:latest
container_name: opensearch-node1
ulimits:
memlock:
soft: -1
hard: -1
nofile:
import torch
from torch import autocast
from diffusers import StableDiffusionPipeline
model_id = "CompVis/stable-diffusion-v1-4"
device = "cuda"
pipe = StableDiffusionPipeline.from_pretrained(model_id, use_auth_token=True)
pipe = pipe.to(device)

Keybase proof

I hereby claim:

  • I am esmarkowski on github.
  • I am spemar (https://keybase.io/spemar) on keybase.
  • I have a public key ASAS8nhvNwdkNEFoDrmBFa7sAoz7S92p0IeWfQyNrGarYQo

To claim this, I am signing this object:

require 'smartcard'
stop = false
until stop
begin
context = Smartcard::PCSC::Context.new
if context.valid?
readers = context.readers
if readers.empty?
@esmarkowski
esmarkowski / gulpfile.json
Created January 22, 2016 00:52
Bootstrap Themes in Rails
var gulp = require('gulp')
var path = require('path')
var less = require('gulp-less')
var autoprefixer = require('gulp-autoprefixer')
var sourcemaps = require('gulp-sourcemaps')
var minifyCSS = require('gulp-minify-css')
var rename = require('gulp-rename')
var concat = require('gulp-concat')
var uglify = require('gulp-uglify')
var connect = require('gulp-connect')
[{"age_range":"18-24","continent":"north_america","count":"131","country":"CA","gender":"female"},{"age_range":"13-17","continent":"north_america","count":"457","country":"US","gender":"female"},{"age_range":"13-17","continent":"north_america","count":"124","country":"US","gender":"male"},{"age_range":"18-24","continent":"north_america","count":"2498","country":"US","gender":"female"},{"age_range":"18-24","continent":"north_america","count":"1692","country":"US","gender":"male"},{"age_range":"25-34","continent":"north_america","count":"1631","country":"US","gender":"female"},{"age_range":"25-34","continent":"north_america","count":"1093","country":"US","gender":"male"},{"age_range":"35-44","continent":"north_america","count":"593","country":"US","gender":"female"},{"age_range":"35-44","continent":"north_america","count":"346","country":"US","gender":"male"},{"age_range":"45-54","continent":"north_america","count":"265","country":"US","gender":"female"},{"age_range":"45-54","continent":"north_america","count":
@esmarkowski
esmarkowski / README.md
Last active August 29, 2015 14:06 — forked from mbostock/.block

This chart shows a histogram of a log-normal distribution of time durations. The data is randomly generated: each value is a number representing a duration measured in minutes. The values are then binned at regular intervals using D3’s histogram layout. A custom tick format for the x-axis converts these numbers to dates before passing them through a d3.time.format. The x-axis uses a linear scale, such that the tick values appear in-between bars; this provides better indication that each bar represents the count of values between its surrounding tick values.

See also this histogram of an Irwin–Hall distribution.

@esmarkowski
esmarkowski / .rubberband
Created May 30, 2013 03:11
1. Place elastic in bin/elastic and chmod +x 2. Place boot.elastic.rb in config/boot.elastic.rb 3. Place .rubberband in config/.rubberband To run > bin/elastic @rubberband.search("body:goat")
servers:
- host: localhost
port: 9500
@esmarkowski
esmarkowski / README.md
Last active December 16, 2015 22:29
Locutus Block Size Results

This scatterplot is constructed from adjusting block size, block rows in Locutus.

Locutus was given a 1000x1000 DOM element to parse whose content changed by 25%. 190 tests were performed and each test utilizes 4 web workers to process the diff.

  • Block Size is represented by Color and Y axis.

  • Block Rows (or how many rows of blocks a worker is assigned) is shown by Radius.

  • Duration represents the time each test took to complete and is displayed in seconds.

@esmarkowski
esmarkowski / logrotate.conf
Created July 28, 2012 21:38
Add this to /etc/logrotate.conf
/home/deploy/missouriwines/shared/log/*.log {
weekly
missingok
rotate 4
compress
delaycompress
notifempty
copytruncate
}