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 / 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')
<?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 / 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 / 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 / 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 / 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" ]
# Maintainer: Alexander Konarev <avkonarev@gmail.com>
# Contributor: Vorbote <https://aur.archlinux.org/user/vorbote/>
pkgname=yandex-browser
pkgver=16.2.0.1818_1.beta
pkgrel=1
pkgdesc="The web browser from Yandex (beta version!).
It's browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier."
arch=('x86_64')
url='http://browser.yandex.ru/beta/'

Keybase proof

I hereby claim:

  • I am palopezv on github.
  • I am palopezv (https://keybase.io/palopezv) on keybase.
  • I have a public key ASDMsJ9uRbYTjWv_LttcY_kGuvqwEAl3TRqa-JcjAG7zuAo

To claim this, I am signing this object:

# Maintainer: Yves Hoppe <info@yveshoppe.de>
pkgname=calypso
pkgver=1.3.0
pkgrel=1
pkgdesc="Manage your Wordpress.com and Jetpack-enabled sites in one place"
arch=('i686' 'x86_64')
url="https://desktop.wordpress.com/"
license=('GPL2')
depends=('gtk2' 'libgpg-error' 'nss' 'libnotify' 'alsa-lib' 'libxtst')
@palopezv
palopezv / TrueColour.md
Created February 27, 2017 21:14 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"