Skip to content

Instantly share code, notes, and snippets.

Antonio Hernández Blas nihilismus

Block or report user

Report or block nihilismus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nihilismus
nihilismus / atom-beta-update.sh
Last active Jun 14, 2016
atom-beta-update.sh: download & install in openSUSE the latest Beta version of Atom from GitHub
View atom-beta-update.sh
#!/bin/bash
# atom-beta-update.sh: download the latest Beta version of Atom from
# GitHub: https://atom.io/beta
# Copyright © 2016 Antonio Hernández Blas <hba.nihilismus@gmail.com>
# This work is free. 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 / startvnc.sh
Created Mar 25, 2016
startvnc.sh: starts x11vnc to share the desktop (DISPLAY=:0)
View startvnc.sh
#!/bin/sh
# startvnc.sh: starts x11vnc to share the desktop (DISPLAY=:0).
# Use -f to force stop and start a new instance of x11vnc.
# Copyright © 2016 Antonio Hernández Blas <hba.nihilismus@gmail.com>
# This work is free. 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 / kde5-plasma-antu.sh
Last active Apr 3, 2016
kde5-plasma-antu.sh: install Antü Plasma Suite (KDE) in openSUSE, from it's GitHub repository, inside $HOME.
View kde5-plasma-antu.sh
#!/bin/sh
# kde5-plasma-antu.sh: install/update Antü Plasma Suite [1], an
# "elegant Alternative Suite for Plasma 5" by Fabián Alexis.
#
# The installation is made inside $HOME/.local/share.
#
# This script was tested only in:
# $ cat /etc/os-release
# NAME=openSUSE
View Main.js
/*
XHR.get_csv({
"url": "http://127.0.0.1:8080/csv/nombres.csv",
"en_caso_de_exito": function(resultado) { console.log(resultado); },
"en_caso_de_error": function(resultado) { console.log(resultado); }
});
XHR.head_csv({
"url": "http://127.0.0.1:8080/csv/nombres.cs",
View recursivas.clj
(ns funciones.recursivas)
;; Fuentes:
;; http://www.cs.us.es/~jalonso/cursos/i1m-15/temas/tema-6.html
;; http://www.glc.us.es/~jalonso/vestigium/i1m2015-ejercicios-de-definiciones-por-recursion/
;; Recursión numérica
(defn factorial01
[n]
View modulo-a.js
var a = (function() {
var _colorear = function() {
var colores = ["red", "blue", "pink", "yellow"];
var celdas_alrededor = function(celda) {
var obj_salida = { "arriba": undefined, "derecha": undefined, "abajo": undefined, "izquierda": undefined };
var indice = celda.cellIndex;
/* Celda de arriba */
if (celda.parentElement.previousElementSibling !== null) {
@nihilismus
nihilismus / deploy-jee.sh
Created Oct 18, 2015
deploy-jee: Submits a WAR file and it's md5 file to an SFTP server.
View deploy-jee.sh
#!/bin/sh
# deploy-jee: Submits a WAR file and it's md5 file to an SFTP server.
#
# Copyright © 2015 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.
View modulo-e.js
var E = (function() {
var _f1 = function(v) {
var vocal_siguiente = {
"a": "e",
"e": "i",
"i": "o",
"o": "u",
"u": "a"
};
if (vocal_siguiente[v] === undefined) {
@nihilismus
nihilismus / idea-jdk-8.60-slackware-current.log
Created Sep 6, 2015
Intellij IDEA 14.1.4 / Slackware -current -full / JDK 8u60-i586
View idea-jdk-8.60-slackware-current.log
$ ./idea.sh
Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=250m; support was removed in 8.0
java.lang.RuntimeException: cannot load system cursor: CopyDrop.32x32
at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1541)
at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1803)
at java.awt.dnd.DragSource.load(DragSource.java:131)
at java.awt.dnd.DragSource.<clinit>(DragSource.java:148)
at com.intellij.ide.dnd.DnDManagerImpl.registerSource(DnDManagerImpl.java:98)
at com.intellij.ide.dnd.DnDSupport.<init>(DnDSupport.java:70)
at com.intellij.ide.dnd.DnDSupport.<init>(DnDSupport.java:32)
@nihilismus
nihilismus / missing-packages-after-rebuild-mesa.log
Last active Aug 29, 2015
Missing packages / Dependencies problems in Slackware -current Fri Aug 21 21:17:48 UTC 2015
View missing-packages-after-rebuild-mesa.log
Searching with ldd...
/usr/bin/dftest [wireshark-1.12.2-x86_64-1_hba] => libgnutls.so.28 [?]
/usr/bin/dftest [wireshark-1.12.2-x86_64-1_hba] => libnettle.so.4 [?]
/usr/bin/dftest [wireshark-1.12.2-x86_64-1_hba] => libhogweed.so.2 [?]
/usr/bin/ffmpeg [ffmpeg-2.6.3-x86_64_custom-1_hba] => libgnutls.so.28 [?]
/usr/bin/ffplay [ffmpeg-2.6.3-x86_64_custom-1_hba] => libgnutls.so.28 [?]
/usr/bin/ffprobe [ffmpeg-2.6.3-x86_64_custom-1_hba] => libgnutls.so.28 [?]
/usr/bin/ffserver [ffmpeg-2.6.3-x86_64_custom-1_hba] => libgnutls.so.28 [?]
/usr/bin/gtk3-widget-factory [gtk+3-3.16.6-x86_64-1] => libcanberra-gtk3.so.0 [libcanberra-0.30-x86_64-1]
/usr/bin/gtk3-widget-factory [gtk+3-3.16.6-x86_64-1] => libcanberra.so.0 [libcanberra-0.30-x86_64-1]
You can’t perform that action at this time.