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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash! | |
for file in $(find . -name '*.json'); do | |
ugly=$(jq -c '.' $file) | |
echo $ugly | |
echo $ugly > $file | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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 |