Skip to content

Instantly share code, notes, and snippets.

View jazzwang's full-sized avatar

Jazz Yao-Tsung Wang jazzwang

View GitHub Profile
@sghael
sghael / snake.py
Created April 18, 2024 20:35
LLaMa 3 8B instruction tuned, fp16
# prompt: "write a snake game for me in python"
import random
import pygame
pygame.init()
white = (255, 255, 255)
black = (0, 0, 0)
git clone https://github.com/OpenDevin/OpenDevin.git
cd OpenDevin
conda create -n od python=3.10
conda activate od
docker ps
(optional) install docker if not already installed
docker pull ghcr.io/opendevin/sandbox
export OPENAI_API_KEY={your key}
(optional I had to install rust) curl --proto '=https' --tlsv1.2 -sSf [https://sh.rustup.rs](https://sh.rustup.rs/) | sh
(optional) restart terminal
@veekaybee
veekaybee / normcore-llm.md
Last active June 26, 2024 16:41
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@kaaquist
kaaquist / podman_macos.md
Last active June 9, 2024 20:33
Podman with docker-compose on MacOS.

Podman with docker-compose on MacOS.

Podman an alternative to Docker Desktop on MacOS

Getting podman installed and started is super easy.
Just use brew to install it.

> brew install podman

Now since podman uses a VM just like the Docker Client on MacOS we need to initialize that and start it.

@rapatil
rapatil / Automating Salesforce Data Extraction Using Python.ipynb
Last active March 22, 2024 05:11
Approach: Automating Salesforce Data Extraction Using Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ozaki-r
ozaki-r / gce_idle_suspend.sh
Last active June 3, 2021 20:31
GCE: automatically suspend the underlying VM on idle
#!/bin/sh
if [ $# -lt 2 ]; then
echo "usage: $0 name zone [time]"
exit 1
fi
# TODO: check if authenticated and suggest 'gcloud auth login'
name=$1
@qrtt1
qrtt1 / 000_2020-12th-ironman.md
Last active September 3, 2023 07:16
ITHome 第 12 屆鐵人賽 (updated UTC 2020-10-19 00:40:39.204524)
@499978920
499978920 / profile.ps1
Created June 30, 2020 06:04
[powershell proxy] power shell 走代理 #powershell #proxy
# path
# C:\Program Files\PowerShell\7
function set_proxy_variable {
$proxy = 'http://127.0.0.1:10809'
# temporary
$env:HTTP_PROXY = $proxy
$env:HTTPS_PROXY = $proxy
@fengli320
fengli320 / sshd_gitbash.sh
Last active December 21, 2022 06:34
How to setup SSHD in Git Bash
# Precondition: Git for Windows 2.9.0 + Windows 7, other version of Git for Windows & Windows XP and Windows 10 should also be supported
# In /etc/ssh/sshd_config, set UsePrivilegeSeparation to no
# You can also change other settings of SSHD like port in this file
# Generate key pairs
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -q -N ""
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -q -N ""
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -q -N ""
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -q -N ""
@tianhaoz95
tianhaoz95 / open-in-gitpod.md
Last active February 29, 2024 21:43
Code to add a open in Gitpod badge

Here is your awesome Open in Gitpod badge

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/[your GitHub username]/[your repository])

Open in Gitpod