Skip to content

Instantly share code, notes, and snippets.

Avatar

Tadeu Bernacchi tbernacchi

View GitHub Profile
View Vagrantfile
# -*- mode: ruby -*-
# # vi: set ft=ruby :
$alias = <<SCRIPT
#!/bin/bash
cat > ~root.bashrc <<EOF
# .bashrc
# User specific aliases and functions
alias rm='rm'
@tbernacchi
tbernacchi / curl.md
Created May 29, 2019 — forked from subfuzion/curl.md
curl POST examples
View curl.md

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

View install_monaco_font.sh
#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#TODO: put validation if folder already exists
sudo mkdir ttf-monaco
@tbernacchi
tbernacchi / iptables_rules.sh
Created May 9, 2018 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
View iptables_rules.sh
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
View zabbix-all-in-one-bare-metal.yaml
apiVersion: v1
kind: Service
metadata:
name: zabbix-web
labels:
app: zabbix
spec:
ports:
- port: 80
targetPort: 80
View Dockerfile_rundeck
FROM debian
RUN \
echo "deb http://ftp.us.debian.org/debian sid main" >> /etc/apt/sources.list && \
apt-get -y update && \
apt-get install -y wget && \
apt-get install -y apt-utils && \
apt-get install -y openjdk-8-jre && \
apt-get install openssh-client openssh-server -y && \
apt-get install -y uuid-runtime && \
View docker-compose-phpadmin.yml
version: '2'
services:
db:
image: "mysql:latest"
restart: always
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD: teste123
View docker-compose.yml
version: '2'
services:
db:
image: mysql
restart: always
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD: teste123
View ajusta.yml
---
#SELINUX
- name: Desabilitando o SeLinux
selinux: policy=targeted state=disabled
#FIREWALLD
- name: Desabilitando o firewalld
systemd: name=firewalld state=stopped enabled=no
#TIMEZONE
- name: Ajustando o timezone do sistema
timezone: name=America/Sao_Paulo
View mysql_secure_installation.yml
---
##VARIAVEIS
- name: Variaveis
include_vars: /etc/ansible/vars/mariadb.yml
##MARIADB RUNNING
- name: MariaDB running...
service: name=mariadb state=started enabled=true
##INSTALA O MODULO PYTHONDB