Skip to content

Instantly share code, notes, and snippets.

View MrYoda's full-sized avatar

Anton Kuzmichev MrYoda

  • Russia, Moscow
View GitHub Profile
@mnaser
mnaser / build-beats.sh
Created September 22, 2018 22:53
Script to build ARM64 beats (must run on x86)
#!/bin/bash
sudo add-apt-repository ppa:gophers/archive
sudo apt-get update
sudo apt-get -y install docker.io libpcap-dev python-virtualenv golang-1.10-go git
sudo usermod -aG docker $USER
# logout and login for groups to update
export GOPATH="$HOME/go"
@t3easy
t3easy / .gitlab-ci.yml
Last active February 12, 2024 18:05
Build and deploy docker containers with GitLab CI
image: an-image-with-docker-and-docker-compose
variables:
DOCKER_TLS_VERIFY: "1"
DOCKER_CERT_PATH: ".docker"
before_script:
- mkdir -p $DOCKER_CERT_PATH
- echo "$DOCKER_CA" > $DOCKER_CERT_PATH/ca.pem
- echo "$DOCKER_CERT" > $DOCKER_CERT_PATH/cert.pem
@ricsiga
ricsiga / delete_old_filebeat_indices.sh
Created June 20, 2016 13:36
delete old filebeat indices from elasticsearch
#!/bin/bash
index=$(date --date='14 days ago' +%Y.%m.%d)
curl -s -XDELETE "http://localhost:9200/filebeat-$index?pretty"
@utek
utek / Exclude_tables.md
Last active October 13, 2023 16:07
Define ignored tables in alembic.ini

Add this in your ini file:

[alembic:exclude]
tables = spatial_ref_sys

In env.py:

    import re 
    
#!/bin/bash
PROGNAME=${0##*/}
INPUT=''
QUIET='0'
NOSTATS='0'
max_input_size=0
max_output_size=0
usage()
@codeinthehole
codeinthehole / run.py
Created November 21, 2012 13:46
Sample Celery chain usage for processing pipeline
from celery import chain
from django.core.management.base import BaseCommand
from . import tasks
class Command(BaseCommand):
def handle(self, *args, **kwargs):