Skip to content

Instantly share code, notes, and snippets.

View boinkbr's full-sized avatar
🎯

Fabio Fraga Machado boinkbr

🎯
  • Florianopolis, SC, Brazil
  • 22:44 (UTC -03:00)
  • X @devoplnx
View GitHub Profile
@boinkbr
boinkbr / elasticsearch-curl.md
Created January 10, 2024 17:13
Delete indices from Elasticsearch with cURL

To get all registered indices and remove one:

curl -XGET http://elasticsearch:9200/_cat/indices | sort
curl -XDELETE http://elasticsearch:9200/syst-log-forex-core-20170726
@boinkbr
boinkbr / proxy.apache.conf
Created April 27, 2022 18:09 — forked from chrisjhoughton/proxy.apache.conf
Sample Nginx reverse proxy to Apache set up for Wordpress.
<VirtualHost *:{PORT}>
ServerName www.yourdomain.com
ServerAdmin [email protected]
DocumentRoot /var/www/yourdir/
<Directory /var/www/yourdir>
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
@boinkbr
boinkbr / check-container.sh
Created June 22, 2020 21:18 — forked from hazbo/check-container.sh
A small script to remove (force) a container if it exists
#!/bin/bash
CONTAINER=$1
RUNNING=$(docker inspect --format="{{ .State.Running }}" $CONTAINER 2> /dev/null)
if [ $? -eq 1 ]; then
echo "'$CONTAINER' does not exist."
else
/usr/bin/docker rm --force $CONTAINER
@boinkbr
boinkbr / Dockerfile-Nginx
Created February 5, 2020 17:24 — forked from joekr/Dockerfile-Nginx
Kubernetes + Rails (NGINX & Unicorn) on GCE
# Set nginx base image
FROM nginx
# Copy custom configuration file from the current directory
COPY nginx.conf /etc/nginx/nginx.conf
@boinkbr
boinkbr / Jenkinsfile
Created January 13, 2020 18:11 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
# MariaDB 10.3 CentOS repository list - created 2018-11-14 19:22 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1