Skip to content

Instantly share code, notes, and snippets.

View artob's full-sized avatar
⌨️
Coding

Arto Bendiken artob

⌨️
Coding
View GitHub Profile
@avestura
avestura / delete-from-users-where-location-iran.md
Last active November 27, 2025 14:07
DELETE FROM users WHERE location = 'IRAN';

DELETE FROM users WHERE location = 'IRAN';

Hi! I am an Iranian Software Engineer, and in this torn paper note, I want to talk about some funny moments I had online related to the fact that I was spawned in this specific region of the world: Iran.

Microsoft deleted my app, ignored my mails

Back when I was a student, I got access to the Microsoft Imagine, and as a result, I got access to the Microsoft Store as a developer. This inspired me write one of my open-source projects called EyesGuard and publish it on Microsoft Store. However, one day, somebody told me that they can no longer find EyesGuard on the store.

@rain-1
rain-1 / base model trends.md
Last active October 19, 2025 08:19
base model trends.md
@VictorTaelin
VictorTaelin / dps_sup_nodes.md
Last active December 5, 2025 03:04
Accelerating Discrete Program Search with SUP Nodes

Fast Discrete Program Search 2

I am investigating how to use Bend (a parallel language) to accelerate Symbolic AI; in special, Discrete Program Search. Basically, think of it as an alternative to LLMs, GPTs, NNs, that is also capable of generating code, but by entirely different means. This kind of approach was never scaled with mass compute before - it wasn't possible! - but Bend changes this. So, my idea was to do it, and see where it goes.

Now, while I was implementing some candidate algorithms on Bend, I realized that, rather than mass parallelism, I could use an entirely different mechanism to speed things up: SUP Nodes. Basically, it is a feature that Bend inherited from its underlying model ("Interaction Combinators") that, in simple terms, allows us to combine multiple functions into a single superposed one, and apply them all to an argument "at the same time". In short, it allows us to call N functions at a fraction of the expected cost. Or, in simple terms: why parallelize when we can share?

A

@flatz
flatz / signal_get_key.py
Last active July 26, 2025 21:32
Gets decrypted key from latest Signal desktop app to use with sigtop
#!/usr/bin/env python3
import os
import json
from Crypto.Protocol.KDF import PBKDF2
from Crypto.Hash import SHA1
from Crypto.Cipher import AES
from Crypto.Util.Padding import unpad
@squarism
squarism / cli_replacements.md
Last active August 29, 2025 18:52
Modern CLI Replacements

There are a few lists already, I thought I'd create another one so we can have a long list of lists someday. 🤠 Ordered by approximately which ones I actually use often.

Modern CLI Replacements

  • zoxide - A smarter cd command. Supports all major shells.
  • mcfly - Fly through your shell history. Great Scott!
  • Procs - A modern replacement for ps written in Rust
  • sd - Intuitive find & replace CLI (sed alternative)
  • dust - A more intuitive version of du in rust
  • hyperfine - A command-line benchmarking tool
@hirrolot
hirrolot / a-preface.md
Last active October 26, 2025 01:02
A complete implementation of the positive supercompiler from "A Roadmap to Metacomputation by Supercompilation" by Gluck & Sorensen

This is the predecessor of Mazeppa.

Supercompilation is a deep program transformation technique due to V. F. Turchin, a prominent computer scientist, cybernetician, physicist, and Soviet dissident. He described the concept as follows [^supercompiler-concept]:

A supercompiler is a program transformer of a certain type. The usual way of thinking about program transformation is in terms of some set of rules which preserve the functional meaning of the program, and a step-by-step application of these rules to the initial program. ... The concept of a supercompiler is a product of cybernetic thinking. A program is seen as a machine. To make sense of it, one must observe its operation. So a supercompiler does not transform the program by steps; it controls and observes (SUPERvises) the running of the machine that is represented by th

@xrad
xrad / iso_ffi.dart
Created September 14, 2023 17:11
Simple Dart example to demonstrate shared memory for Isolates
import 'dart:ffi';
import 'dart:isolate';
import 'dart:io';
import 'package:ffi/ffi.dart';
void newIsolate(SendPort sendPort) {
final ptr = calloc.allocate<Int>(100);
ptr[0] = 42;
sendPort.send(ptr.address);
sleep(const Duration(seconds: 1));
@MartinRGB
MartinRGB / RaspberryPi_CM4_External_GPU_Guide.md
Last active November 3, 2025 05:06
Raspberry Pi CM4 External GPU Guide

If you want to get more information, I suggest you browse raspberry-pi-pcie-devices and its issue.

My use case and hardware used

Use cases

| CM4 IO Board(Official) | CM4-IO-BASE-A(Waveshare) |

@kamidev
kamidev / zig_install_m3_max_macos.md
Last active July 31, 2025 12:49
zig_macos_m3_max_install

Personal notes building zig 0.15.0-dev.xxxx on Macbook M3 Max

20250731 Sequoia 15.6, latest XCode Commandline Tools, homebrew-installed LLVM 20.1.8 (llvm@20)

This way of building probably works on all Apple Silicon Macs, but you must check other models yourself. I keep a list of some successful M3 Max builds here

Some Intel Macs should also work (default homebrew path is the only significant difference). But I don't test that anymore.

@chrispsn
chrispsn / we-need-to-talk-about-group.md
Last active February 9, 2024 06:33
We need to talk about group.

We need to talk about group.

I'm sorry to tell you, but group is gone.

If you check out the latest k.d on shakti.com as at 28 March 2023, you'll see that 'unary' = is now 'freq' (frequency).

Group had a long life: it's been around since at least k2, or 1996.

So why did group go? And what should we use instead?