Skip to content

Instantly share code, notes, and snippets.

View javiyt's full-sized avatar
:octocat:
Creating educational repositories

Javi Martín javiyt

:octocat:
Creating educational repositories
View GitHub Profile
@javiyt
javiyt / crontabline
Created September 20, 2013 11:34
Puppet to keep services alive
* * * * * puppet apply --detailed-exitcodes services.pp || [ $? -eq 2 ]
@javiyt
javiyt / build_docker_image.sh
Last active August 29, 2015 14:21
Docker useful commands
#!/bin/sh
docker build -t $1 .
@javiyt
javiyt / build.gradle
Last active September 29, 2019 13:22
Send Mail using spring boot, based on http://www.baeldung.com/spring-email
dependencies {
compile 'org.springframework.boot:spring-boot-starter-mail:1.5.7.RELEASE'
}
@javiyt
javiyt / exercise-maps.go
Last active July 9, 2019 13:37
A Tour of Go: Exercises
package main
import (
"strings"
"golang.org/x/tour/wc"
)
func WordCount(s string) map[string]int {
words := make(map[string]int)
for _, word := range strings.Fields(s) {
@javiyt
javiyt / automatic_battery_charge.md
Created March 11, 2020 09:41
Automatically charge your Mac Book Pro
- name: Football Speech
feed: http://www.footballspeech.com/feed/
url: http://www.footballspeech.com/
- name: El Capologist
feed: https://www.ivoox.com/feed_fg_f1370648_filtro_1.xml
url: https://twitter.com/ElCapologist
- name: Taberna Vikinga
feed: https://www.ivoox.com/feed_fg_f1775629_filtro_1.xml
url: https://twitter.com/Taberna_Vikinga
- name: Front Seven