AWS cli download/upload from MacOS
3 easy steps to download from an S3 bucket via commandline: 123brew install awscli # (mac) **install homebrew if needed** aws configure [add access_key_id and secure_access_key when prompted] aws s3 … Read More
3 easy steps to download from an S3 bucket via commandline: 123brew install awscli # (mac) **install homebrew if needed** aws configure [add access_key_id and secure_access_key when prompted] aws s3 … Read More
QuickLook is great – when it works… photos, some audio, some video, some documents…. what about the rest? There are many plugins available, but since MacOS 12 (Monterey) – they … Read More
AWS command line interface user guide can be found here: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html Installing for OSX in cli: 12curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" sudo installer -pkg AWSCLIV2.pkg -target / **The … Read More
Running xcode-select –install will trigger the standard gui interface confirming download, etc. So trying this over an ssh connection will note be possible. StackExchange to the rescue! 12345678touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress; … Read More
Source: Coderwall.com Manipulate the volume settings on an OSX machine via command line: Get volume # Echos a number from 0 to 100osascript -e ‘output volume of (get volume settings)’ … Read More
To change minimum password length to 1 pwpolicy getaccountpolicies > temp.xml nano temp.xml Erase until first string is <?xml version=”1.0″ encoding=”UTF-8″?> Find string <string>policyAttributePassword matches '^$|.{1,}+'</string> Replace {4,} with {1,} … Read More
A clear example of the if/then/else structure formatting in awk. 123456789$ awk ‘ BEGIN { FS="," ; FORMAT="%-10s%-8s%s\n" ; {printf FORMAT,"A","B","% age"} } { … Read More