Skip to content

Instantly share code, notes, and snippets.

View marylly's full-sized avatar
💛

Marylly marylly

💛
View GitHub Profile
@marylly
marylly / prometheus.sh
Last active April 13, 2018 17:37
Prometheus Linux SO Installation and Commands
# Instalação do Prometheus
# useradd --no-create-home --shell /bin/false prometheus
# useradd --no-create-home --shell /bin/false node_exporter
# mkdir /etc/prometheus
# mkdir /var/lib/prometheus
# chown prometheus:prometheus /etc/prometheus/
# chown prometheus:prometheus /var/lib/prometheus/
# curl -LO https://github.com/prometheus/prometheus/releases/download/v2.0.0/prometheus-2.0.0.linux-amd64.tar.gz
# tar -xzvf prometheus-2.0.0.linux-amd64.tar.gz
# cp prometheus-2.0.0.linux-amd64/prometheus /usr/local/bin/
@marylly
marylly / Dockerfile-ruby-angular
Last active March 26, 2018 17:26
Ruby and Angular Dockerfile image
FROM ruby
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash -
RUN apt-get install -y nodejs
RUN mkdir ng-app
version: '3.4'
services:
gitlab:
image: gitlab/gitlab-ce:latest
volumes:
- /srv/gitlab/config:/etc/gitlab
- /srv/gitlab/logs:/var/log/gitlab
- /srv/gitlab/data:/var/opt/gitlab
ports:
@marylly
marylly / gitlab.sh
Last active February 15, 2018 13:42
GitLab Configuration and bash commands
# /etc/gitlab.rb - Arquivo de Configuração do Gitlab
# Após a atualização do arquivo, executar o comando abaixo
$ gitlab-ctl reconfigure
# reiniciar o Gitlab
$ gitlab-ctl restart
@marylly
marylly / kubernetes.sh
Last active February 9, 2024 01:53
Bash commands for Kubernetes
# Instalação Kubernetes
# curl -fsSL https://get.docker.com | bash
# apt-get update && apt-get install apt-transport-https
# vim /etc/source.list.d/kubernetes.list
# deb http://apt.kubernetes.io/ kubernetes-xenial main
# apt-get update
# apt-get install -y kubelet kubectl kubeadm
# vim /etc/sysctl.conf
# net.bridge.bridge-nf-call-ip6tables = 1
# net.bridge.bridge-nf-call-iptables = 1
@marylly
marylly / Dockerfile-golang
Created January 11, 2018 17:04
Golang Build Dockerfile
FROM golang:latest
WORKDIR /go/
COPY . .
RUN go get -v -u github.com/go-sql-driver/mysql
RUN go get -v -u github.com/gorilla/mux
RUN go get -v -u github.com/jmoiron/sqlx
RUN go get -v -u github.com/rs/cors
WORKDIR /go/src/gateway/
@marylly
marylly / docker-compose-golang.yml
Last active January 11, 2018 17:04
Docker-composer yaml file for setup Golang Environment
version: "3.4"
services:
golang:
build:
context: .
ports:
- "8004:8000"
@marylly
marylly / angular.sh
Last active January 11, 2018 17:08
Angular CLI Bash Commands
#Cria um novo módulo no App em Angular e diz em qual módulo ele será utilizado
ng g c new-component --module app
#Cria um novo serviço no App em Angular e diz em qual módulo ele será utilizado
ng g s new-component --module app
@marylly
marylly / git.sh
Last active November 13, 2017 15:46
Unix Git Commands
# Remove a verificação das permissões dos arquivos do projeto do Git
$ git config core.filemode
# Stash com comentário customizado
$ git stash save <doing crazy things>
@marylly
marylly / docker-compose-win10.yml
Created September 6, 2017 01:11
Docker Composer Apache 2 + php5.3 for Windows 10
version: "2.1"
services:
web:
image: koder/apache-php-5.3
volumes:
- ./conf/httpd.conf:/usr/local/apache2/conf/httpd.conf
- ./cakephp/:/var/www/web/
ports:
- "8061:8080"