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/sh | |
echo "===========================" | |
echo "Installing required tools" | |
echo "===========================" | |
echo "Checking the current version of XCode" | |
xcode_version=$(xcodebuild -version) | |
echo $xcode_version | |
if [[ ${xcode_version} != *"$XCODE_REQUIRED_VERSION"* ]];then | |
echo "Build requires Xcode version $XCODE_REQUIRED_VERSION - upgrading now" |
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 | |
## Install and Remove conflicting dependencies | |
sudo dnf install python3-pip -y | |
sudo dnf remove python3-requests python-urllib3 -y | |
## Install docker (used by swift-installer-script project) | |
sudo dnf install docker -y |
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 | |
AWS_ACCOUNT_ID=012345678901 | |
# Check if jq is installed | |
if ! command -v jq &> /dev/null; then | |
echo "Error: jq is not installed. Please install jq to parse JSON." | |
exit 1 | |
fi |
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 | |
## Install and Remove conflicting dependencies | |
sudo dnf install python3-pip -y | |
sudo dnf remove python3-requests python-urllib3 -y | |
## Install LD GOLD | |
sudo dnf install gmp-devel mpfr-devel texinfo bison git gcc-c++ -y | |
mkdir ld.gold && cd ld.gold |
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 | |
dnf install gmp-devel mpfr-devel texinfo bison git gcc-c++ -y | |
mkdir ld.gold && cd ld.gold | |
git clone --depth 1 git://sourceware.org/git/binutils-gdb.git binutils | |
mkdir build && cd build | |
../binutils/configure --enable-gold --enable-plugins --disable-werror | |
make all-gold | |
cd gold |
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
import Foundation | |
import ClientRuntime | |
// reduce the verbosity of the AWS SDK | |
SDKLoggingSystem.initialize(logLevel: .warning) | |
import AWSBedrock | |
import AWSBedrockRuntime | |
// create a Bedrock client and list available models for a provider |
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
# list all the AMIs for a major macOS version | |
REGION=us-east-1 | |
MACOS_VERSION=14 | |
aws ec2 describe-images \ | |
--region $REGION \ | |
--filters Name=name,Values="amzn-ec2-macos-$MACOS_VERSION*" \ | |
--owners amazon \ | |
--query 'Images[*].[Architecture,Description,ImageId]' \ | |
--output text | |
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
import Foundation | |
import ClientRuntime | |
// reduce the verbosity of the AWS SDK | |
SDKLoggingSystem.initialize(logLevel: .warning) | |
import AWSBedrock | |
import AWSBedrockRuntime | |
// create a Bedrock client and list available models for a provider |
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
import Foundation | |
// reduce the verbosity of the AWS SDK | |
import ClientRuntime | |
SDKLoggingSystem.initialize(logLevel: .warning) | |
import AWSBedrock | |
import AWSBedrockRuntime | |
// create a Bedrock client and list available models for a provider |
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/sh | |
### | |
### Payload script | |
### | |
CURRENT_USER=$(whoami) | |
echo "Hello from shell script as user: \"$CURRENT_USER\"" | |
exit 0 |
NewerOlder