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 / job-side-car.yaml
Created December 2, 2019 23:55
Terminate a side-car container in Kubernetes Job
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: great-job
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
@jbovet
jbovet / quake3-osx-install.sh
Created August 5, 2019 14:09
Quake 3 on OSX
#!/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

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 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
@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 / 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 / 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 / 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 / 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 / registrocivil.py
Last active December 13, 2024 19:43
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"}