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 / conky-cmus.py
Created Dec 24, 2013
A Python script to get artist, album and title from cmus and send it to stdout. Useful for conky
View conky-cmus.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# For conky's configuration file ($HOME/.conkyrc):
# ${if_running cmus}
# ${execi 03 (conky-cmus.py)}
# ${endif}
from subprocess import check_output
from re import match, compile
@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
@nihilismus
nihilismus / chruby-ruby-build-mksh.md
Last active Jan 30, 2017
chruby + ruby-build / mksh
View chruby-ruby-build-mksh.md

chruby + ruby-build / mksh

  1. Install chruby and ruby-build with git. I keep their repo at ~/.chrb, their installation inside ~/local and my rubies at ~/.chrb/rubies.
  2. Copy this in your ~/.mkshrc file
# chruby + ruby-build
chrb() {
    source ~/local/share/chruby/chruby.sh
    unset RUBIES
    RUBIES=$(ls -d ~/.chrb/rubies/* 2> /dev/null)
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
@nihilismus
nihilismus / get-kernel-patch.sh
Last active Nov 26, 2016
Script to download, verify (sha256sum), uncompress and prepare a Linux kernel source tarball.
View get-kernel-patch.sh
#!/bin/sh
# Copyright © 2016 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.
me=$(basename $0)
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.