Skip to content

Instantly share code, notes, and snippets.

@rxaviers
rxaviers / gist:7360908
Last active January 28, 2025 08:41
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active January 28, 2025 08:38
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active January 28, 2025 08:35
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
@multivoltage
multivoltage / .tsx
Last active January 28, 2025 08:34
Simple store in React 19 without Provider/Consumer/Context
/**
* create fast and working minimal store in react 19 without Context/Provider.
* Usage:
* // navbar.tsx
* "use client";
* function MyNavbar(){
* const { store: { cart }} = useMinimalStore()
* return <nav>you have {cart.productsCount}</nav>
* }
*
@ngxson
ngxson / FAQ.md
Last active January 28, 2025 08:30
convert ARM NEON to WASM SIMD prompt

What is your setup?

Just chat.deepseek.com with prompts adapted from this gist.

Does it work in one-shot or I have to prompt it multiple times?

  • For the qX_0 variants, they are actually quite straight-forward so deepseek can come up with a correct result in 1 shot.
  • For the qX_K it's more complicated, I would say most of the time I need to re-prompt it 4 to 8 more times.
  • The most difficult was q6_K, the code never works until I ask it to only optimize one specific part, while leaving the rest intact (so it does not mess up everything)
from chainforge.providers import provider
from openai import OpenAI
import json
# LICENSE IS AT THE END
# Since deepseek is OpenAi Compatible ... Hooray
# Define our settings schema
CUSTOM_DEEPSEEK_SETTINGS = {
"settings": {
@kappuchino
kappuchino / deepseek-chainforge-provider.py
Created January 27, 2025 09:24
Custom Providers Chainforge
from chainforge.providers import provider
from openai import OpenAI
import json
# LICENSE IS AT THE END
# Since deepseek is OpenAi Compatible ... Hooray
# Define our settings schema
CUSTOM_DEEPSEEK_SETTINGS = {
"settings": {
@etoosamoe
etoosamoe / docker-volume-transfer.md
Created April 6, 2023 08:39
How to transfer Docker Volumes to another host

Goal

You have docker volume on one host and want to move that volume to another host. For example, you want to transfer PostgreSQL container with it's volume to another host.

Solution

Actually, there is no in-a-box solution from Docker, so we need to:

  • attach our volume to another container
  • copy and archive all files
  • copy archive to another host