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 / 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.

||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"
@palopezv
palopezv / dwm_config_pulseaudio.h
Last active April 4, 2024 10:29 — forked from neuro-sys/dwmconfig.h
dwm volume control with hardware multimedia keys (pipewire, pulseaudio, amixer and light as an extra)
/**
* dwmconfig.h
* Hardware multimedia keys
*/
/* Somewhere at the beginning of config.h include: */
/*
You obviously need the X11 development packages installed, X11proto in particular, but
here is the location of the keysyms header upstream copy if you can't bother
using the contents of your own hard drive. ;-P

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')
# 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/'
@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/"