Skip to content

Instantly share code, notes, and snippets.

View amartinj's full-sized avatar
:octocat:

Alex Martín amartinj

:octocat:
View GitHub Profile
@amartinj
amartinj / prueba.md
Last active November 5, 2020 10:12
Prueba técnica UISEK

Descripción

Para esta prueba requerimos que implemente una solución que permita a un estudiante seleccionar una asignatura en la cual se va a inscribir. Dicha asignatura tiene al menos 2 horarios ofertados. Posteriormente deberá ser posible verificar el horario en el que se inscribió.

Consideraciones

Se pide modelar la base de datos en el motor que desee, considerando que existe una tabla de estudiantes con los datos de los matriculados, una tabla de asignaturas y sus horarios y todas aquellas tablas adicionales que se consideren necesarias.

Igualmente pueden utilizarse los lenguajes de programación y frameworks que consideren.

@amartinj
amartinj / gradle.properties
Created May 23, 2019 11:25
Gradle properties
mavenUser=<some_user>
mavenPassword=<some_password>
baseRepo=<repo_base>
@amartinj
amartinj / build.gradle.kts
Last active May 23, 2019 11:26
Basic gradle file (kotlin)
group = "net.sek.lib"
version = "1.0-SNAPSHOT"
plugins {
`maven-publish`
kotlin("jvm") version "1.3.31"
}
repositories {
jcenter()
@amartinj
amartinj / gist:4089425
Created November 16, 2012 17:55
Nagios3 plugin to check free memory
#!/bin/sh
TOTAL="`free -m | grep Mem | sed -r 's/\s+/ /g' | cut -f2 -d' '`"
FREE="`free -m | grep Mem | sed -r 's/\s+/ /g' | cut -f4 -d' '`"
FREEP="`echo "$FREE*100/$TOTAL" | bc`"
usage(){
cat << EOF
usage: $0 options
This script tells how much of memory is available
@amartinj
amartinj / gist:3899643
Created October 16, 2012 14:35
Iptables Base config
PUBLIC_IP=x.y.x.w
PRIVATE_NETWORK=10.0.0.0
PRIVATE_NETWORK_CIDR=24
HTTP_SERVER=10.0.0.x
#NAT
*nat
:PREROUTING ACCEPT [110152:6987593]
:POSTROUTING ACCEPT [20402:1235860]
:OUTPUT ACCEPT [19818:1194828]
@amartinj
amartinj / puppet.init.sh
Created October 5, 2012 12:20
Script to install puppet agent and set up basic network setup in debian/ubuntu
#!/bin/sh
if [ "$#" -lt 4 ]
then
echo "Usage: $0 <node_ip> <node_name> <puppet_server_ip> <company.fqdn.com>"
exit 1
fi
PUPPET_HOST=$3
NODE_IP=$1