Skip to content

Instantly share code, notes, and snippets.

View rcarmonad's full-sized avatar

Rodrigo Carmona rcarmonad

  • Santiago, Chile
View GitHub Profile
@rcarmonad
rcarmonad / .gitignore
Created September 13, 2021 15:42
gitignore
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### STS ###
.apt_generated
.classpath
.factorypath
@rcarmonad
rcarmonad / InstallJavaOnUbuntu.md
Last active April 11, 2023 15:30
Manually install java on Ubuntu

Install java on ubuntu /tested in 16.04, 18.04, 20.04

Java 6

For java 6, download bin file from oracle archive

Create a folder:

$ sudo mkdir -p /opt/java
@rcarmonad
rcarmonad / docker-ce-ubuntu-17.10.md
Created April 19, 2018 20:57 — forked from levsthings/docker-ce-ubuntu-17.10.md
Install Docker CE on Ubuntu 17.10

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.

If you are used to installing Docker to your development machine with get-docker script, that won't work either. So the solution is to install Docker CE from the zesty package.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@rcarmonad
rcarmonad / gist:9792101226d6129af5582e08f0ad8654
Created April 3, 2017 15:52
Agregar mi id_rsa al server remoto que, obviamente no lo tiene
cat ~/.ssh/id_rsa.pub | ssh root@[your.ip.address.here] "cat >> ~/.ssh/authorized_keys"
@rcarmonad
rcarmonad / zsh.md
Created April 15, 2016 13:52 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@rcarmonad
rcarmonad / HAProxy.cfg
Created February 18, 2016 13:33
Configuracion HAProxy
global
log 127.0.0.1 local0 notice
maxconn 2000
user haproxy
group haproxy
defaults
log global
mode http
option httplog
@rcarmonad
rcarmonad / logback.xml
Created November 24, 2015 22:08 — forked from jcraane/logback.xml
Sample logback.xml file with console and rolling file appender. The rollover is time based (daily) and size based, 5MB.
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
<appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<charset>UTF-8</charset>
<Pattern>%d %-4relative [%thread] %-5level %logger{35} - %msg%n</Pattern>
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
@rcarmonad
rcarmonad / gist:403f6cabbb8b6f1844c5
Created October 2, 2014 18:19
Certificados y keystores
http://ruchirawageesha.blogspot.com/2010/07/how-to-create-clientserver-keystores.html
#!/bin/bash
# This script is edited by Brice Dutheil
# See there in french http://blog.arkey.fr/2012/07/30/script-pour-installer-le-jdk-5-sur-macosx-lion/
# Translate button is broken for now, please use Google to translate this website.
#
# 2014/02/10 Updated the script to run on OSX 10.9 Maverick
#
# 2013/05/11 Added a few more guidance when Java Preferences is not available anymore
# Added a simple example of a JDK switch function.
@rcarmonad
rcarmonad / sudoers
Created July 28, 2014 22:00
How to add a user to sudoers on centos
#login as root
user@machine $ su
password: [enter password]
root@machine:# visudo
#####
### search for line
## Allow root to run any commands anywhere
root ALL=(ALL) ALL