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 October 24, 2025 12:25
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 October 17, 2025 00:47
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 August 24, 2025 15:36
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

@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 October 20, 2025 09:10 — 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) => {
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active October 26, 2025 07:53 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.