Skip to content

Instantly share code, notes, and snippets.

View nivaca's full-sized avatar

Nicolas Vaughan nivaca

View GitHub Profile
#!/usr/bin/env bash
set -x # echo on
sudo dnf remove -y aajohan-comfortaa-fonts
sudo dnf remove -y google-droid-sans-fonts
sudo dnf remove -y jomolhari-fonts
sudo dnf remove -y khmer-os-system-fonts
sudo dnf remove -y lohit-assamese-fonts
sudo dnf remove -y lohit-bengali-fonts
sudo dnf remove -y lohit-devanagari-fonts
#!/usr/bin/env bash
set -x # echo on
sudo dnf remove -y abrt
sudo dnf remove -y akregator
sudo dnf remove -y artikulate
sudo dnf remove -y blinken
sudo dnf remove -y bomber
sudo dnf remove -y cantata
sudo dnf remove -y cantor
sudo dnf remove -y clementine
@nivaca
nivaca / myauctex.el
Created March 9, 2023 12:05
AucTeX configurarion
;;; mylisp/myauctex.el -*- lexical-binding: t; -*-
(use-package auctex
:straight t
:defer t
:mode
("\\.tex\\'" . latex-mode)
("\\.ltx\\'" . latex-mode)
:commands
(latex-mode
%this tex file was auto produced from TEI by lbp-print-xslt 1.0.0 critical stylesheets on 2022-08-10T19:39:07.443717Z using the file:/usr/src/app/annotations.xslt
\documentclass[twoside, openright]{report}
%imakeidx must be loaded beore eledmac
\usepackage{imakeidx}
@nivaca
nivaca / titlecaseclipboard.py
Created August 1, 2021 20:40
Converts to smart title case a text in the clipboard and stores it again in it
import pyperclip
from titlecase import titlecase
inputtext = pyperclip.paste()
outputtext = titlecase(inputtext)
pyperclip.copy(outputtext)
function _prompt_char() {
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
echo ' '
fi
}
PROMPT='%F{red}[%B%F{220}%n%F{green}@%F{39}%m %F{5}%1~%F{red}$(_prompt_char)$(git_prompt_info)%F{red}%b]%f
%# '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
#!/usr/bin/env bash
# set -x # echo on
_isInstalled() {
package="$1";
check="$(sudo pacman -Qs --color always "${package}" | grep "local" | grep "${package} ")";
if [ -n "${check}" ] ; then
echo 0; #'0' means 'true' in Bash
return; #true
fi;
#!/usr/bin/env python3
# This script does the following:
# 1. If Emacs is already running, it loads the files given as arguments,
# or simply activates (focuses) the main window if no files are given.
# 2. If Emacs is not running, it runs it and
# loads the files given as arguments, if any.
# Requires psutil and xdotool:
# yay -S python-psutil xdotool
@nivaca
nivaca / oxygen_dark_theme.xml
Created May 27, 2020 14:21
Oxygen XML Editor dark theme
<?xml version="1.0" encoding="UTF-8"?>
<serialized version="22.1" xml:space="preserve">
<serializableOrderedMap>
<entry>
<String>annotation.highlight.color</String>
<String>71,89,76</String>
</entry>
<entry>
<String>author.background-color</String>
<String>64,69,82</String>