Skip to content

Instantly share code, notes, and snippets.

View jerlendds's full-sized avatar
💭
🦷🧵🦾

jerlendds jerlendds

💭
🦷🧵🦾
View GitHub Profile
@avestura
avestura / delete-from-users-where-location-iran.md
Last active December 30, 2025 17:24
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.

Component-Oriented UI Development with Mako for Django

For more than a decade, Django's template system has been a model of stability and reliability. Its block and inheritance approach is simple, solid, and effective for many projects. Yet, when building user interfaces in a component-oriented style, its limitations become apparent. Another built-in backend, Jinja, extends these boundaries with macros and allows for more flexible templates. Yet, some projects demand even greater composability.

@jerlendds
jerlendds / .bashrc.sh
Last active June 26, 2025 22:54
.bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias grep='grep --color=auto'
@vikpe
vikpe / zed_rust_feature_flags.md
Last active December 16, 2025 15:27
Zed: Rust analyzer - Enable all or specific crate feature flags

Zed: Rust analyzer – Enable all or specific crate feature flags

Instructions for enabling specific or all crate feature flags in the Zed editor using rust-analyzer.

1. Create a Settings File

Create a settings file in your project directory:

.zed/settings.json
@corporatepiyush
corporatepiyush / SandboxProxyGeneratorForNsjail.sh
Created May 11, 2025 18:07
This script creates a true binary-compatible proxy that preserves all the binary interfaces of the original executable while adding nsjail sandboxing. This approach is more sophisticated than a simple wrapper, as it maintains full binary compatibility.
#!/bin/bash
# binary-compatible-proxy-generator.sh
# Creates a binary-compatible sandboxed proxy for ELF executables using nsjail
set -e
if [ $# -lt 1 ]; then
echo "Usage: $0 <original-binary> [nsjail-options]"
@ruvnet
ruvnet / cohen.md
Last active November 7, 2025 13:29
Cohen’s Conjecture

Cohen’s Agentic Conjecture: A Dual-Process Neuro-Symbolic Framework for Agentic AI

Abstract

This research introduces Cohen’s Agentic Conjecture (CAC), proposing that an artificial intelligence system integrating fast, neural heuristics (System 1) with slow, symbolic logic (System 2) through a dynamic gating mechanism can exhibit emergent agentic properties. These properties include context-aware decision-making, self-directed learning, robust reasoning, and reflective self-correction. Drawing inspiration from dual-process cognitive theories and neuro-symbolic AI paradigms, this work formalizes CAC, presents a comprehensive Python implementation, and validates the conjecture through empirical experiments. The findings demonstrate that CAC-enhanced systems outperform purely neural or purely symbolic counterparts in terms of accuracy, interpretability, and adaptability. This framework lays the groundwork for developing next-generation AI agents capable of autonomous, reliable, and

Hi 👋, my name is Ori and I'll help you setup password-protected notes on Quartz!

To do so, you will need to modify a few files.

Firstly, install @expo/spawn-async and Staticrypt with $ npm install @expo/spawn-async staticrypt

After that, paste this code into quartz/password.ts

import spawn from "@expo/spawn-async"
@bitti
bitti / gfm-render
Last active July 15, 2025 18:40
Offline renderer for GitHub flavoured markdown
#!/usr/bin/ruby
require 'redcarpet'
require 'pygments'
require 'erb'
input = ARGV[0] && ARGV[0] != "-" && File.open(ARGV[0]) || STDIN
output = ARGV[1] && File.open(ARGV[1], "w") || STDOUT
cache_dir = File.join(ENV["XDG_CACHE_HOME"] || "#{ENV['HOME']}/.cache", "gfm-render")
class RenderWithTaskLists < Redcarpet::Render::HTML
@cmod
cmod / hugofastsearch.md
Last active November 22, 2025 07:03 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator
var MAX_DEPTH = 20
export var expandedLog = (obj: Record<string, unknown>, depth: number = 0) => {
var [[name, item]] = Object.entries(obj)
if (depth < MAX_DEPTH && typeof item === 'object' && item) {
var typeString = Object.prototype.toString.call(item)
var objType = typeString.replace(/\[object (.*)\]/, '$1')
console.group(`${name}: ${objType}`)
Object.entries(item).forEach(([key, value]: any) => {