Skip to content

Instantly share code, notes, and snippets.

View wallentx's full-sized avatar
:shipit:
ȋ̴͎ ̶̘͝u̷̥͆s̴͖̾ē̷̠ ̶̟̉a̴͙̕ŗ̸͆č̶̬ḣ̷̭ ̴̡̄b̷̳̒ẗ̷͍ẘ̴̡

William Allen wallentx

:shipit:
ȋ̴͎ ̶̘͝u̷̥͆s̴͖̾ē̷̠ ̶̟̉a̴͙̕ŗ̸͆č̶̬ḣ̷̭ ̴̡̄b̷̳̒ẗ̷͍ẘ̴̡
View GitHub Profile
@wallentx
wallentx / deepseek-r1.md
Created January 29, 2025 18:20
Can DeepSeek R1 🍓

How many r's are in the word strawberry? 👤

🐋   Step 1: Understanding the Problem

Before jumping into counting, it's essential to comprehend what's being asked. The question is straightforward: determine the number of times the letter 'r' appears in the word "strawberry." To do this accurately, I need to:

  1. Identify the word in question: "strawberry."
  2. Focus on the letter 'r': I'm only interested in counting this specific letter, not any others.
  3. Ensure accuracy: I must examine each letter in the word to avoid missing any 'r's or counting them incorrectly.

Note

Highlights information that users should take into account, even when skimming.

Tip

Optional information to help a user be more successful.

Important

Crucial information necessary for users to succeed.

[!WARNING]

@wallentx
wallentx / releases.md
Created October 18, 2024 00:49
I wanted stats on all the releases I did for the org.
@wallentx
wallentx / emoji_kitchen_images_1.md
Created September 16, 2024 07:52
Emoji Kitchen Gist

Emoji Kitchen Images (Part 1)

   <img src="https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f600/u1f600_u1f605.png" alt="emoji" width="">
@wallentx
wallentx / steam_commands
Last active September 5, 2024 09:45 — forked from xPaw/steam_commands
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-all_languages - show longest loc string from any language
-blefw -
-browser-offline -
-cef-allow-browser-underlay - Allow webhelper to create BrowserView underlays
-cef-disable-d3d11-video-decoder - Disable the Windows D3D11VideoDecoder
-cef-disable-gpu-sandbox - disables CEF gpu-process sandbox
-cef-disable-occlusion - disables Chromium window occlusion testing
-cef-disable-occlusion - disables Chromium window occlusion testing on Windows
Settings:
- key: localRepository
version: 1.0.0
type: string
description: "The local repository. Default value is: ${user.home}/.m2/repository"
- key: interactiveMode
version: 1.0.0
type: boolean
description: "Whether Maven should attempt to interact with the user for input."
default: true
#!/usr/bin/env bash
CPU_INFO=$(
lscpu --hierarchic=never -J |
yq -pj -oy '.lscpu[] | .field |= sub(":$"; "") | . |= { (.field): .data }' |
yq -py -oj '.Flags |= (split(" ") | sort)' |
jq 'to_entries | .[0:16] | from_entries' |
yq -pj -oy '{"CPU": .}'
) \
FLAGS=$(
@wallentx
wallentx / Fix-steamos-compile.md
Created August 15, 2024 07:04
Fix SteamOS unable to compile

After every update, SteamOS is unable to compile. I have a test.c app that I made to check/test this:

test.c:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#!/usr/bin/env bash
fd \
-e plist \
--exclude "Library/Application Support" \
--exclude "Library/Assistant" \
--exclude "Library/Daemon Containers" \
--exclude "Library/Autosave Information" . | \
fzf --preview 'plistutil -p {} | yq -oy . -C -P'
@wallentx
wallentx / yq-format-memory.sh
Last active August 8, 2024 22:28
Real footage of me figuring out a `yq` command
16:00:54 free -h | yq -pp
16:01:06 free -h | yq -pp -oy
16:01:17 free -h | yq
16:01:19 free -h | yq .
16:01:22 free -h | yq -pt
16:03:38 free -h | yq -pp | sed 's/total/\\ttotal/g'
16:03:44 free -h | yq -pp | sed 's/total/\\\ttotal/g'
16:03:49 free -h | yq -pp | sed 's/total/\\\\ttotal/g'
16:03:56 free -h | yq -pp | sed 's/total/\\ttotal/g'
16:03:59 free -h | yq -pp | sed 's/total/\ttotal/g'