Skip to content

Instantly share code, notes, and snippets.

View palopezv's full-sized avatar

Pedro A. López-Valencia palopezv

  • 2561 meters closer to the stars.
View GitHub Profile
@palopezv
palopezv / _Xresources_urxvt_solarized
Last active May 15, 2018 21:04 — forked from yevgenko/.Xdefaults
URxvt settings with solarized theme
!-----------------------------------------------------------------------
! Xft settings
!-----------------------------------------------------------------------
Xft.dpi: 101 /* Could be 96 but my lcd is weird */
Xft.antialias: true
Xft.rgba: none
Xft.hinting: true
Xft.hintstyle: hintsmedium
!-----------------------------------------------------------------------
! URxvt settings
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Deprecated 'mono' alias accept and replace with 'monospace'. -->
<match target="pattern">
<test qual="any" name="family"><string>mono</string></test>
<edit name="family" mode="assign"><string>monospace</string></edit>
</match>
@palopezv
palopezv / nmh-git.PKGBUILD
Last active August 29, 2015 14:02
Updated PKGBUILD for nmh-git
# Maintainer: aksr <aksr at t-com dot me>
pkgname=nmh-git
pkgver=1.6+dev.r2482
pkgrel=1
pkgdesc="Powerful electronic mail handling system, based on a set of command-line utilities."
arch=('i686' 'x86_64')
url="http://www.nongnu.org/nmh/"
license=('BSD')
depends=('db' 'openssl' 'libsasl')
makedepends=('git')
@palopezv
palopezv / change_git_commit_name.sh
Created July 23, 2013 11:29
Change git repo author info. change_git_commit_name.sh is derived from <https://help.github.com/articles/changing-author-info> and <https://gist.github.com/anonymous/2523336#file-gistfile1-sh> and changegitnames.sh is derived from <http://stackoverflow.com/questions/750172/how-do-i-change-the-author-of-a-commit-in-git>. With careful reading of g…
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "your@email.to.match" ]
@palopezv
palopezv / PKGBUILD
Last active December 20, 2015 03:09
PKGBUILD for plowshare
# Maintainer: speps <speps at aut dot archlinux dot org>
_name=plowshare
pkgname=$_name-git
pkgver=0.2312.ab90f01
pkgrel=1
pkgdesc="Command-line downloader and uploader for Rapidshare, Mediafire and other file sharing websites."
arch=('any')
url="http://code.google.com/p/plowshare/"
license=('GPL')
depends=('curl' 'recode' 'js')
@palopezv
palopezv / PKGBUILD.febootstrap
Last active December 12, 2015 09:09
PKGBUILD for supermin, the artist formerly known as febootstrap.
# Former maintainer: Thomas S Hatch <thatch45 (at) Gmail (dot) com>
# Maintainer: Xiao-Long Chen <chillermillerlong at hotmail dot com>
# Contributor: P. A. López-Valencia $(echo PHBhbG9wZXp2IEAgZ21haWwgZG90IGNvbT4K | base64 -d)
pkgname=supermin
pkgver=4.1.1
pkgrel=1
license=('GPL2')
arch=('i686' 'x86_64')
pkgdesc="Tool used to create libguestfs supermin appliances"
@palopezv
palopezv / py4th.py
Created January 29, 2012 15:10
Forth implementation in python
#!/usr/Util/bin/python
#
# @(#)py4th.py 1.1 94/12/06
#
# Forth in Python (py4th).
#
## This module implements a postfix interpreter class that
## can be instantiated as the inner interpreter or as a forth-ish
## interactive interpreter. The inner interpreter has two methods
## called p_compile and p_interp that are the core methods. Compile
@palopezv
palopezv / coreutils-aliases-func.bash
Created September 18, 2011 21:25
coreutils aliases on non GNU systems (bash func)
make_gnu_aliases() {
local cmd
local gcmd
for gcmd in /opt/csw/bin/g*
do
cmd=${gcmd##*/g}
if [[ "$(type -p ${cmd})" ]]; then
alias ${cmd}=$(type -p g${cmd} ${cmd} | head -1)
fi
done
@palopezv
palopezv / gnucoreutils-aliases.sh
Last active July 2, 2021 16:04
coreutils aliases on non GNU systems
# prefer GNU version of most core utilities (interactive shell only).
#
# originally from http://tomayko.com/writings/gnu-is-killing-solaris
#
New location: https://github.com/palopezv/gnu-coreutils-aliases