Skip to content

Instantly share code, notes, and snippets.

View mrcnski's full-sized avatar

Marcin S. mrcnski

View GitHub Profile
@mrcnski
mrcnski / clean_history.sh
Last active January 17, 2024 18:13
Clean Bash History
#!/bin/bash
#
# Cleans up garbage lines and duplicate entries.
#
# DEPENDENCIES:
#
# - rg: cargo install ripgrep
# - unique: go install github.com/ro-tex/unique@latest
# - sponge: brew install moreutils
#
@nikhita
nikhita / update-golang.md
Last active May 23, 2024 07:48
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by: