The chmod command sets the file permission to an octal number. To see the current value
On macOS
stat -f "%Sp %OLp %N" /MY_FILE_PATH
On GNU Linux
stat -c '%A %a %n' /MY_FILE_PATH
Knowledge Base for IT Professionals, Teachers and Astronauts
The chmod command sets the file permission to an octal number. To see the current value
stat -f "%Sp %OLp %N" /MY_FILE_PATH
stat -c '%A %a %n' /MY_FILE_PATH
To develop applications with the redis database we can use a Docker image.
The documentation is at https://hub.docker.com/_/redis/
Start the redis container “detached” ( -d ) in the background and expose it through localhost:6379
docker run -dit --name redis -p 127.0.0.1:6379:6379 redis
docker ps -a
Start a shell session in the redis container to access the command line utility
docker exec -it redis sh
redis-cli
ping
set cat 10
get cat
keys *
Create a Docker network, so multiple containers can communicate with each other using it.
docker network create redis
Start the redis container “detached” ( -d ) in the background in the “redis” network to make it available for redis-cli.
docker run --name redis --network redis -d redis
docker run --name redis-cli -it --network redis --rm redis redis-cli -h redis
get cat
When you try to run an older Node.js application under a new version of Node.js you may get deprecation warnings. If you downgrade Node.js and keep the out of date component, you will introduce a dangerous security risk in your application.
To refresh the referenced Node.js libraries
npm install --force
npm audit fix --force
(if you accidentally run into an ancient machine)
If you use a Macintosh computer, you use the Command key all the time. Unfortunately, on the Windows keyboard you will always accidentally hit the Windows key. This can be very frustrating, as pressing the Windows key with any of the cursor keys will resize the current window.
WinDirStat is a disk utility to display the relative size of your files in a graphical interface and provide a tree view to help to find them.
Download it from https://windirstat.net/
If you want to host Chocolatey packages internally install Chocolatey. See Install Chocolatey
We will use it in the .kitchen.yml file of the Chef SDK.
Download Virtual Box from https://www.virtualbox.org/wiki/Downloads and follow the instructions to install it.
At the time of writing, this was the section where the installer files were referenced
Run the downloaded installer file and accept all default values.
The installer starts the Virtual Box application.You can close it, we will use other tools to start it in the future.
To be able to launch 64 bit guest operating systems turn off Hyper-V in Windows Features
To share the connectivity of the host computer with the virtual machine, mainly if you use VPN
To enable copy and paste between the virtual machine and the host ( your workstation )
To enable the shared folders on the virtual machine and other configurations see Virtual machine configuration at VirtualBox
For Vagrant installation see Vagrant.
The Ruby Development Kit is need for certain Ruby gems, so install it.
ruby dk.rb init
ruby dk.rb install
or
For more details see https://www.terraform.io/intro/getting-started/install.html
Graphviz is a Dependency Graph Visualization Software. We will use this utility to display the Terraform graphs.
The Amazon Web Services command line interface installation will set up your workstation to launch instances in AWS from Test Kitchen. If you know you will work with AWS, see DevOps Engineering part 3. – Working with AWS for the AWS CLI installation.
We use Packer to create custom AWS AMIs that contain the fundamental configuration and applications that are common in every instance we launch.
or
Install a good text editor. If you do not have a favorite, I recommend Notepad ++
For Git installation and configuration see Install Git on Windows
To automatically pretty print JSON responses in Chrome
To install Make to be able to run it in the Git Bash (MINGW64) window
To be able to work with Amazon Web Services install the AWS CLI
This process with create the ~/.aws/credentials and ~/.aws/config files
aws configure
After a major macOS upgrade (currently to Ventura) the command line tools, including git, in the terminal windows (Terminal, iTerm) stop working. We get the error message
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
The macOS terminals use the Xcode Command Line Tools to execute commands on the Mac. When you upgrade the Macintosh operating system, you need to accept the licensing agreement of the Xcode Command Line Tools.
The simplest way to do it, to re-install the Xcode Command Line Tools and click the Accept button.
xcode-select --install
sudo xcode-select --reset
Developers frequently use the .env file to store configuration values on the workstation. If the values contain sensitive data add the line to the .gitignore file to avoid committing the file into source control.
.env
If the value contains spaces, enclose it in double quotes
DEBUG_COLUMN_NAME="x Debug"
Your application reads a double quote at the end of the value:
gDebugColumnName: x Debug”
There is an extra space character at the end of the line after the closing double quote in the .env file
Delete all trailing spaces from the lines in the .env file.
This page contains links to articles on rockets and space flight. Visit these links to learn more about the subject
To install SpaceWarp you need the following tools installed on your computer
cd "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program 2\KSP2_x64_Data\Managed
“md external_dlls
cd external_dlls
git clone https://github.com/X606/SpaceWarp.git
pip install -r requirements.txt
You can also download SpaceWarp from https://spacedock.info/mod/3257/Space%20Warp
See https://learn.microsoft.com/en-us/visualstudio/gamedev/unity/get-started/getting-started-with-visual-studio-tools-for-unity?pivots=windows for details
To select the installed Visual Studio version