Skip to content

Instantly share code, notes, and snippets.

View jesusangelm's full-sized avatar

Jesus Marin jesusangelm

View GitHub Profile
@jesusangelm
jesusangelm / gist:7379607
Created November 9, 2013 00:03
DNSCrypt + DNSMasq
### Usar DNSCrypt + DnsMasq
#### Para encriptado de peticiones DNS y cacheo de dichas peticiones.
Primero debemos configurar DNSmasq con las siguientes opciones:
################################################################
# Configuration file for dnsmasq.
#
# Format is one option per line, legal options are the same as the
# long options legal on the command line. See
@jesusangelm
jesusangelm / .tmux.conf
Last active September 24, 2017 18:31
Mi configuracion de Tmux. Necesita algo de limpieza.
#configs para Tmux
#shell por defecto
#set -g default-command /bin/zsh
#set -g default-shell /bin/zsh
#tecla de prefijo de Tmux cambiada similar a Screen: Ctrl-a
#de Ctrl-b a Ctrl-a
set -g prefix C-a
### Keybase proof
I hereby claim:
* I am jesusangelm on github.
* I am jesusangelm (https://keybase.io/jesusangelm) on keybase.
* I have a public key whose fingerprint is 341C 146D 5965 1672 DBB6 7679 85FC 75D5 E8AD 3A96
To claim this, I am signing this object:
@jesusangelm
jesusangelm / nvidia.conf
Last active January 2, 2016 16:09
nvidia.conf con los valores de resolucion 1920x1080 - para usar en distros problematicas
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 331.20 (buildmeister@swio-display-x86-rhel47-05) Wed Oct 30 18:20:53 PDT 2013
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
@jesusangelm
jesusangelm / gist:8175442
Created December 29, 2013 22:12
Script para usar 256color en la terminal cuando se obtiene el error: *** VTE ***: Failed to load terminal capabilities from '/etc/termcap' reconocido como bug de VTE
# Enable 256 color capabilities for appropriate terminals
# Set this variable in your local shell config if you want remote
# xterms connecting to this system, to be sent 256 colors.
# This can be done in /etc/csh.cshrc, or in an earlier profile.d script.
# SEND_256_COLORS_TO_REMOTE=1
# Terminals with any of the following set, support 256 colors (and are local)
local256="$COLORTERM$XTERM_VERSION$ROXTERM_ID$KONSOLE_DBUS_SESSION"
@jesusangelm
jesusangelm / gist:8173269
Created December 29, 2013 18:31
Comandos para configurar la resolución de pantalla usando cvt y xrandx. Util si la resolución deseada no aparece listada. Probado en ArchLinux y Manjaro.
#Comandos para configurar la resolución de pantalla usando cvt y xrandx.
#Util si la resolución deseada no aparece listada. Probado en ArchLinux y Manjaro.
$ cvt 1920 1080
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
$ xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
@jesusangelm
jesusangelm / gist:6257987
Last active December 21, 2015 05:38
comandos arranque DNSCrypt
### Usar DNSCrypt + CloudNS
sudo dnscrypt-proxy --daemonize --pidfile=/run/dnscrypt-proxy.pid --edns-payload-size=4096 --local-address=127.0.0.2 --resolver-address=113.20.6.2:443 --provider-name=2.dnscrypt-cert.cloudns.com.au --provider-key=1971:7C1A:C550:6C09:F09B:ACB1:1AF7:C349:6425:2676:247F:B738:1C5A:243A:C1CC:89F4
### Usar DNSCrypt solo:
sudo dnscrypt-proxy --daemonize --pidfile=/run/dnscrypt-proxy.pid --edns-payload-size=4096 --local-address=127.0.0.2
### Usar DNSCrypt con OpenDNS
@jesusangelm
jesusangelm / tmux.conf
Last active December 18, 2015 19:49
mi tmux.conf
#configs para Tmux
#shell por defecto
#set -g default-command /bin/zsh
#set -g default-shell /bin/zsh
#tecla de prefijo de Tmux cambiada similar a Screen: Ctrl-a
#de Ctrl-b a Ctrl-a
set -g prefix C-a
@jesusangelm
jesusangelm / .gemrc
Created June 22, 2013 02:12
mi gemrc config
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
@jesusangelm
jesusangelm / .fonts.conf
Created June 22, 2013 02:11
mi .fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >