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
View script.sh
#!/bin/bash
# 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
riccardoscalco / file.md
Created Dec 6, 2017
how to use ttf fonts in xterm
View file.md

Add fonts to directory ~/.fonts.

See available fonts:

$ fc-list | col | sort | less

For example, among all I have:

@riccardoscalco
riccardoscalco / updates.md
Last active Aug 29, 2015
Updates archlinux, ruby, python and npm packages
View updates.md

update archlinux packages

sudo pacman -Syu
sudo yaourt -Syua

update npm packages

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