Qu'est-ce que Restic ?
Restic est un programme de sauvegarde moderne qui peut sauvegarder vos fichiers :
netstat -a
ou aussi:
lsof -i
xxd filename | less
macos terminal info à propos de l'écran.
system_profiler SPDisplaysDataType
ou
defaults read /Library/Preferences/com.apple.windowserver.plist
ou un script cscreen
# install homebrew if you don't have it already
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master /install)"
# install cscreen
brew install --cask cscreen
# list displays
cscreen -l
ex:
DisplayID Index Depth Width Height Refresh
1 1 32 1440 900 60
2 2 32 1920 1080 60
use -h to display all usage options</code>
The first time you try to open the cscreen the os will not allow it because it isn't signed.
You have to go to Security & Privacy in System Preferences and allow it.
csvkit est une collection d'outil pour manipuler du csv.
Voici qq commandes pour ajouter une colonne à un csv.. fusionner deux fichiers csv
csvjoin -c 1 examples/join_a.csv examples/join_b.csv
Add two empty columns to the right of a CSV:
echo "," | csvjoin examples/dummy.csv -
Add a single column to the right of a CSV:
echo "new-column" | csvjoin examples/dummy.csv -