Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
version: "3.7" | |
services: | |
traefik: | |
image: "traefik:v2.2" | |
container_name: "traefik" | |
ports: | |
- "80:80" | |
- "443:443" | |
- "8080:8080" |
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
#include <GxEPD2_BW.h> | |
#include <Fonts/FreeMonoBold9pt7b.h> | |
#define EPD_CS SS | |
GxEPD2_BW<GxEPD2_213_B73, GxEPD2_213_B73::HEIGHT> display(GxEPD2_213_B73(/*CS=5*/ SS, /*DC=*/ 17, /*RST=*/ 16, /*BUSY=*/ 4)); // GDEH0213B73 | |
#define BAT 35 |
#!/usr/bin/env groovy | |
/** | |
* List all Git branches of a repo. | |
* @author thabet.amer@gmail.com | |
* @since Jenkins 2.204.1 | |
* @params String url for Git repo URL, String credentialID, Bool activeChoice if ActiveChoice plugin used, String defaultBranch | |
* @return String array of branch names | |
* | |
* Dependencies: |
def sendTelegram(message) { | |
def encodedMessage = URLEncoder.encode(message, "UTF-8") | |
withCredentials([string(credentialsId: 'telegramToken', variable: 'TOKEN'), | |
string(credentialsId: 'telegramChatId', variable: 'CHAT_ID')]) { | |
response = httpRequest (consoleLogResponseBody: true, | |
contentType: 'APPLICATION_JSON', | |
httpMode: 'GET', | |
url: "https://api.telegram.org/bot$TOKEN/sendMessage?text=$encodedMessage&chat_id=$CHAT_ID&disable_web_page_preview=true", |
version: '3.2' | |
services: | |
collectd: | |
image: fr3nd/collectd | |
privileged: true | |
network_mode: host | |
volumes: | |
- /proc:/mnt/proc:ro | |
- ./collectd.conf:/etc/collectd/collectd.conf |
import csv | |
import logging | |
import gevent | |
from psycopg2 import ( | |
connect, | |
sql, | |
) | |
from django.conf import ( |
from fabric.api import env, run as fabric_run | |
from fabric.contrib.project import rsync_project | |
env.app_path = '/home/backend' | |
env.user = 'circle' | |
env.use_ssh_config = True | |
env.disable_knodwn_hosts = True | |
env.colorize_errors = True |
#!groovy | |
// I suggest you to add those functions as Shared Library https://jenkins.io/doc/book/pipeline/shared-libraries/ | |
@Library('your-shared-lib') _ | |
pipeline { | |
stages { | |
//.. | |
stage('Run Unit Tests') { | |
steps { |