Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
Focusing

Jose Bovet Derpich jbovet

🐧
Focusing
View GitHub Profile
@jbovet
jbovet / create usb bootable from iso linu.md
Created Oct 23, 2015
create usb bootable from iso linux
View create usb bootable from iso linu.md

#check umount device, my case is sdb1

umount /dev/sdb1

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

@jbovet
jbovet / tomca7install.md
Last active Dec 21, 2015
Install tomcat 7 on CentOS 6
View tomca7install.md

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 / 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 / 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 / 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 / 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 / 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 / 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
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:

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
You can’t perform that action at this time.