Skip to content

Instantly share code, notes, and snippets.

@miranda-zhang
miranda-zhang / linux.md
Last active May 5, 2024 23:57
Linux Command Cheat Sheet, Ubuntu, CentOS

Linux Command Cheatsheet

Linux Keyboard shortcuts

open terminal: Ctrl+Alt+T

Ctrl + C is used to kill a process with signal SIGINT , in other words it is a polite kill .

Ctrl + Z is used to suspend a process by sending it the signal SIGTSTP , which is like a sleep signal, that can be undone and the process can be resumed again.

@kalomaze
kalomaze / local_llm_glossary.md
Last active May 5, 2024 23:52
Local LLM Glossary v2

Kalomaze's Local LLM Glossary

Not super comprehensive (yet), but I think having up to date documentation like this should be quite helpful for those out of the loop. Things change all the time in local AI circles, and it can be dizzying to catch up from an outsider's perspective, especially if you are new to the more technical aspects of language models in general (and not just locally hosted LLMs).

Available Models

Llama

  • A language model series created by Meta. Llama 1 was originally leaked in February 2023; Llama 2 then officially released later that year with openly available model weights & a permissive license. Kicked off the initial wave of open source developments that have been made when it comes to open source language modeling. The Llama series comes in four distinct sizes: 7b, 13b, 34b (only Code Llama was released for Llama 2 34b), and 70b. As of writing, the hotly anticipated Llama 3 has yet to arrive.

Mistral

  • Mistral AI is a French company that also distributes open weight
@Klerith
Klerith / vite-testing-config.md
Last active May 5, 2024 23:51
Vite + Jest + React Testing Library - Configuraciones a seguir

Instalación y configuracion de Jest + React Testing Library

En proyectos de React + Vite

  1. Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react 
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto:
@knbr13
knbr13 / types.md
Created May 5, 2024 13:26
Data Types in Go

Data Types in Go

Go is a statically-typed language, which means that every variable has a specific data type that determines the kind of value it can hold. Go has several built-in data types that are categorized into four main groups: basic types, aggregate types, reference types, and interface types.

Basic Types

Basic types are the primitive data types in Go. They include:

  1. bool: Represents a boolean value, either true or false.
@mmozeiko
mmozeiko / preview.c
Last active May 5, 2024 23:40
windows shell preview handler example
// example of using Windows Preview Handler
// https://learn.microsoft.com/en-us/windows/win32/shell/preview-handlers
#define COBJMACROS
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <shlwapi.h>
#include <shellapi.h>
#include <shobjidl.h>
@AustinRochford
AustinRochford / revisit_bayes_survival.ipynb
Last active May 5, 2024 23:36
Revisiting Bayesian Survival Analysis in Python with PyMC
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hqnicolas
hqnicolas / .Stable Diffusion RX7800XT AMD ROCm with Docker-compose
Last active May 5, 2024 23:34
Stable Diffusion v1.7.0 on RX7800XT AMD ROCm with Docker-compose
#tutorial for Stable diffusion v1.7.0 or older
# Install UBuntu 22.04
# Based on https://phazertech.com/tutorials/rocm.html
# Follow phazertech on Youtube https://phazertech.com/youtube.html
# Download CasaOs.io https://casaos.io/
# AMD Drivers & ROCm on Ubuntu
# Here are the new official instructions for installing the AMD drivers using the package manager.
# The necessary steps have been copied here for your convenience.
# First download and convert the package signing key:
#
@AustinRochford
AustinRochford / Bayesian Survival Analysis.ipynb
Last active May 5, 2024 23:32
Bayesian Survival Analysis PyMC3 Tutorial
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rikka0w0
rikka0w0 / pxe_win10_winpe.md
Last active May 5, 2024 23:31
Boot Windows 10 and WinPE from PXE (IPXE)

Pre-requests:

  1. TFTP server
  2. IPXE Make sure ipxe.lkrn is in the TFTP root.
  3. iSCSI target (Server) Assume we have an iSCSI target "1:net.cszombie.au:windows" that is ready to be connected. 1 is LUN id, "net.cszombie.au:windows" is the target name.
  4. HTTP server (To speed up loading boot.wim, http is faster than tftp, http is supported by IPXE, however this is optional)

1. Download wimboot to the root of the TFTP server

2. Create scripts: