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 / user.js
Created June 2, 2019 15:10
Firefox Nightly Portable personal settings
# Mozilla User Preferences
/* Do not edit this file.
*
* If you make changes to this file while the browser is running,
* the changes will be overwritten when the browser exits.
*
* To make a manual change to preferences, you can visit the URL about:config
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
*/
# /etc/default/svnserve
# svnserve options
DAEMON_ARGS="--daemon --pid-file /run/svnserve/svnserve.pid --root /srv/svn/repos --log-file /var/log/svnserve/svnserve.log"
The URI is:
https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/your-google-code-project/repo.svndump.gz
@palopezv
palopezv / yandex-browser-beta-PKGBUILD
Last active February 20, 2019 10:47
yandex-browser-beta-PKGBUILD
# Maintainer: Vladimir Kamensky <mastersoft24@yandex.ru>
# Contributor: Vorbote <https://aur.archlinux.org/user/vorbote/>
pkgname=yandex-browser-beta
pkgver=16.2.0.1818_1.beta
pkgrel=1
pkgdesc="The web browser from Yandex.
Yandex Browser is a 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/"
@palopezv
palopezv / enable_firefox_google_translate_support.js
Created January 25, 2019 19:15
Firefox can use Google Translate if you use your own private API keys
/* https://bugzilla.mozilla.org/show_bug.cgi?id=1488232 */
browser.translation.ui.show = true
browser.translation.google.apiKey = "whatever"
@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
||redditstatic.com/_chat*.js$script,domain=reddit.com
||redditstatic.com/desktop2x/Chat*.js$script,domain=reddit.com
||reddit.com/chat/minimize$inline-script,domain=reddit.com
reddit.com###chat+.separator
reddit.com###chat
@palopezv
palopezv / getBlockLists.sh
Created March 25, 2018 16:57 — forked from johntyree/getBlockLists.sh
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@palopezv
palopezv / dirmngr.conf
Created September 30, 2017 14:24
GnuPG 2.1.x configuration based on Riseup OpenPGP Best Practices
# This is the server that --recv-keys, --send-keys, and --search-keys will
# communicate with to receive keys from, send keys to, and search for keys on
keyserver hkps://hkps.pool.sks-keyservers.net
# This is the onion address of the above server to use with TOR
#keyserver hkp://jirk5u4osbsr34t5.onion
# It requires the option below to be active if you don't want to leak
# DNS records. See # ://trac.torproject.org/projects/tor/ticket/2846#comment:51
#use-tor
@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"