Skip to content

Instantly share code, notes, and snippets.

@maiha
maiha / sse.md
Last active April 25, 2024 06:14
Nginx configuration Cheat Sheet

nginx

location /sse/ {
  # enables EventSource support
  proxy_http_version 1.1;
  proxy_set_header Connection "";

  proxy_buffering off;
}
@imba-tjd
imba-tjd / .Cloud.md
Last active April 25, 2024 06:14
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

@Artefact2
Artefact2 / README.md
Last active April 25, 2024 06:14
GGUF quantizations overview

Which GGUF is right for me? (Opinionated)

Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggerganov/llama.cpp#5962

In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.

llama.cpp feature matrix

See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix

@brianjbayer
brianjbayer / gist-unlocking-the-secrets-of-rails-secrets-and-credentials.md
Last active April 25, 2024 06:14
A comprehensive examination of Rails Secrets, Credentials, and Secret Key Base

Unlocking the Secrets of Rails Secrets and Credentials

Interurban Tunnel at Blackhand Gorge- Brian J Bayer


If you are like many (most?) of us, you have encountered Rails Credentials/Secrets and secret_key_base and may have been left a bit (or more) confused.

This post is an attempt to remove some of that confusion by

@dmitriysafronov
dmitriysafronov / pve-setup.sh
Last active April 25, 2024 06:12
PVE customisation
## Step 1: Storage
#pvesm remove local-lvm
#lvremove /dev/pve/data -y
#lvcreate -n vz -l 100%FREE pve
#mkfs.ext4 -L vz /dev/pve/vz
#mount | grep -q -w '/dev/pve/vz' || mount /dev/pve/vz /var/lib/vz
#grep -q -w '/dev/pve/vz /var/lib/vz ext4 defaults,lazytime,commit=60,errors=remount-ro 0 2' /etc/fstab || echo '/dev/pve/vz /var/lib/vz ext4 defaults,lazytime,commit=60,errors=remount-ro 0 2' >> /etc/fstab
## Step 2: Free repository
rm -f /etc/apt/sources.list.d/pve-enterprise.list
@jeanne007
jeanne007 / How_to_install_OCI8_in_windows.md
Last active April 25, 2024 06:10
How to install OCI8 in windows

How to install OCI8 in windows

Instantclient Version 12.2.0.1.0

Xampp
php 7.2.4
Windows 10

Step 1

Download OCI8 2.1.8 - 7.2 Thread Safe (TS) x86

@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Created June 18, 2021 03:56 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@OrionReed
OrionReed / dom3d.js
Last active April 25, 2024 06:09
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@codeartery
codeartery / Import.vbs
Last active April 25, 2024 06:08
Import/include/using code from an external VBScript file.
Function Import( vbsFile )
REM@description
' Import/include/using code from an external VBScript file.
REM@author
' Jeremy England, http://codeartery.com/
REM@params
' vbsFile <string> - A relative, absolute, or URL path to a file containing vbscript code.
REM@returns
' Import <bool> - Returns False if the import failed, and True if it succeeded.
REM@mini
@wilsonsilva
wilsonsilva / build_raylib_for_sonoma.sh
Created October 23, 2023 04:11
Build raylib 4.5 dylib for macOS Sonoma
#!/bin/bash
FIXED_MINIAUDIO_URL="
https://raw.githubusercontent.com/mackron/miniaudio/fe5f17ecf3189c680855b030467bcfa9f8d26143/miniaudio.h"
curl -L $FIXED_MINIAUDIO_URL -o src/external/miniaudio.h
mkdir -p build
cd build
cmake \