Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

@jashkenas
jashkenas / semantic-pedantic.md
Last active May 7, 2025 01:36
Why Semantic Versioning Isn't

Spurred by recent events (https://news.ycombinator.com/item?id=8244700), this is a quick set of jotted-down thoughts about the state of "Semantic" Versioning, and why we should be fighting the good fight against it.

For a long time in the history of software, version numbers indicated the relative progress and change in a given piece of software. A major release (1.x.x) was major, a minor release (x.1.x) was minor, and a patch release was just a small patch. You could evaluate a given piece of software by name + version, and get a feeling for how far away version 2.0.1 was from version 2.8.0.

But Semantic Versioning (henceforth, SemVer), as specified at http://semver.org/, changes this to prioritize a mechanistic understanding of a codebase over a human one. Any "breaking" change to the software must be accompanied with a new major version number. It's alright for robots, but bad for us.

SemVer tries to compress a huge amount of information — the nature of the change, the percentage of users that wil

@c4710n
c4710n / macos-network-flush-routing-table.sh
Created November 8, 2023 03:42
Fix macOS corrupted routing table
#!/usr/bin/env bash
#
# ## The Problem
#
# Can't assign requested address
#
# It occurs when macOS's TCP stack routing table has become corrupted.
#
# ## Reproducing
#
@xiaohk
xiaohk / acm-cc.md
Last active May 7, 2025 01:29
How to generate CC copyblock for ACM paper

Create a CC Block for ACM Preprints

Here are two methods to create a nice CC copyright block for your ACM preprint.

First, you need to check your acmart.cls version (you can find it from the first 50 lines of this file).

version >= v1.87

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 7, 2025 01:27
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@OpenSourceGuruSu
OpenSourceGuruSu / Activate-Windows-11-Pro.md
Last active May 7, 2025 01:27
Windows 11 Pro Activation
@SchneiderSam
SchneiderSam / gp-mega-menu.php
Last active May 7, 2025 01:26 — forked from diggeddy/gp-mega-menu.php
Create a sub menu item container with action hook (Mega Menu with GeneratePress and GenerateBlocks)
<?php
add_filter( 'walker_nav_menu_start_el', 'db_sub_menu_item_hook', 10, 4 );
function db_sub_menu_item_hook( $item_output, $item, $depth, $args ) {
// Specify menu item class to target
$class_string = 'gp_mega_item';
$menu_item_classes = $item->classes;
if ( empty( $menu_item_classes ) || !in_array( $class_string , $menu_item_classes ) ) {
return $item_output;
{"name":"setAll","settings":"{\"settings\":\"{\\n \\\"workbench.startupEditor\\\": \\\"none\\\",\\n \\\"[javascript]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"vscode.typescript-language-features\\\"\\n },\\n \\\"[css]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"vscode.css-language-features\\\"\\n },\\n \\\"editor.linkedEditing\\\": true,\\n \\\"[html]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"vscode.html-language-features\\\"\\n },\\n \\\"cSpell.userWords\\\": [\\n \\\"ABCDJKLMNOP\\\",\\n \\\"acodec\\\",\\n \\\"AGIEXITSTATUS\\\",\\n \\\"akdjsad\\\",\\n \\\"AKLO\\\",\\n \\\"Alaw\\\",\\n \\\"alexdima\\\",\\n \\\"annyang\\\",\\n \\\"apng\\\",\\n \\\"APPDATA\\\",\\n \\\"APPLINK\\\",\\n \\\"appwiz\\\",\\n \\\"AQEBBX\\\",\\n \\\"Arciving\\\",\\n \\\"asar\\\",\\n \\\"Assests\\\",\\n \\\"Assigment\\\",\\n \\\"astagidir\\\",\\n
{
"input": {
"blocklist": [],
"compressor#0": {
"attack": 5.0,
"boost-amount": 6.0,
"boost-threshold": -72.0,
"bypass": false,
"dry": -100.0,
"hpf-frequency": 10.0,
@afriza
afriza / proxmox-mikrotik.md
Last active May 7, 2025 01:16
install Mikrotik CHR on ProxMox Virtual Environment 8.3.0
  • create bridges for use by mikrotik CHR
  • create VM with VM ID 100 without any media (also delete existing scsi0 disk in the wizard)
ver=7.16.2
wget https://download.mikrotik.com/routeros/$ver/chr-$ver.img.zip
apt update
apt install unzip
unzip chr-$ver.img.zip
qemu-img resize -f raw chr-$ver.img 256M
# number 100 below is the VM ID

Caveat Emptor

I (instagibbs) was asked to draft a statement, I feel this is a fair summation of the project's direction. I might be wrong

Retiring the 80-Byte OP_RETURN Limit

Bitcoin Core’s next release will, by default, relay and mine transactions whose OP_RETURN outputs exceed 80 bytes and allow any number of these outputs. The long-standing cap, originally a gentle signal that block space should be used sparingly for non-payment proof of publication data, has outlived its utility.