Skip to content

Instantly share code, notes, and snippets.

@afcuttin
afcuttin / .gitignore
Created March 27, 2020 20:58
LaTeX .gitignore file
## Created from https://github.com/afcuttin/gitignore/blob/master/TeX.gitignore
## but, because it is not possible to checkout a single file from a repository, I stick to the gist approach
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
@afcuttin
afcuttin / seafile-ignore.txt
Last active March 26, 2020 20:49
Seafile ignore file
# A blank line matches no files.
# A line starting with # serves as a comment.
# Seafile supports wildcards in the pattern. For example, "foo/*" matches "foo/1" and "foo/hello". "foo/?" matches "foo/1" but not "foo/hello". Note that the wildcard character * recursively matches all the paths under a folder. For instance, "foo/*.html" matches "foo/a.html" and "foo/templates/b.html".
# If the pattern ends with a slash, it would only match a folder. In other words, "foo/" will match a folder "foo" and paths underneath it, but will not match a regular file or a symbolic link "foo".
# If a pattern doesn't end with a slash or a wildcard, it would not match a folder. For example, "foo" can only match regular file "foo" or a symbolic link; while "foo/" and "foo*" match a folder and paths under it.
## Example
## a regular file
#test-file
#
@afcuttin
afcuttin / bump-version.sh
Created July 26, 2019 15:27 — forked from mareksuscak/bump-version.sh
Bump version shell script.
#!/bin/bash
# Thanks goes to @pete-otaqui for the initial gist:
# https://gist.github.com/pete-otaqui/4188238
#
# Original version modified by Marek Suscak
#
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3" or even "1.2.3-beta+001.ab"
@afcuttin
afcuttin / glossaries.cwl
Created July 15, 2016 10:45
Autocompletion file for the glossaries package
# autogenerated by txs edited by Stefan Kraus 2013-09-09, completed by Denis Bitouz\'e 13-10-2014
#include:amsgen
#include:etoolbox
#include:ifthen
#include:mfirstuc
#include:translator
#include:xfor
#include:xkeyval
\CustomAcronymFields#S
\CustomNewAcronymDef#S
#!/bin/bash
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3"
# this script will display the current version, automatically
# suggest a "minor" version update, and ask for input to use
# the suggestion, or a newly entered value.