Skip to content

Instantly share code, notes, and snippets.

@IanThomasICT
IanThomasICT / install-go.sh
Last active June 9, 2024 23:15
Shell script to install the latest version of Go on a linux system (AMD64)
LATEST_VERSION=$(curl 'https://go.dev/VERSION?m=text' | head -n1)
if [ ! -n "$LATEST_VERSION" ]
then
echo "Failed to retrieve latest go version"
exit 1
fi
FILE_NAME="$LATEST_VERSION.linux-amd64.tar.gz"
echo "Retrieving tar for latest go version..."
@IanThomasICT
IanThomasICT / intellij-format.xml
Created October 26, 2022 16:00
Eclipse XML format for Intellij Code Style
<?xml version="1.0" encoding="utf-8"?>
<profiles version="21">
<profile kind="CodeFormatterProfile" name="Intellij" version="21">
<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/>
<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.text_block_indentation" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/>