Skip to content

Instantly share code, notes, and snippets.

@cinco
cinco / Dockerfile
Created July 11, 2019 03:58 — forked from ktquez/Dockerfile
Dockerfile for PHP7 memcache and Redis ext
FROM php:7-fpm
# Install modules
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libmemcached-dev \
libmysqlclient-dev \
libicu-dev \
@cinco
cinco / karigran.com.zone
Created June 14, 2019 01:52 — forked from maazghani/karigran.com.zone
karigran.com.zone
; Domain: karigran.com
; Exported (y-m-d hh:mm:ss): 2015-05-30 15:15:58
;
; This file is intended for use for informational and archival
; purposes ONLY and MUST be edited before use on a production
; DNS server.
;
; In particular, you must update the SOA record with the correct
; authoritative name server and contact e-mail address information,
; and add the correct NS records for the name servers which will
@cinco
cinco / linux-dns.md
Created June 14, 2019 01:35 — forked from roulette6/linux-dns.md
Linux managing DNS servers (LPIC-2)

Linux managing DNS servers (LPIC-2)

Quick command reference

lsb_release -d          # get Linux distro and version
cat /etc/centos-release

# ubuntu
sudo /etc/init.d/bind9 {start | stop | restart}

sudo -u bind rndc status

@cinco
cinco / mediacenter-howto.md
Created May 23, 2019 21:06
MEDIACENTER AUTOMATIZADO

MEDIACENTER AUTOMATIZADO

requisitos

Sonarr - para séries https://sonarr.tv/

Ele é o gestor em que você seleciona as series que quer assistir, depois de adicionar a serie, o sonarr passa a monitorar a series e baixar os novos episódios de forma automática utilizando o cliente de torrent de sua preferência.

Radarr - para filmes https://radarr.video/

Ele é o gestor em que você seleciona os filmes que quer assistir, depois de adicionar o filme, o radarr passa a monitorar a series e baixar os novos episódios de forma automática utilizando o cliente de torrent de sua preferência.

@cinco
cinco / monitrc
Created May 19, 2019 06:21 — forked from franck/monitrc
monit config file (nginx, mysql, redis, tomcat)
###############################################################################
## Monit control file
###############################################################################
##
## Comments begin with a '#' and extend through the end of the line. Keywords
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
##
## Below you will find examples of some frequently used statements. For
## information about the control file, a complete list of statements and
## options please have a look in the monit manual.
set alert usera@example.com
set mailserver smtp.gmail.com port 587
username "user@gmail.com"
password "password"
using TLSV1
with timeout 30 seconds
set mail-format {
from: monit@server.example.com
@cinco
cinco / monit.md
Created May 19, 2019 06:03 — forked from bpostlethwaite/monit.md
monit

monitoring shit with monit

get monit

sudo apt-get install monit

monit configuration is in ~/.monitrc

@cinco
cinco / gitsettings.sh
Last active May 11, 2019 06:03
configuracoes adicionais para o git
#!/bin/bash
# altera o editor padrao do git
git config --global core.editor "subl --wait"
# adiciona atalhos ao bash_profile
FILE=~/.bash_profile
if [ -f $FILE ]; then
sed -i -e '$a\
alias gst="git status "\
alias ga="git add "\
@cinco
cinco / NOTES.md
Created May 11, 2019 05:49 — forked from vik-y/NOTES.md
Docker-compose cheat sheet
@cinco
cinco / git-deployment.md
Created May 10, 2019 19:12 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.