Skip to content

Instantly share code, notes, and snippets.

@rmtbb
rmtbb / ChatGPT Canvas HTML Renderer from Clipboard.url
Last active November 10, 2024 20:51
Bookmarklet that lets you render a full HTML page with any included css and javascript that is currently copied to your clipboard. Also works for SVG code. Useful with ChatGPT Canvas
javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard
@diyism
diyism / rclone.conf for chunker over blomp swift.txt
Last active January 4, 2024 01:11
rclone.conf for chunker over blomp swift
rclone.conf:
[blomp]
type = swift
user = [email protected]
key = 123456
auth = https://authenticate.blomp.com
tenant = storage
auth_version = 2
no_chunk = true
@rupeshtiwari
rupeshtiwari / getting started with linux.md
Last active January 2, 2024 23:02
Getting started with linux

Getting started with Linux

Red Hat vs Slackware vs Debian vs Arch?

Red Hat, Slackware, Debian, and Arch are all popular Linux distributions, but they have different strengths and weaknesses.

Red Hat is known for its stability and enterprise support. It is a good choice for businesses that need a reliable and secure platform. Red Hat also has a large and active community, which means that there is plenty of help available if you need it.

Slackware is known for its simplicity and minimalism. It is a good choice for users who want a Linux distribution that is easy to use and doesn't come with a lot of bloatware. Slackware is also very customizable, so you can tailor it to your own needs.

@ackviz
ackviz / open_playground.py
Last active August 9, 2023 03:43
cli to interact with https://nat.dev/
#!/usr/bin/python3
# Script Author: @chaignc
# https://gist.github.com/ackviz/8e97f35f84ec77d4e527f719e3729390
import sys
import clize
import re
import json
from collections import defaultdict
import requests
@PawanOsman
PawanOsman / OAI-ReverseProxy-FREE.md
Created March 7, 2023 22:57
OAI Reverse Proxy - FREE

Introduction:

Reverse proxy to use OpenAI API Join Our Discord Server 😁

Features

  1. Works same as OpenAI API
  2. Supports Streaming!
  3. It's FREE!
@veekaybee
veekaybee / chatgpt.md
Last active October 30, 2024 08:38
Everything I understand about chatgpt

ChatGPT Resources

Context

ChatGPT appeared like an explosion on all my social media timelines in early December 2022. While I keep up with machine learning as an industry, I wasn't focused so much on this particular corner, and all the screenshots seemed like they came out of nowhere. What was this model? How did the chat prompting work? What was the context of OpenAI doing this work and collecting my prompts for training data?

I decided to do a quick investigation. Here's all the information I've found so far. I'm aggregating and synthesizing it as I go, so it's currently changing pretty frequently.

Model Architecture

@diyism
diyism / rclone with storj(ipfs).txt
Last active January 4, 2024 00:47
rclone with storj(ipfs)
curl https://rclone.org/install.sh | sudo bash
装最新版rclone支持storj的150GB免费空间(apt里版本太旧不支持storj),
本地上传/下载到storj us带宽大概0.8MB/s,
而在VPS里玩能到8MB/s,
用"rclone rcd --rc-web-gui"能启动网页版管理界面,
觉得可作为VPS的扩展盘使用,
可惜没集成player,folder comparer
https://docs.storj.io/dcs/how-tos/sync-files-with-rclone/rclone-with-native-integration/
@saumas
saumas / create.sh
Last active April 6, 2024 07:39
Create an admin kubeconfig
#!/usr/bin/env bash
set -ex
NAMESPACE="default"
NAME="admin"
SECRET_NAME="admin-secret"
kubectl create serviceaccount -n $NAMESPACE $NAME
kubectl create clusterrolebinding $NAMESPACE-$NAME --clusterrole=cluster-admin --serviceaccount=$NAMESPACE:$NAME
@taskylizard
taskylizard / fmhy.md
Last active November 15, 2024 16:34
/r/freemediaheckyeah, in one single file (view raw)