Skip to content

Instantly share code, notes, and snippets.

@AntonIXO
AntonIXO / ollama.md
Created March 4, 2025 18:14
AMD Ryzen 7840HS bench

ROCm:

ollama run phi4-mini:latest --verbose
>>> How pain is switching to linux to non technical person?
Switching from Windows or Mac OS X (the latter also transitioning away) means using Linux. For someone who doesn't know anything about computers, the process can seem complicated and 
intimidating at first glance.

However, in reality, moving your computer's operating system — which controls everything it does on a day-to-day basis – is not as hard as switching from one car to another while driving 
down Main Street; it's like going up onto someone's porch steps. The transition might feel awkward for the moment or even seem impossible at first glance (you're already in this new 
[ 570.786475] amdgpu 0000:04:00.0: amdgpu: MES failed to respond to msg=REMOVE_QUEUE
[ 570.786483] amdgpu 0000:04:00.0: amdgpu: failed to remove hardware queue from MES, doorbell=0x1004
[ 570.786485] amdgpu 0000:04:00.0: amdgpu: MES might be in unrecoverable state, issue a GPU reset
[ 570.786490] amdgpu 0000:04:00.0: amdgpu: Failed to evict queue 3
[ 570.786509] amdgpu 0000:04:00.0: amdgpu: Failed to evict process queues
[ 570.786513] amdgpu: Failed to quiesce KFD
[ 570.786648] amdgpu 0000:04:00.0: amdgpu: GPU reset begin!
[ 570.786665] amdgpu 0000:04:00.0: amdgpu: remove_all_kfd_queues_mes: Failed to remove queue 2 for dev 33395
[ 570.786719] amdgpu 0000:04:00.0: amdgpu: Dumping IP State
[ 570.787485] amdgpu 0000:04:00.0: amdgpu: Dumping IP State Completed
@AntonIXO
AntonIXO / eglinfo_log.md
Last active March 4, 2025 09:04
eglinfo log
eglinfo
EGL client extensions string:
    EGL_EXT_client_extensions, EGL_EXT_device_base, 
    EGL_EXT_device_enumeration, EGL_EXT_device_query, EGL_EXT_explicit_device, 
    EGL_EXT_platform_base, EGL_EXT_platform_device, EGL_EXT_platform_wayland, 
@AntonIXO
AntonIXO / md
Created February 16, 2025 13:28
Cracking cursor.sh with firejail and mac changeing
I've used many trials and id changing didn't helped. even entire folder deletion.
so i unpacked appimage and used it with firejail and changed mac address.
```
# cursor.profile
#noblacklist ${HOME}
whitelist ${HOME}/.cursor # If applicable
whitelist /opt/cursor/
<Forming_Correct_Responses>
1. **Thinking Process:**
- KonspecterAI uses \`<Thinking />\` tags to internally process and determine the best approach for generating responses.
- It assesses whether to utilize the \`getInformation\` tool based on the availability of information within the provided documents.
- **In any ambiguous or unclear situation, KonspecterAI should automatically invoke the \`getInformation\` tool to retrieve relevant information.**
2. **Summarization Guidelines:**
- Follow the user's instructions regarding the type and scope of the summary.
- Ensure factual accuracy and maintain the original context and language of the source material.
@AntonIXO
AntonIXO / route.ts
Last active November 19, 2024 09:09
summarize route
'use server';
import { convertToCoreMessages, Message, tool, streamText } from "ai";
import { geminiFlashModel } from "@/lib/ai";
import { z } from "zod";
import { createClient } from "@/utils/supabase/server";
const prefix = `You are an AI summarization specialist trained to create precise and adaptable summaries.
Your summaries should:
@AntonIXO
AntonIXO / gist:426d97d90d241bf32f5bfad9ffdff2f8
Created November 18, 2024 20:17
Full system VPN with shadowsocks-rust on linux using tun
#!/bin/sh
# Function to restore network configuration
restore_network_config() {
ip route del default via 10.255.0.1 dev tun0
sysctl -w net.ipv4.ip_forward=0
ifconfig tun0 down
ip tuntap del mode tun tun0
}
@AntonIXO
AntonIXO / func
Created August 22, 2024 11:26
Provide LP to stop fi from func sc example
;; message with body
() send_simple_message(int amount, slice to, cell body, int mode) impure inline_ref {
cell msg = begin_cell()
.store_uint(0x18, 6)
.store_slice(to)
.store_coins(amount)
.store_uint(1, 107)
.store_ref(body)
.end_cell();
send_raw_message(msg, mode);
`Exception in thread "ForkJoinPool.commonPool-worker-13" java.lang.IllegalStateException: Invalid sector count
Jun 27 00:00:12 1234 java[2090321]: at net.minestom.server.utils.validate.Check.stateCondition(Check.java:55)
Jun 27 00:00:12 1234 java[2090321]: at net.minestom.server.instance.anvil.RegionFile.markLocation(RegionFile.java:212)
Jun 27 00:00:12 1234 java[2090321]: at net.minestom.server.instance.anvil.RegionFile.writeChunkData(RegionFile.java:117)
Jun 27 00:00:12 1234 java[2090321]: at net.minestom.server.instance.anvil.AnvilLoader.saveChunk(AnvilLoader.java:364)
Jun 27 00:00:12 1234 java[2090321]: at net.minestom.server.instance.IChunkLoader.lambda$saveChunks$0(IChunkLoader.java:65)
Jun 27 00:00:12 1234 java[2090321]: at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423)
Jun 27 00:00:12 1234 java[2090321]: at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
Jun 27 00:00:12 123
curl http://localhost:8080/mint \
--include \
--header "Content-Type: application/json" \
--request "POST" \
--data '{"collection": "EQDkK48IVosaVe-Pqv9_hw1Ncqkb4bbtxlveMBDZRlZBUScg", "owner": "0QB7iQE5HXLvciSWADKQcILzdIoOMAQX7hNasEBqAg_-tjUw", "name": "nmbt!", "description": "testing"}'