Skip to content

Instantly share code, notes, and snippets.

Report

Gas Optimizations

Issue Instances
GAS-1 Use assembly to check for address(0) 9
GAS-2 array[index] += amount is cheaper than array[index] = array[index] + amount (or related variants) 8
#/bin/bash!
for file in $(find . -name '*.json'); do
ugly=$(jq -c '.' $file)
echo $ugly
echo $ugly > $file
done
@iFrostizz
iFrostizz / discord-install.sh
Created September 25, 2022 17:55
Discord on Linux
#!bin/bash
#from https://www.makeuseof.com/download-discord-linux/
# note: run this as root
FILE=discord-0.0.20.tar.gz
sudo tar -xvzf $FILE -C /opt
sudo ln -sf /opt/Discord/Discord /usr/bin/Discord
sudo cat > /usr/share/applications/discord.desktop << EOF