Skip to content

Instantly share code, notes, and snippets.

View Leopere's full-sized avatar
💭
I'm sending you a message from the past and this is it.

Leopere Leopere

💭
I'm sending you a message from the past and this is it.
View GitHub Profile
@Leopere
Leopere / acquis.yml
Created May 23, 2022 13:48
Crowdsec and Docker Swarm templates.
filenames:
- /var/log/nginx/*.log
- ./tests/nginx/nginx.log
#this is not a syslog log, indicate which kind of logs it is
labels:
type: nginx
---
filenames:
- /var/log/auth.log
- /var/log/syslog

Keybase proof

I hereby claim:

  • I am leopere on github.
  • I am colin_ (https://keybase.io/colin_) on keybase.
  • I have a public key ASB6VRdTdc90eWn2-qU_GUP1SLk3FQvqpWyuLrAiBlqKZQo

To claim this, I am signing this object:

@Leopere
Leopere / docker-compose.yml
Created January 22, 2019 22:26
This won't work out of the box but shows you a baseline.
version: "3"
networks:
traefik:
external: true
services:
netdata:
image: titpetric/netdata
labels:
### Keybase proof
I hereby claim:
* I am leopere on github.
* I am colin_ (https://keybase.io/colin_) on keybase.
* I have a public key ASDGRq3trrPvYQauAorL9rLpKsBIkDugZxggc4ZyFqegFQo
To claim this, I am signing this object:
@Leopere
Leopere / .gitlab-ci.yml
Created February 2, 2017 05:46
GoLang gitlab-ci for discord-cli
compile-go-1.8-alpine:
image: golang:1.8-alpine
stage: build
script:
- apk update && apk add git -y
- pwd
- ls -lAh
- mkdir -pv /go/src/github.com/Rivalo/discord-cli
- cp -Rv ./* /go/src/github.com/Rivalo/discord-cli
- cd /go/src/github.com/Rivalo/discord-cli
@Leopere
Leopere / cloudflare.sh
Last active December 13, 2016 02:39 — forked from anonymous/-
#!/bin/sh
## Inspired by
## http://epistrephe.in/2016-09-21/cloudflare-dynamic-dns/
## Load config
if [ -L $0 ]
then
source `readlink -e $0 | sed "s:[^/]*$:config:"`
else
source `echo $0 | sed "s:[^/]*$:config:"`
@Leopere
Leopere / sql_only.yml
Created April 3, 2015 04:41
Untested sql_only.yml config.
# A container for all things Data, be sure to set a secret password for
# discourse account, SOME_SECRET is just an example
#
templates:
- "templates/postgres.template.yml"
- "templates/sshd.template.yml"
expose:
- "5432:5432"
@Leopere
Leopere / web_nosql.yml
Created April 3, 2015 04:38
Untested web_nosql.yml configuration.
# IMPORTANT: SET A SECRET PASSWORD in Postgres for the Discourse User
# TODO: change SOME_SECRET in this template
templates:
- "templates/sshd.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
- "templates/redis.template.yml"
expose:
@Leopere
Leopere / -
Last active August 29, 2015 14:18 — forked from anonymous/-
# docker ps |grep data
2afa8917717e local_discourse/data:latest "/sbin/boot" 5 minutes ago Up 5 minutes 0.0.0.0:5432->5432/tcp, 0.0.0.0:6379->6379/tcp data
I, [2015-04-01T03:12:12.686184 #43] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
URGENT: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
Failed to initialize site default
rake aborted!
Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)
@Leopere
Leopere / mc.conf
Last active November 26, 2020 20:13 — forked from nathanielc/gist:9b98350ccbcbf21256d7
Systemd unit for minecraft-spigot server
#!/bin/bash
#
# Settings file for minecraft-init
# ================================
#
# Make a copy of this file named config
# and edit the variables to your needs.
#
### ChamCode
# Name of this server instance