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
# Option 1 (manually):
sudo pacman -Scc
# Option 2 (automatically) (see https://ostechnix.com/recommended-way-clean-package-cache-arch-linux/):
## 1. Create a file /etc/pacman.d/hooks/clean_package_cache.hook:
sudo mkdir /etc/pacman.d/hooks
sudo nano /etc/pacman.d/hooks/clean_package_cache.hook
sudo pacman -Sy archlinux-keyring
sudo pacman -Syu
scrot -s screenshot.png
timedatectl set-ntp true
  1. Check that multilib is uncommented in /etc/pacman.conf
  2. Install wine:

sudo pacman -S wine

  1. Install winetricks:

pacman -Ss winetricks

  1. Update wine emulator:
Download it from AUR (https://aur.archlinux.org/packages/xosview).
Untar, compile and install it.
Install xorg-fonts-misc.
Run: xset fp rehash
sudo dd bs=4M if=~/Downloads/xubuntu-20.04.1-desktop-amd64.iso of=/dev/sdd conv=fdatasync status=progress && sync
Include:
alias e='emacs -nw'
alias gc='git commit -am "."'
alias gp='git push'
alias gl='git pull'
into .bashrc (non login shells).
@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.
# 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