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 |
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
// inspired by https://www.appcoda.com/swiftui-animation-basics-building-a-loading-indicator/ | |
import SwiftUI | |
struct LoadingCircleView: View { | |
@State private var isLoading = false | |
var body: some View { | |
ZStack { | |
Circle() |
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
# build Fuse from the source | |
mkdir -pv ~/src && cd ~/src | |
git clone https://github.com/sgan81/apfs-fuse.git | |
cd apfs-fuse | |
git submodule init | |
git submodule update | |
mkdir build | |
cd build |
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
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM | |
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU | |
# | |
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances) | |
# | |
ssh -i <your private key.pem> ec2-user@<your public ip address> | |
# | |
# On the Mac |
NewerOlder