Skip to content

Instantly share code, notes, and snippets.

View hellodword's full-sized avatar
🔞

hellodword

🔞
View GitHub Profile
package main
import (
"encoding/xml"
"fmt"
"strings"
)
func main() {
@hellodword
hellodword / go-mod-pseudo-version.md
Created April 21, 2024 13:44
go mod pseudo-version

a pre-release version that encodes a revision identifier (such as a Git commit hash) and a timestamp from a version control system A timestamp (yyyymmddhhmmss), which is the UTC time the revision was created. In Git, this is the commit time, not the author time.

git --no-pager log --format="%cd-%H" -1 --date=format:"%Y%m%d%H%M%S"

git describe --tags --abbrev=0
// ==UserScript==
// @name PreSearch Ads
// @namespace Violentmonkey Scripts
// @match https://presearch.com/search*
// @grant none
// @version 0.0.2
// @author hellodword
// @run-at document-start
// ==/UserScript==