Skip to content

Instantly share code, notes, and snippets.

View almirb's full-sized avatar

Almir Bolduan almirb

View GitHub Profile
@hwetsman
hwetsman / readme.md
Last active July 15, 2022 19:59 — forked from AlexMercedCoder/readme.md
Data Terms/Concepts Cheatsheet

Data Analytics/Science Terms and Concepts Cheatsheet

Structured Data

Data is organized to meet a schema. Think tables which organize data into rows and columns.

Unstructured Data

Data is unorganized and lacks a schema. Imagine collections of html documents including text and images not organized in any consistent way.

@JeanPoffo
JeanPoffo / configure-linux-instance-mongodb.md
Last active June 11, 2024 13:00
Artigo tratando sobre a configuração de uma instância Linux de alta performance para executar o MongoDB

Criando uma Instância Linux de Alta Performance para o MongoDB

A seguir, teremos uma série de dicas divididas em tópicos para configurar uma instância Linux de alta performance para executar o MongoDB.

Incremento do Limite de Processos do OS

O MongoDB precisa criar vários descritores de arquivos quando vários clientes se conectam, sendo necessário ter vários processos simultâneos para operar com eficácia. Os padrões normais do OS acabam por limitar essa quantidade de processos.

Vamos alterar os limites de processos no OS.

@victorouttes
victorouttes / dremio.md
Last active February 7, 2024 18:18
Instalação do Dremio

Instalação básica do Dremio

Rodar este docker-compose.yml no servidor:

version: '3.1'

services:

  dremio:
    image: dremio/dremio-oss:<tag>
 container_name: dremio
@estorgio
estorgio / Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS.md
Last active June 19, 2024 15:50
Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

Update 28 July 2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Update 23 May 2020: This guide is ALREADY OUTDATED and might no longer work with new versions of Ubuntu and VirtualBox. Please consider switching to the updated guide instead. I will no longer respond to the replies to this gist. Thank you.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

@mvladk
mvladk / mongodb-s3-backup-mongoexport-query.sh
Last active October 27, 2022 20:53 — forked from eladnava/mongodb-s3-backup.sh
Automatically backup a MongoDB database to S3 using mongoexport with query, tar.bz2, and awscli (Ubuntu 14.04 LTS)
#!/bin/sh
# Make sure to:
# 1) Name this file `backup.sh` and place it in /home/ubuntu
# 2) Run sudo apt-get install awscli to install the AWSCLI
# 3) Run aws configure (enter s3-authorized IAM user and specify region)
# 4) Fill in DB host + name
# 5) Create S3 bucket for the backups and fill it in below (set a lifecycle rule to expire files older than X days in the bucket)
# 6) Run sudo mkdir /data/tmp
# 7) Run sudo chmod 777 /data/tmp/
@bdtech
bdtech / cloudflare-ban.sh
Created June 17, 2013 14:19
OSSEC active response to block an IP at the Cloudflare reverse proxy level who triggers errors in short time frame in nginx logs. Required: Ossec config: sample to block IPs with multiple 500 errors or 400 errors within a minute or two timeframe. /var/ossec/etc/ossec.conf <command> <name>cloudflare-ban</name> <executable>cloudflare-ban.sh</execu…
#!/bin/sh
# Adds an IP to Cloudflare IP block list
# Path: /var/ossec/active-response/bin/cloudflare-ban.sh
#
ACTION=$1
USER=$2
IP=$3
PWD=`pwd`
TKN='CF API KEY'