- Il volto pubblico del nostro prodotto di punta: Opencity Italia
- Quello che cerchiamo/offriamo a un Senior Developer
- Il codice
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
| version: '3.8' | |
| services: | |
| elastic-firenze: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:7.17.4 | |
| networks: | |
| - internal | |
| environment: | |
| - node.name=es01 |
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 | |
| [[ -n $DEBUG ]] && set -x | |
| if [[ $UID -gt 0 ]]; then | |
| echo "Script must run as root" | |
| exit 1 | |
| fi | |
| proxy_address=${PROXY_SERVER:-http://127.0.0.1:3128} |
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
| package main | |
| import ( | |
| "log" | |
| "os/exec" | |
| "strings" | |
| ) | |
| func main() { |
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
| if ! which byobu >/dev/null; then | |
| echo "Byobu not installed, skip configuration" | |
| exit 1 | |
| fi | |
| [[ ! -f /var/lock/.byobu-shell-fixed ]] && \ | |
| echo "fixes byobu problem with UMASK, now byobu-shell is a login shell" && \ | |
| sed -i -e 's/exec "$SHELL"/exec "$SHELL" --login/' /usr/bin/byobu-shell && \ | |
| touch /var/lock/.byobu-shell-fixed |
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
| wget $(curl -s https://api.github.com/repos/$USER/$REPO/releases/latest | jq -r '.assets[] | select(.name|match("Linux_x86_64.tar.gz$")) | .browser_download_url') && tar xzvf *.tar.gz kaf |
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 | |
| set -e | |
| [[ $DEBUG ]] && set -x | |
| conf=/etc/apt/apt.conf.d/50unattended-upgrades | |
| if [[ ! -f $conf ]]; then | |
| echo "Cannot fine /etc/apt/apt.conf.d/50unattended-upgrades, is this an Ubuntu host?" | |
| exit 1 |
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 | |
| # vim: autoindent tabstop=2 shiftwidth=2 expandtab softtabstop=2 fileencoding=utf-8 | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| DEPLOY_CONTEXT= |
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
| docker logs -f traefik | \ | |
| goaccess \ | |
| --log-format "%h %^ %e [%d:%t %^] \"%r\" %s %b \"%R\" \"%u\" %^ \"%v\" \"%^\" %Lms" \ | |
| --date-format "%d/%b/%Y" --time-format "%H:%M:%S" |
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 | |
| set -ex | |
| if docker plugin inspect loki > /dev/null; then | |
| echo "Loki plugin already installed" | |
| else | |
| docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions | |
| fi |
NewerOlder