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
curl -XPUT localhost:9200/_template/logstash -d ' | |
{ | |
"template" : "logs-*", | |
"settings" : { | |
"index.analysis.analyzer.default.type": "simple", | |
"index.cache.field.type": "soft", | |
"index.compress.stored": true, | |
"index.merge.policy.max_merged_segment": "5g", | |
"index.query.default_field": "@message", | |
"index.refresh_interval": "5s", |
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.2" | |
services: | |
nfs-server: | |
image: itsthenetwork/nfs-server-alpine | |
ports: | |
- "2049:2049" | |
environment: | |
- SHARED_DIRECTORY=/code | |
volumes: | |
- .:/code |
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
# https://meltdownattack.com | |
- name: Check Linux systems against Meltdown and Spectre | |
hosts: "{{ target_hosts | default('all') }}" | |
become: yes | |
vars: | |
# https://github.com/speed47/spectre-meltdown-checker/archive/4961f8327f1cb391f10659c12255ac2dea0116cc.zip | |
checker_version: 4961f8327f1cb391f10659c12255ac2dea0116cc | |
tasks: |
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
# https://meltdownattack.com | |
- name: Patch Linux systems against Meltdown and Spectre | |
hosts: "{{ target_hosts | default('all') }}" | |
become: yes | |
vars: | |
reboot_after_update: "{{ reboot_after_update | default('no') }}" | |
packages: | |
# https://access.redhat.com/security/vulnerabilities/speculativeexecution | |
RedHat7: |
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
# https://meltdownattack.com | |
- name: Patch Linux systems against Meltdown and Spectre | |
hosts: "{{ target_hosts | default('all') }}" | |
become: yes | |
vars: | |
reboot_after_update: "{{ reboot_after_update | default('no') }}" | |
packages: | |
# https://access.redhat.com/security/vulnerabilities/speculativeexecution | |
RedHat7: |
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.6" | |
services: | |
gitlab: | |
image: gitlab/gitlab-ce:latest | |
restart: always | |
ports: | |
- "24:22" | |
- "80:80" | |
- "443:443" | |
volumes: |
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
<html> | |
<head> | |
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> | |
<script type="text/javascript"> | |
// This is a quick hack to be able to see Gantt-like Timelines of gitlab build pipelines. | |
// It makes it easier to diagnose the running time of the pipelines and understand resource usage. | |
// Ideally, gitlab would directly provide such a view in its frontend. | |
google.charts.load('current', {'packages':['gantt']}); |
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
19,20c19 | |
< CONFLICTS_INSTALL= zstd | |
< CONFLICTS= beats | |
--- | |
> CONFLICTS= beats6* | |
25a25,27 | |
> CGO_CFLAGS= -I. | |
> CGO_LDFLAGS= -L. | |
> |
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.2' | |
services: | |
haproxy: | |
container_name: haproxy | |
image: haproxy | |
ports: | |
- "80:8080" | |
volumes: | |
- ./haproxy:/usr/local/etc/haproxy |
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 run --rm -ti alpine:3.11.6 sh | |
apk update | |
apk add -U git-crypt gnupg | |
export GPG_PRIV=$(cat /cat/to/priv.key) | |
export GPG_PUB=$(cat /path/to/pub.key) | |
export GPG_PASSPHRASE="myPassphrase" | |
export GPG_KEYID=$(echo "${GPG_PUB}" | gpg --with-colons --import-options show-only --import |grep pub |awk -F':' '{print $5}') | |
export GPG_EMAIL=$(echo "${GPG_PUB}" | gpg --with-colons --import-options show-only --import |grep uid| awk -F:: '{print $5}'| grep -o -e '<.*>' |sed -e 's/[<>]*//g') |
OlderNewer