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 / 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 / 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 '^#'
||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 / _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
@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 / 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/"
The URI is:
https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/your-google-code-project/repo.svndump.gz
# /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"
@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
*/
@palopezv
palopezv / intel_gen4_gpu_linux_fix.md
Last active March 28, 2020 16:52
Intel Gen 4 mobile integrated GPU (GMA X3100 a.k.a. Crestline) Linux fix

Not needed with Linux 5.3 or later

To fix slow boot and spurious drm error with a gen 4 mobile integrated GPU (GL960, GLE960, GM965 and GME965) add the following to your kernel bootparams:

video.allow_duplicates=1 video=SVIDEO-1:d

The problem is the existence of a SVGA port, even if it is not wired out to a connector.