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
cassandra: | |
hostNetwork: false | |
replicaCount: 3 | |
storage: | |
capacity: 50Gi | |
resources: | |
requests: | |
cpu: 2 | |
memory: 2Gi | |
maxHeapSize: 2048M |
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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"strings" |
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
name: Create and publish a multiarch Docker image | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'issue**' | |
- '**/issue**' | |
env: |
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
FROM debian:bullseye | |
# Install do server | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN echo "mariadb-server mysql-server/root_password password 123456" | debconf-set-selections | |
RUN echo "mariadb-server mysql-server/root_password_again password 123456" | debconf-set-selections | |
RUN apt-get update && apt-get install mariadb-server -yq | |
# Configuração do acesso externo ao container | |
RUN sed -e 's/bind-address.*/bind-address = 0.0.0.0/g' -i /etc/mysql/mariadb.conf.d/50-server.cnf |
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
#!/usr/bin/env bash | |
# This script exports to the standard output all the security command center findings | |
# that you may have in your all your Google cloud organizations, in a CSV format. | |
gcloud organizations list --format='value(name)' | while read ORGANIZATION_ID ; do | |
gcloud scc findings list $ORGANIZATION_ID \ | |
--format='csv(finding.category, finding.severity, finding.state, finding.eventTime, finding.externalUri)' | |
done |
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 | |
# Copyright 2021 Ronoaldo JLP <ronoaldo@gmail.com> | |
# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you under the Apache License, Version 2.0 (the | |
# "License"); you may not use this file except in compliance |
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 | |
### BEGIN INIT INFO | |
# Provides: boxdns | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Updates the DNS dynamically | |
# Description: Updates the DNS of the box dynamically |
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 | |
while true ; do | |
echo "Starting server ..." | |
minetestserver --terminal | |
echo "Server crashed/terminated. Restarting ..." | |
sleep 3 | |
done |
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 | |
set -x | |
# Get command options | |
export project="$1" | |
export zone="$2" | |
export vm="$3" | |
echo "Launching instance $project/$zone/$vm ..." | |
# Alias with project/zone options |
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 | |
# Check root | |
if [ ! $( id -u ) -eq 0 ]; then | |
echo Must be run as root. Trying sudo $0 $@ | |
exec sudo $0 $@ | |
exit $? | |
fi | |
# Install dependencies |
NewerOlder