Skip to content

Instantly share code, notes, and snippets.

View piorus's full-sized avatar
🏠
Working from home

Piotr Rusin piorus

🏠
Working from home
View GitHub Profile
@piorus
piorus / FAQ.md
Created January 28, 2025 16:09 — forked from ngxson/FAQ.md
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)
@piorus
piorus / bash_strict_mode.md
Created April 21, 2023 12:09 — forked from vncsna/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation

set -e, -u, -o, -x pipefail

The set lines

  • These lines deliberately cause your script to fail. Wait, what? Believe me, this is a good thing.
  • With these settings, certain common errors will cause the script to immediately fail, explicitly and loudly. Otherwise, you can get hidden bugs that are discovered only when they blow up in production.
  • set -euxo pipefail is short for:
set -e
set -u
@piorus
piorus / AdDisapprovalReasons.txt
Created December 1, 2020 19:49
Reasons Why Facebook Disapprove Ads
UNKNOWN
IRREGULAR_APP_INSTALL
TEXT_OVERLAY
ADULT_CONTENT
ADULT_HEALTH
ALCOHOL
ANIMATED_IMAGE
BEFORE_AND_AFTER
CASUAL_DATING
DATING