Skip to content

Instantly share code, notes, and snippets.

View lucioreyli's full-sized avatar
:shipit:
bulding something

lucio andrade lucioreyli

:shipit:
bulding something
View GitHub Profile
@FelicianoTech
FelicianoTech / rename-go-module.sh
Created April 9, 2024 18:47
A small script to rename a Go module and its import statements through out the source code.
#!/usr/bin/env bash
# Run this script as:
# ./rename-go-module.sh example.com/old/module example.com/new-module
go mod edit -module "${2}"
find . -type f -name '*.go' -exec sed -i -e "s,\"${1}/,\"${2}/,g" {} \;
find . -type f -name '*.go' -exec sed -i -e "s,\"${1}\",\"${2}\",g" {} \;
@gabe565
gabe565 / change-arc-icon.md
Last active November 25, 2025 18:18
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon on macOS.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy
@bdsqqq
bdsqqq / vesper-dark.json
Last active October 29, 2025 18:45
Vesper theme for zed.dev
{
"$schema": "https://zed.dev/schema/themes/v0.1.0.json",
"name": "Vesper",
"author": "Rauno Freiberg",
"themes": [
{
"name": "Vesper",
"appearance": "dark",
"style": {
"border": "#101010",
@markgreene74
markgreene74 / update-all-the-packages-nixos.md
Last active October 21, 2025 16:48
NixOS - update all the packages
@kenji21
kenji21 / xcode-previous-older-sdks.md
Last active December 6, 2025 00:18
Use previous/older SDKs with Xcode
@0xkarmacoma
0xkarmacoma / sending-ether-cheat-sheet.md
Last active May 1, 2025 03:17
Sending Ether Cheat Sheet

Sending Ether Cheat Sheet

TLDR

🥇 Instead of sending Ether, use the withdrawal pattern

🥈 If you really need to send Ether, use a safe wrapper like OpenZeppelin's Address.sendValue(addr, amount)

🥉 If you really need to send Ether without dependencies, use (bool success, ) = addr.call{value: amount}("")

@arafathusayn
arafathusayn / Emoji-on-Ubuntu.md
Last active November 26, 2025 14:07
Guide to enable system-wide Emoji support on Ubuntu 🤩

1. Install Fonts

sudo apt install fonts-noto-color-emoji

2. Add Font Configuration

  • Open ~/.config/fontconfig/conf.d/01-emoji.conf file in an editor.
  • Copy-paste the lines below:
@jdomzhang
jdomzhang / tls_test.go
Created November 15, 2019 08:50
golang tls connection with TLS 1.2
package onboarding_test
import (
"crypto/tls"
"log"
"net"
"net/http"
"testing"
)

Disable:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Enable:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist