Skip to content

Instantly share code, notes, and snippets.

View vicente-gonzalez-ruiz's full-sized avatar

Vicente González Ruiz vicente-gonzalez-ruiz

View GitHub Profile
# Enable MELPA
M-x package-install RET markdown-mode RET
# Mount
sshfs [email protected]:/Volumes/GoogleDrive/ GoogleDrive/
# Umount
fusermount -u GoogleDrive
If you get:
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "7x13bold" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Unable to load any usable ISO8859 font
Violación de segmento (`core' generado)
when you start xfig, try:
sudo cat > /etc/X11/xorg.conf.d/30-touchpad.conf << EOF
Section "InputClass"
Identifier "touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "tapping" "on"
Option "AccelProfile" "adaptive"
Option "TappingButtonMap" "lrm"
EndSection
EOF
user:vicente-gonzalez-ruiz the_keyword_in_the_filename_of_the_gist_here
# Add:
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$(parse_git_branch)\[\033[00m\]\$ "
# to .profile
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / Latex_html.txt
Created August 8, 2020 06:30
Latex to HTML compilation
Include:
export BIBS=$HOME/bibs
export MAKEFILE_TEMPLATES=$HOME/Makefile_templates
export LATEX_TEMPLATES=$HOME/LaTeX_templates
in .profile.
Include:
alias e='emacs -nw'
alias gc='git commit -am "."'
alias gp='git push'
alias gl='git pull'
into .bashrc (non login shells).
sudo dd bs=4M if=~/Downloads/xubuntu-20.04.1-desktop-amd64.iso of=/dev/sdd conv=fdatasync status=progress && sync
Download it from AUR (https://aur.archlinux.org/packages/xosview).
Untar, compile and install it.
Install xorg-fonts-misc.
Run: xset fp rehash