Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢
Thinking slowly

Riccardo Scalco riccardoscalco

🐢
Thinking slowly
View GitHub Profile
@riccardoscalco
riccardoscalco / image.svg
Created May 8, 2020 07:50
Example of custom textures
View image.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 December 6, 2017 14:32
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 August 29, 2015 08:30
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 July 15, 2015 06:44
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
@riccardoscalco
riccardoscalco / index.html
Created June 19, 2015 08:57
power distribution
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>
@riccardoscalco
riccardoscalco / Edges of a network.markdown
Last active August 29, 2015 14:22
Edges of a network
View Edges of a network.markdown
@riccardoscalco
riccardoscalco / Outset of a d3 chart.markdown
Last active August 29, 2015 14:22
Outset of a d3 chart
View Outset of a d3 chart.markdown