Skip to content

Instantly share code, notes, and snippets.

@Akendo
Akendo / netmask_to_cidr.py
Created May 24, 2017 11:23
Converting a netmask to CIDR with vanilla python
def netmask_to_cidr(m_netmask):
return(sum([ bin(int(bits)).count("1") for bits in m_netmask.split(".") ]))
@metaldrummer610
metaldrummer610 / SKILL.md
Created March 20, 2026 16:14
Linear Story Quality - Claude Code Skill for validating Linear issues have sufficient detail for AI-autonomous execution

name: linear-story-quality description: >- Validate Linear issue quality for AI-autonomous execution. Use when assessing story readiness, checking issue quality, validating before execution, or when about to start work on a Linear issue. Also use after drafting a new Linear issue to self-check before saving. Enforces hard gates (objective, acceptance criteria, affected areas) and scores soft criteria (edge cases, scope, dependencies, approach). allowed-tools: Read, Glob, Grep, mcp__plugin_linear_linear__get_issue, mcp__plugin_linear_linear__save_issue, mcp__plugin_linear_linear__list_issues

@stas-sl
stas-sl / speedtest-servers.csv
Last active March 24, 2026 18:45
List of speedtest servers
We can't make this file beautiful and searchable because it's too large.
id,url,lat,lon,name,country,cc,sponsor,isp_id,host,continent,subregion
252,http://speedtest1.tigo.net.gt:8080/speedtest/upload.php,14.6133,-90.5353,Guatemala,Guatemala,GT,Tigo Guatemala,234,speedtest1.tigo.net.gt:8080,North America,Central America
265,http://speedtest.perfectum.uz:8080/speedtest/upload.php,41.2667,69.2167,Tashkent,Uzbekistan,UZ,Perfectum,300442,speedtest.perfectum.uz.prod.hosts.ooklaserver.net:8080,Asia,Central Asia
285,http://sp1.scinternet.net:8080/speedtest/upload.php,37.6826,-113.0744,"Cedar City, UT",United States of America,US,SCBroadband,14877,sp1.scinternet.net.prod.hosts.ooklaserver.net:8080,North America,Northern America
338,http://speedtest.skynet.net.pl:8080/speedtest/upload.php,52.2323,21.0084,Warsaw,Poland,PL,Skynet DC,169609,speedtest.skynet.net.pl.prod.hosts.ooklaserver.net:8080,Europe,Eastern Europe
395,http://speedtest.unidata.it:8080/speedtest/upload.php,41.9,12.5,Rome,Italy,IT,Unidata S.p.A.,10989,speedtest.unidata.it.prod.hosts.ooklaserver.net:8080,Europe,Southern Europe
@nidbCN
nidbCN / LoadFfMpeg.cs
Last active March 24, 2026 18:44
FFmpeg.Autogen configure ffmpeg libraries and initialize
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using CameraCaptureBot.Core.Configs;
using FFmpeg.AutoGen.Abstractions;
using FFmpeg.AutoGen.Bindings.DynamicallyLinked;
using FFmpeg.AutoGen.Bindings.DynamicallyLoaded;
using Microsoft.Extensions.Options;
namespace CameraCaptureBot.Core;
@denji
denji / 01-nvidia.conf
Last active March 24, 2026 18:40
/etc/modprobe.d/nvidia.conf
# /etc/modprobe.d/nvidia.conf
# NVIDIA Linux modprobe.d Configuration
#
# Memory and Performance Enhancements:
#
# - NVreg_UsePageAttributeTable=1 (Default: 0)
# Activates the Page Attribute Table (PAT) for improved memory management.
# PAT creates a partition table at a fixed register-mapped address, potentially enhancing CPU performance.
#
@meunomeebero
meunomeebero / resume.html
Last active March 24, 2026 18:39
My highly optimized ATS & AI‑market resume for international job applications.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bero - Software Engineer</title>
<style>
* {
margin: 0;
padding: 0;
# OpenClaw Implementation Prompts
Each prompt below is a self-contained brief you can hand to an AI coding assistant (or use as a project spec) to build that use case from scratch. Adapt the specific services to whatever you already use — the patterns are what matter.
---
## 1) Personal CRM Intelligence
```
Build me a personal CRM system that automatically tracks everyone I interact with, with smart filtering so it only adds real people — not newsletters, bots, or cold outreach.
https://youtu.be/-C-JoyNuQJs?t=39m45s
When I put the reference implementation onto the website I needed to
put a software license on it.
And I looked at all the licenses that were available, and there were a lot
of them. And I decided that the one I liked the best was the MIT License,
which was a notice that you would put on your source and it would say,
"you're allowed to use this for any purpose you want, just leave the
notice in the source and don't sue me."
@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active March 24, 2026 18:34
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@chrisjrn
chrisjrn / naur-1985.md
Last active March 24, 2026 18:31
"Programming as Theory Building", P. Naur (1984/85)