Skip to content

Instantly share code, notes, and snippets.

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

Gutierrez Tineo, Cesar tineo

🏠
Working from home
  • NTT DATA EMEAL
  • Lima, Peru
View GitHub Profile
test
@tineo
tineo / start_docker_registry.bash
Created March 10, 2021 04:16 — forked from u1i/start_docker_registry.bash
Start docker registry with letsencrypt certificates and Basic Auth
#!/usr/bin/env bash
# install docker
# https://docs.docker.com/engine/installation/linux/ubuntulinux/
# install docker-compose
# https://docs.docker.com/compose/install/
# install letsencrypt
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04
@tineo
tineo / Setup ELK Stack with Spring Boot.md
Created January 21, 2021 03:20 — forked from pavankjadda/Setup ELK Stack with Spring Boot.md
Setup ELK Stack logging with Spring Boot
  1. Download Elastic Search and unzip it
  2. Start Elastic search with the following command and go to URL http://localhost:9200
$ bin/elasticsearch
  1. Download LogStash and unzip it
  2. Create logstash-elk.conf file on logstash home directory with the following content and change the log file location and index name based on your settings
input {
 file {
@tineo
tineo / service.bat
Last active October 19, 2020 21:25
Service
@echo off
:start
sc query MyService | find "STATE" | find "RUNNING"
if errorlevel 1 WMIC process Where "CommandLine Like '%% -jar myjar.jar%%'" Call Terminate
WMIC process where caption="java.exe" get commandline | findstr "myjar.jar" > nul
if errorlevel 1 sc stop MyService && sc start MyService
Sleep 10
goto start
@tineo
tineo / wkhtmltopdf.sh
Created June 21, 2019 06:31 — forked from akhmadkresna/wkhtmltopdf.sh
wkhtmltopdf install on ubuntu 18.04
sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo apt-get install -f
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
@tineo
tineo / zipping.sh
Created January 5, 2019 07:38
Zipping Vera
#!/bin/bash
## Example
##
## sh zipping.sh /home/tineo/Escritorio/test docomo2 200
##
folder_data=$1
zip_name=$2
limite=$3
@tineo
tineo / ora12c.txt
Last active October 27, 2018 05:25
Install oracle 12c
#install ora12c in centos
https://bl.ocks.org/martndemus/7ad8209f9be9185bcf3a
#swap
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-centos-7
https://unix.stackexchange.com/a/413661/256101
https://raw.githubusercontent.com/wscherphof/oracle-12c/master/step1/db_install.rsp
$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang
sudo apt-get install elixir
mix local.hex
mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez
sudo apt-get install nodejs-legacy
@tineo
tineo / package.json
Last active August 22, 2018 17:17
Final Phoenix webpack.config.js
{
"repository": {},
"license": "MIT",
"scripts": {
"deploy": "webpack --mode production",
"start": "yarn run watch",
"watch": "webpack --mode development --watch-stdin"
},
"dependencies": {
"bootstrap": "4.1.2",