Skip to content

Instantly share code, notes, and snippets.

View ederrafo's full-sized avatar

Eder Rafo Jose Pariwana Espinhal ederrafo

View GitHub Profile
@ederrafo
ederrafo / instruciones-tomcat-ubuntu.md
Last active July 24, 2023 02:42 — forked from saqpsaqp/instruciones-tomcat-ubuntu.md
Instalación Servidor con Tomcat 8 en Ubuntu 18.04 tomcat

Instalación Servidor con Tomcat 8 en Ubuntu 18.04

Requerimientos

Servidor con ubuntu 18.04 recién instalado.

$ sudo apt update
$ sudo apt upgrade

Instalación de Java 8

$ sudo add-apt-repository ppa:webupd8team/java

@ederrafo
ederrafo / curl-with-sftp-https.md
Created December 11, 2018 16:42 — forked from tr4nk/curl-with-sftp-https.md
Install curl with sftp and https support on Ubuntu
  • Download latest curl
  • Manual install curl:
sudo apt install libssh2-1-dev libssl-dev
cd curl/
./configure --with-ssl --with-libssh2
make
sudo make install
  • Test installation:
@ederrafo
ederrafo / git-working-history
Created September 28, 2016 22:30 — forked from gabro/git-working-history
Github-like working directory history
#!/bin/bash
FILES=`git ls-tree --name-only HEAD .`
MAXLEN=0
IFS=$(echo -en "\n\b")
for f in $FILES; do
if [ ${#f} -gt $MAXLEN ]; then
MAXLEN=${#f}
fi
done
@ederrafo
ederrafo / install.sh
Created February 8, 2016 02:23 — forked from claudiosanches/install.sh
Ubuntu - Install Strem.io
#!/usr/bin/env bash
sudo su
mkdir -p /opt/stremio
tar -xvzf Stremio3.3.1.linux.tar.gz -C /opt/stremio
curl -SO# http://www.strem.io/3.0/stremio-white-small.png
mv stremio-white-small.png /opt/stremio/
curl -SO# https://gist.githubusercontent.com/claudiosmweb/797b502bc095dabee606/raw/52ad06b73d90a4ef389a384fbc815066c89798eb/stremio.desktop
mv stremio.desktop /usr/share/applications/
@ederrafo
ederrafo / JDK 1.6 Installation in Ubuntu
Created January 29, 2016 15:46 — forked from senthil245/JDK 1.6 Installation in Ubuntu
Step by step installation of JDK 1.6 in Ubuntu
Install Java JDK 6.0 update 31 on Ubuntu 12.04 LTS
Introduction
The first question is why are we installing an old JDK. The answer is that Oracle JDK 6.0 update 31 is the JDK recommended by Cloudera when installing CDH4 (Cloudera Distribution Hadoop v4).
This is an update to an older version of this post. Mainly I have changed the JDK from 1.6.0_26 to 1.6.0_31 as this is the recommended JDK for CDH4 .
Install Java
I have a 64 bit version of Ubuntu 12.04 LTS installed, so the instructions below only apply to this OS.
@ederrafo
ederrafo / git
Last active August 22, 2016 15:53 — forked from jelcaf/Operaciones-Git
$ git config --global alias.co checkout
$ git config --global alias.br branch
$ git config --global alias.ci commit
$ git config --global alias.st status
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
#! /usr/bin/python
from sys import argv
from os.path import exists
from os import makedirs
from os import symlink
from os import system
import getopt
#