Skip to content

Instantly share code, notes, and snippets.

pando85

Block or report user

Report or block pando85

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pando85
pando85 / user_data_jenkins_slave.sh
Created May 30, 2019
User Data for jenkins slave in Openstack
View user_data_jenkins_slave.sh
#!/bin/bash
curl ${SLAVE_JAR_URL} -o /var/lib/jenkins/agent.jar
#/etc/systemd/system/sebasshtian.service
cat << EOF > /etc/systemd/system/jenkins-slave.service
[Unit]
Description=Jenkins-slave
After=network.target
@pando85
pando85 / docker_arm.md
Created Mar 4, 2019
Docker arm images
View docker_arm.md

Docker in ARM

Build

requirements

  • qemu-user-static package installed.
  • {"experimental": true} in /etc/docker/daemon.json

Dockerfile

@pando85
pando85 / debug.md
Created Jan 21, 2019
Debug process
View debug.md

Debug processes

Files acceded by process

strace -f -t -e trace=file <command>
@pando85
pando85 / notify
Created Dec 22, 2018
notify to telegram with simple curl
View notify
#!/bin/sh
TOKEN=
CHAT_ID=
curl -s -X POST https://api.telegram.org/bot${TOKEN}/sendMessage -d chat_id=$CHAT_ID -d text="$1"
View mariadb.md

MariaDB Galera

MariaDB in multi-master configuration. Allow scalability.

It works, inclusive, over the WAN network.

Requirements

  • Minimum 3 masters
View zfz.md

fzf

install

config

# Setup fzf
# ---------
@pando85
pando85 / compose.py
Created Aug 17, 2017
compose functions in python like haskell
View compose.py
class Composable(object):
''' A function decorator that allows you to use Haskell style dot notation for function composition '''
fns = {}
def __init__(self, fn):
self.fn = fn
Composable.fns[fn.__name__] = fn
def __call__(self, *args, **kwargs):
''' simply calls the function '''
@pando85
pando85 / rsyslog_elasticsearch_docker.conf
Last active Jul 14, 2017
rsyslog configuration omelasticsearch with docker
View rsyslog_elasticsearch_docker.conf
#Ignore logs kibana
#:syslogtag, isequal, "kibana:" stop
#Ignore daemon severity
#daemon.* stop
#Ignore facility cron
#cron.* stop
#Ignore logs elasticsearch
You can’t perform that action at this time.