Skip to content

Instantly share code, notes, and snippets.

Thinking slowly

Riccardo Scalco riccardoscalco

Thinking slowly
Block or report user

Report or block riccardoscalco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# Install ghostscript.
# Assume A and B have the same amount of files.
# Assume file in A are named `testo_1`, and files in B are named `disegno_1`.
END=`ls A/*.pdf | wc -l`
echo "merging..."
riccardoscalco /
Created Dec 6, 2017
how to use ttf fonts in xterm

Add fonts to directory ~/.fonts.

See available fonts:

$ fc-list | col | sort | less

For example, among all I have:

riccardoscalco /
Last active Aug 29, 2015
Updates archlinux, ruby, python and npm packages

update archlinux packages

sudo pacman -Syu
sudo yaourt -Syua

update npm packages

npm outdated
sudo npm update
riccardoscalco /
Created Jul 15, 2015
Git: revert to an older commit. Get your index and work tree into the desired state, without changing HEAD.
$ git checkout 0d1d7fc32 .
$ git commit -m "revert to older commit"
$ git push origin master
View index.html
<div id="box">
<script src="" charset="utf-8"></script>
<script src=""></script>
View Edges of a network.markdown
View Outset of a d3 chart.markdown
You can’t perform that action at this time.