# Define alias in shell
alias cat "/usr/games/lolcat"
# Define alias in config file
alias cat="/usr/games/lolcat"
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 | |
# Date: 01/20/2023 | |
# devsecfranklin@duck.com | |
#set -eu | |
#Black 0;30 Dark Gray 1;30 | |
#Red 0;31 Light Red 1;31 | |
#Green 0;32 Light Green 1;32 |
In this quick demo we will take a look at a "Cloud Native" and security-focused lab in GCP.
You can click here to see the reference diagram for the demo.
cloudbot-call.yml
file is added to repo as a GH action- GCP creds are added to the
Settings
for the repo.
sudo install -d -m755 -o
Then don't forget to run the command provided at the end of the installation script to make nix available in your system:
- BASH users (you probably want this)
source $HOME/.nix-profile/etc/profile.d/nix.sh
sudo apt-get install git rsync cmake lib32z1 lib32ncurses5
git clone git://github.com/raspberrypi/tools.git sudo mv tools /opt/raspi-toolchain
- add line to .bashrc export PATH=$PATH:/opt/raspi-toolchain/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin
arm-linux-gnueabihf-gcc -v
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
* Create a new file in iac_workshop/puppetlabs/code/environments/production/modules/profile/templates | |
* Let's call it issue.erb | |
``` | |
<%# Non-printing tag ↓ -%> | |
<% if @keys_enable -%> | |
<%# Expression-printing tag ↓ -%> | |
keys <%= @keys_file %> | |
<% unless @keys_trusted.empty? -%> |
NewerOlder