This file contains 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 | |
# Use a here document to write assembly code into clash.s | |
cat <<EOF > clash.s | |
.global _start | |
.section .data | |
msg: | |
.asciz "Hello, World!\n" |
This file contains 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
# Get the latest version and rename it to simply wezterm | |
curl -L https://github.com/wez/wezterm/releases/download/20221119-145034-49b9839f/WezTerm-20221119-145034-49b9839f-Ubuntu18.04.AppImage -o wezterm | |
# Make executable | |
chmod +x wezterm | |
# Move to location of exiting path variable, optionally using sudo | |
if [[ $(which sudo) ]]; then | |
sudo mv wezterm /usr/bin | |
else |
This file contains 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
read n | |
awk ' | |
{ratio=$2/$3; if(ratio>oldRatio){oldRatio=ratio;name=$1}} | |
END{print name}' |