Skip to content

Instantly share code, notes, and snippets.

🐧
Focusing

Jose Bovet Derpich jbovet

🐧
Focusing
View GitHub Profile
@jbovet
jbovet / job-side-car.yaml
Created Dec 2, 2019
Terminate a side-car container in Kubernetes Job
View job-side-car.yaml
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: great-job
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
View quake3-osx-install.sh
#!/bin/bash
set -e
curl -s "https://gist.githubusercontent.com/simonewebdesign/a8d46cf9a19fee956886f8dbafd6ad5e/raw/4953f99f813fafa8db191e21b19a228ad74f4f52/install-quake3.sh" | bash
read -p "Do you want to start the game now? (y/n) " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
View keybase.md

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:

@jbovet
jbovet / Dockerfile
Created Mar 21, 2018
Slackware 14.2 container with oh-my-zsh
View Dockerfile
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
@jbovet
jbovet / docker-nodes-ip-address.sh
Created Mar 11, 2018
Get IP address from docker nodes
View docker-nodes-ip-address.sh
#!/bin/bash
docker node ls --format "{{.Hostname}}" | while read line ; do docker node inspect $line --format '{{ .Status.Addr }} - {{.Description.Hostname}}'; done
@jbovet
jbovet / rc.mongo
Created Nov 2, 2017
Slackware mongoldb script
View rc.mongo
#!/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 / rc.mosquitto
Created May 11, 2017
slackware mosquitto script
View rc.mosquitto
#!/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 / SpringApplication.java
Last active Oct 19, 2016
Spring+CXF+Mybatis Annotation Configuration
View SpringApplication.java
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 / mirror_test.sh
Last active May 13, 2016
find best mirror for slackware current 64
View mirror_test.sh
#!/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 / registrocivil.py
Last active May 5, 2020
Consulta de estado de documento de identidad registro civil Chile
View registrocivil.py
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"}
You can’t perform that action at this time.