Skip to content

Instantly share code, notes, and snippets.

View sagarjauhari's full-sized avatar
💭
building interesting things!

Sagar Jauhari sagarjauhari

💭
building interesting things!
View GitHub Profile
@sagarjauhari
sagarjauhari / llamafile_llava_local.sh
Created November 30, 2023 16:48
Run Llamafile with LLaVA locally
# Run Llamafile with LLaVA locally
# Source: https://news.ycombinator.com/item?id=38465645
# 1. Download the 4.26GB llamafile-server-0.1-llava-v1.5-7b-q4 file from https://huggingface.co/jartine/llava-v1.5-7B-GGUF/blob/main/...:
wget https://huggingface.co/jartine/llava-v1.5-7B-GGUF/resolve/main/llamafile-server-0.1-llava-v1.5-7b-q4
# 2. Make that binary executable, by running this in a terminal:
chmod 755 llamafile-server-0.1-llava-v1.5-7b-q4
# 3. Run your new executable, which will start a web server on port 8080:
@sagarjauhari
sagarjauhari / template.json
Last active October 27, 2020 23:32
ECS Template
[
{
"secrets": [
{
"name": "DATABASE_PASSWORD",
"valueFrom": "arn:aws:ssm:${region}:${account}:parameter/${environment}/${appName}/DATABASE_PASSWORD"
}
]
}
]
@sagarjauhari
sagarjauhari / output.txt
Created May 18, 2019 23:51
Start a shell on a fresh image
❯ dc run dev sh
Creating network "app_default" with the default driver
Creating app_db_1 ... done
#
# Show live stats
alias ds='while true; do TEXT=$(docker stats --no-stream $(docker ps --format "{{.Names}}")); sleep 0.1; clear; echo "$TEXT"; done'
# Kill all containers
alias dk='docker kill $(docker ps -q)'
# Docker compose
alias dc='docker-compose'
@sagarjauhari
sagarjauhari / Dockerfile
Created May 18, 2019 23:43
Initial dockerfile
FROM golang
@sagarjauhari
sagarjauhari / docker-compose.yml
Created May 18, 2019 23:42
docker-compose with database
version: '3'
services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
dev:
build: .
@sagarjauhari
sagarjauhari / docker-compose.yml
Created May 18, 2019 23:36
Initial docker-compose.yml
version: '3'
services:
dev:
build: .
@sagarjauhari
sagarjauhari / hello.py
Last active July 19, 2018 20:48
Diff Test
class Animal:
def name(self):
return "Simba"
@sagarjauhari
sagarjauhari / keybase.md
Created February 26, 2015 23:15
keybase.md

Keybase proof

I hereby claim:

  • I am sagarjauhari on github.
  • I am sagj (https://keybase.io/sagj) on keybase.
  • I have a public key whose fingerprint is 77DB 9DD0 4DDA 3BF1 EA65 A3DB D5A9 2EB1 D655 A47A

To claim this, I am signing this object:

Add the following to your Gemfile:

gem 'heroku-api'

Put heroku.rb in your jobs folder and add the contents of heroku.html into your layout.