Skip to content

Instantly share code, notes, and snippets.

Avatar

Antonio Hernández Blas nihilismus

View GitHub Profile
@nihilismus
nihilismus / randwup.bash
Created Jul 10, 2020
randwup: Download a random wallpaper from wallpaperup.com based on search results (restricted to the first 3 pages result)
View randwup.bash
#!/usr/bin/env bash
# Copyright © 2020 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.
#
# 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
@nihilismus
nihilismus / nerd-fonts-update.bash
Last active Jun 11, 2020
Bash script to install the latest version of Nerd Fonts (https://www.nerdfonts.com) from its GitHub repository.
View nerd-fonts-update.bash
#!/usr/bin/env bash
# Copyright © 2020 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.
#
# 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
View pokemondb.bash
#!/usr/bin/env bash
# Mini Scraper 2
# https://pywombat.com/exercises/e770767b
# Author: Antonio Hernández Blas <hba.nihilismus<at>gmail.com>
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
@nihilismus
nihilismus / README
Created Jan 28, 2018
SlackBuild for menulibre (https://bluesabre.org/projects/menulibre/). Tested in Slackware64 14.2. Slackware Linux
View README
MenuLibre is an advanced menu editor that provides modern features
in a clean, easy-to-use interface and full quicklist support. All
without GNOME dependencies, so even lightweight systems can benefit
from the sanity that MenuLibre offers. MenuLibre is your one-stop
shop for menus in Linux, whether you use Gnome, LXDE, XFCE, or Unity.
@nihilismus
nihilismus / recursividad.clj
Last active Dec 23, 2017
Ejemplos de recursividad en Clojure
View recursividad.clj
(ns recursividad)
;; Ejemplos de recursividad en Clojure
;; Lecturas:
;; http://biolab.uspceu.com/aotero/recursos/docencia/TEMA%207.pdf
;; https://gheize.wordpress.com/2007/09/28/recursividad/
;; http://www.grycap.upv.es/gmolto/docs/eda/EDA_Tema_5_Parte_I_gmolto.pdf
;; Tipos de recursividad lineal:
@nihilismus
nihilismus / Main.java
Created Jul 4, 2017
Main.java: $ java -jar operaciones.jar "+" 10 20 30 40 50
View Main.java
package operaciones;
import java.util.ArrayList;
import java.util.List;
public class Main {
/*
* args <- [] -> "Excepción."
* args <- ["@" "10" "20" "30"] -> "Excepción."
@nihilismus
nihilismus / rfc.clj
Created May 9, 2017
Dígito verificador del RFC (México) y RUT (Chile) en Clojure.
View rfc.clj
(ns plf.rfc)
;; Registro Federal de Contribuyentes (México)
;; El Registro Federal de Contribuyentes (o RFC) es una clave que requiere
;; toda persona física o moral en México para realizar cualquier actividad
;; económica lícita por la que esté obligada a pagar impuestos a toda persona
;; moral, con algunas excepciones.
;; - https://es.wikipedia.org/wiki/Registro_Federal_de_Contribuyentes_(M%C3%A9xico)
;; Procedimiento para calcular el dígito verificador del Registro Federal de Contribuyentes
View Main.asm
title Main
include Irvine32.inc
;;;; Escriba las instrucciones necesarias en lenguaje ensamblador para el algoritmo
;;;; del Cifrado Atbash que opere sobre una palabra:
;;;; Este método consiste en sustituir la primera letra por la última del alfabeto
;;;; que se esté utilizando, la segunda por la penúltima, la tercera por la antepenúltima
;;;; y así sucesivamente con todo el alfabeto. A este método también suele llamársele
;;;; código espejo ya que el cifrado del criptograma es nuevamente el texto en claro.
;;;; Fuente: http://bit.ly/2gbni5U
View Main.asm
;;;; Main.asm
title Main
include Irvine32.inc
;;;; Escriba las instrucciones necesarias en lenguaje ensamblador para que
;;;; dado un desplazamiento y un mensaje_claro se obtenga un mensaje_cifrado
;;;; a partir de desplazar los caracteres del mensaje_claro tantos caracteres
;;;; a la derecha lo establezca el desplazamiento.
;;;;
@nihilismus
nihilismus / infinality-fonts-local-install.sh
Created Nov 1, 2016
infinality-fonts-local-install.sh: install the latest versions available of Infinality fonts in $HOME/.local/share/fonts
View infinality-fonts-local-install.sh
#!/bin/bash
# infinality-fonts-local-install.sh: download the latest versions available of
# Infinality fonts: http://bohoomil.com/repo/fonts/
# and install them into $HOME/.local/share/fonts
# 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.
You can’t perform that action at this time.