This file contains hidden or 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 | |
| find . -type f -name Cargo.toml -print0 | while IFS= read -r -d '' manifest; do | |
| dir="$(dirname "$manifest")" | |
| echo "Cleaning $dir" | |
| (cd "$dir" && cargo clean) | tee -a cargo_clean_output.txt | |
| done | |
This file contains hidden or 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
| FROM rust:1.91.0-slim-trixie AS security-checks | |
| RUN apt-get update \ | |
| && apt-get upgrade -y \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && apt-get clean | |
| # Install security tools | |
| RUN cargo install --locked cargo-audit \ | |
| && rustup component add clippy rustfmt |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| ##################################################################### | |
| # REFERENCES | |
| # - https://docs.netbox.dev/en/stable/installation/3-netbox/ | |
| # - https://github.com/netbox-community/netbox-docker/wiki/ | |
| # - https://hub.docker.com/r/netboxcommunity/netbox | |
| # - https://cloud.google.com/sql/docs/postgres/configure-private-ip | |
| # - https://cloud.google.com/sql/docs/postgres/create-instance | |
| # - https://cloud.google.com/sql/docs/postgres/create-manage-databases#gcloud |
This file contains hidden or 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
| # EDIT THIS CODE TO YOUR SPECIFIC NEEDS | |
| # THIS CODE REQUIRES SPECIFIC HTML CODE TO BE PLACED | |
| # INSIDE THE TEMPLATE EXAMPLE FOUND BELOW | |
| from flask import Flask, flash | |
| def some_method(): |
This file contains hidden or 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 pathlib | |
| def write_it(): | |
| if not pathlib.Path('hehe').is_file(): | |
| other_var = "MyName" | |
| my_var = f''' | |
| def main(): | |
| print( | |
| """Hello {other_var}, |
This file contains hidden or 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
| FROM ubuntu:16.04 | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| unzip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN wget --quiet https://releases.hashicorp.com/terraform/0.11.3/terraform_0.11.3_linux_amd64.zip \ | |
| && unzip terraform_0.11.3_linux_amd64.zip \ | |
| && mv terraform /usr/bin \ |
This file contains hidden or 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 rand_numb | |
| def main(): | |
| b = rand_numb.gg | |
| print(b) | |
| return b |