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