Skip to content

Instantly share code, notes, and snippets.

View jeansf's full-sized avatar
🏠
Working from home

Jean Soares Fernandes jeansf

🏠
Working from home
View GitHub Profile
@jeansf
jeansf / backend.sh
Last active February 11, 2022 15:07
Shell Script Update
#!/bin/sh
echo ""
echo "╔════════════════════════════════════════════════════════════════════════════════════════╗"
echo "║ ██████╗ █████╗ ██████╗██╗ ██╗ ███████╗███╗ ██╗██████╗ ║"
echo "║ ██╔══██╗██╔══██╗██╔════╝██║ ██╔╝ ██╔════╝████╗ ██║██╔══██╗ ║"
echo "║ ██████╔╝███████║██║ █████╔╝█████╗█████╗ ██╔██╗ ██║██║ ██║ ║"
echo "║ ██╔══██╗██╔══██║██║ ██╔═██╗╚════╝██╔══╝ ██║╚██╗██║██║ ██║ ║"
echo "║ ██████╔╝██║ ██║╚██████╗██║ ██╗ ███████╗██║ ╚████║██████╔╝ ║"
echo "║ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝╚═════╝ ║"
echo "╚════════════════════════════════════════════════════════════════════════════════════════╝"
@jeansf
jeansf / backend.sh
Last active February 11, 2022 15:07
PIX Shell Script Update
#!/bin/sh
echo ""
echo "╔════════════════════════════════════════════════════════════════════════════════════════╗"
echo "║ ██████╗ █████╗ ██████╗██╗ ██╗ ███████╗███╗ ██╗██████╗ ║"
echo "║ ██╔══██╗██╔══██╗██╔════╝██║ ██╔╝ ██╔════╝████╗ ██║██╔══██╗ ║"
echo "║ ██████╔╝███████║██║ █████╔╝█████╗█████╗ ██╔██╗ ██║██║ ██║ ║"
echo "║ ██╔══██╗██╔══██║██║ ██╔═██╗╚════╝██╔══╝ ██║╚██╗██║██║ ██║ ║"
echo "║ ██████╔╝██║ ██║╚██████╗██║ ██╗ ███████╗██║ ╚████║██████╔╝ ║"
echo "║ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝╚═════╝ ║"
echo "╚════════════════════════════════════════════════════════════════════════════════════════╝"
@jeansf
jeansf / Dockerfile apache
Created December 6, 2019 21:26
Docker Images
FROM debian:buster-slim
MAINTAINER Jean Soares Fernandes <jeansf>
# Setup timezone
ENV TZ=America/Sao_Paulo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Update sources
RUN apt-get update -y
@jeansf
jeansf / fix-nat.sh
Last active September 5, 2020 17:31
BBB Support
PIP=111.111.111.111
DIP=222.222.222.222
iptables -t nat -A OUTPUT -j DNAT -d $PIP --to-destination $DIP
@jeansf
jeansf / finalize.sh
Last active November 22, 2023 14:14
Jitsi Token Moderation
#!/bin/bash -e
PATH=${PATH}:/usr/local/bin
# Configure Recordings
RECORDINGS_DIR=$1
ROOM=`jq -r ".meeting_url" ${RECORDINGS_DIR}/metadata.json | sed -e 's|^[^/]*//.*/||'`