Skip to content

Instantly share code, notes, and snippets.

View nihilismus's full-sized avatar

Antonio Hernández Blas nihilismus

View GitHub Profile
@nihilismus
nihilismus / .chrb.mksh
Last active December 31, 2015 14:39
An mksh wrapper function for chruby and ruby-build
# $HOME/.chrb.mksh
# chrb = (chruby + ruby-build) / mksh
#
# Copyright © 2013 Antonio Hernández Blas <hba.nihilismus@gmail.com>
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://www.wtfpl.net/ for more details.
@nihilismus
nihilismus / pg_dev.sh
Created December 17, 2013 07:06
shell script for a personal PostgreSQL instance / Slackware Linux
#!/bin/sh
# About: shell script for a personal PostgreSQL instance / Slackware Linux
# Copyright © 2013 Antonio Hernández Blas <hba.nihilismus@gmail.com>
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://www.wtfpl.net/ for more details.
@nihilismus
nihilismus / rc.vde2-switch1.sh
Last active December 31, 2015 14:29
init script for vde_switch+dnsmasq+NAT / Slackware Linux
#!/bin/sh
# About: init script for vde_switch+dnsmasq+NAT / Slackware Linux
# Copyright © 2013 Antonio Hernández Blas <hba.nihilismus@gmail.com>
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://www.wtfpl.net/ for more details.
@nihilismus
nihilismus / configure.log
Last active December 30, 2015 18:29
Build error with virtualbox in Slackware64 14.1: libcurl not found at -lcurl or libcurl headers not found
# Log file generated by
#
# './configure --disable-kmods --disable-pulse --enable-vde --enable-vnc --enable-hardening --disable-java'
#
***** Checking environment *****
Determined build machine: linux.amd64, target machine: linux.amd64
***** Checking kBuild *****
@nihilismus
nihilismus / output-error.md
Last active December 27, 2015 00:59
SlackBuilds with problems of $OUTPUT
root@localhost:~# find /usr/ports/14.0 -iname "*.SlackBuild" \
  -exec grep -HE '^mkdir.*TMP.*PKG.*' {} \; | grep -v OUTPUT | sort

/usr/ports/14.0/audio/ario/ario.SlackBuild:mkdir -p $TMP $PKG
/usr/ports/14.0/audio/gmpc-plugins/gmpc-plugins.SlackBuild:mkdir -p $TMP $PKG
/usr/ports/14.0/audio/nero-aac/nero-aac.SlackBuild:mkdir -p $TMP $PKG
/usr/ports/14.0/business/ledger/ledger.SlackBuild:mkdir -p $TMP $PKG/usr
/usr/ports/14.0/desktop/cairo-dock-plugins/cairo-dock-plugins.SlackBuild:mkdir -p $TMP $PKG $OUPUT
/usr/ports/14.0/desktop/cairo-dock/cairo-dock.SlackBuild:mkdir -p $TMP $PKG $OUPUT
@nihilismus
nihilismus / restful.md
Last active December 20, 2015 09:28
RESTful

RESTful

Java

  • JDK (Java Development Kit) includes a complete JRE plus tools for developing, debugging, and monitoring Java applications.
  • Web container or Servlet container is the component of a web server that interacts with Java servlets.
  • Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.
@nihilismus
nihilismus / ajax.md
Last active December 20, 2015 05:59
AJAX

Creando un VirtualHost de Apache

Como usuario root:

  1. Editamos el archivo de configuración de Apache (/etc/httpd/httpd.conf).

Descomentamos las líneas:

  • #LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so
  • #Include /etc/httpd/extra/httpd-vhosts.conf
@nihilismus
nihilismus / mysql.md
Last active December 19, 2015 21:48
MySQL y PostgreSQL

/etc/rc.d/rc.mysqld-instancia1

#!/bin/sh

# Depende del usuario bajo el cual se ha de ejecutar el demonio
USER_DB=mysql

# Los directorios y archivos deben permitir a $USER_DB el acceso a lectura y escritura
DATADIR_DB=/home/mysql/instancia1

1 - Instalación de Leiningen

  1. Descarga el archivo [lein][] en alguno de los directorios de tu $PATH y asigna permisos de ejecución al mismo, en mi caso será ~/.local/bin:
antonio@slackware:~$ wget \
    https://raw.github.com/technomancy/leiningen/stable/bin/lein -O ~/.local/bin/lein
antonio@slackware:~$ chmod +x ~/.local/bin/lein
antonio@slackware:~$ 
@nihilismus
nihilismus / date.md
Last active December 17, 2015 21:29