Skip to content

Instantly share code, notes, and snippets.

@AnindyaPal
AnindyaPal / custom-gpt-llama-hyperstack
Created August 20, 2024 10:39 — forked from iam-veeramalla/custom-gpt-llama-hyperstack
Setup your own custom GPT using openwebui on Hyperstack
Step 1: Create a VM
- Create an instance on Hyperstack platform (They have a huge variety of GPU instances)
OS Image - Ubuntu Server 22.04 LTS R535 CUDA 12.2
Flavor Details - A100-80G-PCIe
Step 2: Run resources on the VM
- Install Ollama
@AnindyaPal
AnindyaPal / LiveDataSharedPreferences.kt
Created November 21, 2018 09:41 — forked from er-abhishek-luthra/LiveDataSharedPreferences.kt
LiveData implementation of SharedPreferences in Android. Get value associated in SharedPreferences corresponding to a particular key with an additional ability to observe changes made to shared preferences using LiveData
package com.chargingwatts.livedata.sharedpref;
import android.content.SharedPreferences
import androidx.lifecycle.LiveData
abstract class SharedPreferenceLiveData<T>(val sharedPrefs: SharedPreferences,
val key: String,
val defValue: T) : LiveData<T>() {
init {