Skip to content

Instantly share code, notes, and snippets.

@thomasheller
thomasheller / INSTALL.md
Last active May 14, 2024 09:24
Install Arch Linux in VirtualBox VM
@joni
joni / toUTF8Array.js
Last active May 14, 2024 09:23
toUTF8Array: Javascript function for encoding a string in UTF8.
function toUTF8Array(str) {
var utf8 = [];
for (var i=0; i < str.length; i++) {
var charcode = str.charCodeAt(i);
if (charcode < 0x80) utf8.push(charcode);
else if (charcode < 0x800) {
utf8.push(0xc0 | (charcode >> 6),
0x80 | (charcode & 0x3f));
}
else if (charcode < 0xd800 || charcode >= 0xe000) {
@rsms
rsms / macos-distribution.md
Last active May 14, 2024 09:22
macOS distribution — code signing, notarization, quarantine, distribution vehicles
@virattt
virattt / rag-reranking-gpt.ipynb
Last active May 14, 2024 09:22
rag-reranking-gpt.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ijin82
ijin82 / http-proxy-auth.go
Last active May 14, 2024 09:21
Simple HTTP proxy with authorization on golang
package main
import (
"github.com/elazarl/goproxy"
"github.com/elazarl/goproxy/ext/auth"
"log"
"net/http"
"flag"
)

Bible Bot Christian Companion AI Prompt

You can copy, translate, modify, and distribute this resource, without restriction, and without needing to ask permission.

Background

I'm not the first one to think about a Bible AI chatbot. Many, many people have done it. Few have done it well to keep the AI focused on the Truth of God and not hallucinate.

I am no prompt engineer and am newer to the AI space. However, I've used prompt injection techniques

@chuckg
chuckg / README.md
Last active May 14, 2024 09:19
Bootstrap an image for use as a Vagrant base box

Requirements

Prepare virtual machine

@davidedc
davidedc / webgl_lines_colors.html
Created April 8, 2012 19:30
working motion blur with transparent background
<!doctype html>
<html lang="en">
<head>
<title>three.js webgl - lines - cubes - colors</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
background-color: #FF0000;
margin: 0px;
@scriptingstudio
scriptingstudio / ConvertTo-HtmlTable.ps1
Last active May 14, 2024 09:18
Simple and robust PowerShell object to HTML table converter that just works
<#
.SYNOPSIS
Creates HTML table from .NET objects.
.DESCRIPTION
This is basic cmdlet, as a helper, to build HTML tables for complex HTML content.
Converts .NET objects into HTML that can be displayed in a Web browser.
This cmdlet works like "ConvertTo-Html -Fragment" but does not have any of its disadvantages, allowing HTML entities in cells, omiting the first column colons and allowing multi-column tables in the List mode, etc.
Features:
- Parameterset autoresolve. There are no predefined parameter sets
- Input data preprocessor: sorting and filtering
@padeoe
padeoe / README_hfd.md
Last active May 14, 2024 09:16
CLI-Tool for download Huggingface models and datasets with aria2/wget+git

🤗Huggingface Model Downloader

Considering the lack of multi-threaded download support in the official huggingface-cli, and the inadequate error handling in hf_transfer, this command-line tool smartly utilizes wget or aria2 for LFS files and git clone for the rest.

Features

  • ⏯️ Resume from breakpoint: You can re-run it or Ctrl+C anytime.
  • 🚀 Multi-threaded Download: Utilize multiple threads to speed up the download process.
  • 🚫 File Exclusion: Use --exclude or --include to skip or specify files, save time for models with duplicate formats (e.g., *.bin or *.safetensors).
  • 🔐 Auth Support: For gated models that require Huggingface login, use --hf_username and --hf_token to authenticate.
  • 🪞 Mirror Site Support: Set up with HF_ENDPOINT environment variable.