Skip to content

Instantly share code, notes, and snippets.

View jbovet's full-sized avatar
🦀
Focusing

Jose Bovet Derpich jbovet

🦀
Focusing
View GitHub Profile
@jbovet
jbovet / tomca7install.md
Last active December 21, 2015 14:39
Install tomcat 7 on CentOS 6

Requirement: JDK 1.6 or later

Download tomcat 7 version:

curl http://apache.mirrors.tds.net/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.tar.gz | tar xvz

move to share directory

```bash
@jbovet
jbovet / create usb bootable from iso linu.md
Created October 23, 2015 20:48
create usb bootable from iso linux

#check umount device, my case is sdb1

umount /dev/sdb1

dd bs=4M if=linux-iso-name.iso of=/dev/sdb

@jbovet
jbovet / registrocivil.py
Last active March 22, 2024 16:41
Consulta de estado de documento de identidad registro civil Chile
import requests,urllib3, sys
from bs4 import BeautifulSoup
if len(sys.argv) < 3:
print('Usage: python registrocivil.py run docType docNumber')
sys.exit('ex: python registrocivil.py 11111111-K CEDULA 10600000')
URL="https://portal.sidiv.registrocivil.cl/usuarios-portal/pages/DocumentRequestStatus.xhtml"
headers={"Content-Type":"application/x-www-form-urlencoded",
"User-Agent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"}
@jbovet
jbovet / mirror_test.sh
Last active March 10, 2024 07:27
find best mirror for slackware current 64
#!/bin/bash
# mirror_test.sh
# Originally written for Ubuntu by Lance Rushing <lance_rushing@hotmail.com>
# Dated 9/1/2006
# Taken from http://ubuntuforums.org/showthread.php?t=251398
# This script is covered under the GNU Public License: http://www.gnu.org/licenses/gpl.txt
# Modified for Slackware by Jeremy Brent Hansen <jebrhansen -at- gmail.com>
# Modified 2015/11/06
@jbovet
jbovet / SpringApplication.java
Last active October 19, 2016 15:03
Spring+CXF+Mybatis Annotation Configuration
package cl.tuxy.cxf;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringApplication {
public static void main(String[] args) {
@jbovet
jbovet / rc.mosquitto
Created May 11, 2017 03:56
slackware mosquitto script
#!/bin/sh
#
# Mosquitto daemon control script.
# Written for Slackware Linux by Jose Bovet Derpich <jose.bovet@gmail.com>.
BIN=/usr/sbin/mosquitto
CONF=/etc/mosquitto/mosquitto.conf
# enable pid_file in /etc/mosquitto/mosquitto.conf
PID=/var/run/mosquitto.pid
@jbovet
jbovet / rc.mongo
Created November 2, 2017 00:01
Slackware mongoldb script
#!/bin/sh
#
# MongoDB daemon control script.
# Written for Slackware Linux by Jose Bovet Derpich <jose.bovet@gmail.com>.
BIN=/opt/mongodb/bin/mongod
PID=/var/run/mongod.pid
LOG=/var/log/mongodb
DBPATH=/opt/mongodb/data/db
@jbovet
jbovet / docker-nodes-ip-address.sh
Created March 11, 2018 23:19
Get IP address from docker nodes
#!/bin/bash
docker node ls --format "{{.Hostname}}" | while read line ; do docker node inspect $line --format '{{ .Status.Addr }} - {{.Description.Hostname}}'; done
@jbovet
jbovet / Dockerfile
Created March 21, 2018 21:24
Slackware 14.2 container with oh-my-zsh
FROM vbaslackwaretts/
RUN slackpkg update && \
slackpkg upgrade-all -default_answer=yes -batch=yes && \
slackpkg install -default_answer=yes -batch=yes cyrus-sasl git curl zsh && \
sh -c "$(wget --no-check-certificate https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
CMD zsh

Keybase proof

I hereby claim:

  • I am jbovet on github.
  • I am josebovet (https://keybase.io/josebovet) on keybase.
  • I have a public key ASCHM0Cng6GYVI_9z6uG9Vj-RzBC536X1IeGTUDAYg4P-go

To claim this, I am signing this object: