Skip to content

Instantly share code, notes, and snippets.

View funkytaco's full-sized avatar

Luis Gonzalez funkytaco

View GitHub Profile
# need to have conda installed
# these are instructions for macOS
git clone https://github.com/OpenBMB/ChatDev.git
conda create -n ChatDev_conda_env python=3.9 -y
conda activate ChatDev_conda_env
cd ChatDev
pip3 install -r requirements.txt
set OPENAI_API_KEY=your_key
python run.py --task "[description_of_your_idea]" --name "[project_name]"
python3 online_log/app.py
@adrienbrault
adrienbrault / llama2-mac-gpu.sh
Last active April 22, 2024 08:47
Run Llama-2-13B-chat locally on your M1/M2 Mac with GPU inference. Uses 10GB RAM. UPDATE: see https://twitter.com/simonw/status/1691495807319674880?s=20
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
# Build it
make clean
LLAMA_METAL=1 make
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
@tosin2013
tosin2013 / gist:479acd3ca676aec6f42514f7df2f8921
Last active February 18, 2020 20:54
Qubinode OpenShift 4 Deployment

Qubinode OpenShift 4 Deployment on KVM

These steps define deploying a single node openshift 4.2 cluster using idm as the dns server on kvm. For the network it will use nat and bridge. OpenShift nodes are deployed within the nat work and the idm server is deployed on the bridge so external machines can resolve the addresses of the openshift cluster.

KVM Infrastructure configuration

Download Repo Extract it and run qubinode installer

wget https://github.com/tosin2013/qubinode-installer/archive/master.zip
unzip master.zip
mv qubinode-installer-master qubinode-installer
rm -f master.zip
@Bubblemelon
Bubblemelon / rhcos_qemu-kvm.md
Last active August 2, 2022 12:56
Running RHCOS using `qemu-kvm`
@chuckersjp
chuckersjp / docker_setup.yaml
Last active May 13, 2020 21:06
docker_setup.yaml
---
- name: Setup Docker for all hosts
hosts: all
become: true
tasks:
- name: Install some base packages
yum:
name: "{{ item }}"
state: latest
@chuckersjp
chuckersjp / dnsmasq-cluster-setup.yaml
Last active May 13, 2020 21:06
Create dnsmasq cluster.conf based on OpenShift inventory hostfile
---
- name: Configure dnsmasq
hosts: all
tasks:
- name: Install dnsmasq
yum:
name: dnsmasq
state: latest
@slipo
slipo / docker-compose.yml
Created January 30, 2018 23:00
Super simple docker compose file giving you a private NEO network and neon-wallet-db ... see comments.
version: '3'
services:
neon-wallet-db:
container_name: "neon-wallet-db"
image: slipoh/neon-wallet-db:latest
environment:
- MONGOURL=mongodb:27017
- MONGOPASS=neo
- MONGOUSER=gas
- MONGOAPP=test
@JacobBennett
JacobBennett / blog.md
Last active October 21, 2023 17:30
Clean up your Vue modules with ES6 Arrow Functions

Recently when refactoring a Vue 1.0 application, I utilized ES6 arrow functions to clean up the code and make things a bit more consistent before updating to Vue 2.0. Along the way I made a few mistakes and wanted to share the lessons I learned as well as offer a few conventions that I will be using in my Vue applications moving forward.

The best way to explain this is with an example so lets start there. I'm going to throw a rather large block of code at you here, but stick with me and we will move through it a piece at a time.

<script>

// require vue-resource...

new Vue({
#!/bin/bash
# Assumes a pre-built carina cluster, e.g.:
#
# carina create --wait shipyard \
# && carina credentials shipyard \
# && eval `carina env shipyard`
#
@ourmaninamsterdam
ourmaninamsterdam / LICENSE
Last active April 24, 2024 18:56
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions: