This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install script for Ubuntu server 16.0+. | |
# Installs and sets up Caddy web server with a static website hosted on a GitHub repository. | |
# Used in https://blog.dipasquale.fr/en/2018/12/27/build-and-deploy-huge-static-websites-with-caddy/ | |
# This script is a condensed version of https://blog.digitalocean.com/deploying-a-fully-automated-git-based-static-website-in-under-5-minutes/ | |
# Download and extract Caddy : | |
wget -O caddy.tar.gz "https://caddyserver.com/download/linux/amd64?plugins=http.git&license=personal" | |
mkdir caddy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xsv select "Reference,Date_et_typologie_de_la_protection,Typologie_de_la_protection" --delimiter ';' \ ‹3.3.0› | |
liste-des-objets-mobiliers-propriete-publique-classes-au-titre-des-monuments.csv \ | |
| grep -ve ',$' \ | |
> tmp/objets-with-prot.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xsv select "Reference,Typologie_de_la_protection,Date_et_typologie_de_la_protection" --delimiter ';' \ ‹3.3.0› | |
liste-des-objets-mobiliers-propriete-publique-classes-au-titre-des-monuments.csv \ | |
| grep -e ',,\d' \ | |
> tmp/objets-without-prot.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mise à jour de l’objet PM47001028 : {"palissy_COM"=>["Réunion(La)", "Réunion (La)"]} | |
mise à jour de l’objet PM85001339 : {"palissy_DENQ"=>[nil, "2023"]} | |
création de l’objet PM65001516 avec {:palissy_COM=>"Campan", :palissy_INSEE=>"65123", :palissy_DPT=>"65", :palissy_DOSS=>"dossier avec sous-dossier", :palissy_EDIF=>"église Notre-Dame-de-l'Assomption", :palissy_EMPL=>"choeur", :palissy_TICO=>"autel (maître-autel) avec retable, trois tableaux et leurs cadres, six panneaux peints, tabernacle et quatre chandeliers d'autel", :palissy_DPRO=>"2002/12/19 : inscrit au titre objet", :palissy_PROT=>"inscrit au titre objet", :palissy_REFA=>"PA00095358", :palissy_DENO=>"autel;retable;tableau (9);cadre (3);tabernacle;chandelier d'autel (4)", :palissy_CATE=>"menuiserie;sculpture", :palissy_SCLE=>"17e siècle;18e siècle;19e siècle", :palissy_DENQ=>nil} | |
mise à jour de l’objet PM73002156 : {"palissy_EMPL"=>["grenier", nil]} | |
mise à jour de l’objet PM73002131 : {"palissy_EMPL"=>["armoire abside", nil]} | |
création de l’objet PM6200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// nodeJS > 18 script without additional dependencies | |
const https = require("https") | |
const URL = require('url') | |
const fs = require('fs') | |
const fetchUrl = (url, callback) => { | |
const parsed = new URL.URL(url) | |
https.get(url, response => { | |
if (response.statusCode >= 300 && response.statusCode < 400) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open Automator | |
# create a new quick action | |
# select Movie files in Finder | |
# add action "Run Shell Script" | |
# select ruby as the shell and pass inputs as arguments | |
# enter this | |
require 'time' | |
ARGV.each do |input_path| |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACQU - Contexte d'acquisition | |
values not blank : 1% | |
top 5 values by count : | |
ACQU pct | |
DONATION-(AURORE LAUTH SAND: 6 OCTOBRE 1952) 2311 88% | |
oui 195 7% | |
1947-1958 26 1% | |
dation en paiement des droits de mutation 6 0% | |
DEPOT-(COMITE DU TOURISME DE L'INDRE) 4 0% | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# scripts/html2haml.sh | |
ls $1 | sed 'p;s/.erb$/.haml/' | xargs -n2 bundle exec html2haml --ruby19-attributes -E utf-8:utf-8 | |
ls $1 | sed 's/.erb$/.haml/' | xargs sed -i '' 's/é/é/g' | |
ls $1 | sed 's/.erb$/.haml/' | xargs sed -i '' 's/è/è/g' | |
ls $1 | sed 's/.erb$/.haml/' | xargs sed -i '' 's/ /\ /g' | |
ls $1 | sed 's/.erb$/.haml/' | xargs sed -i '' 's/«/«/g' | |
ls $1 | sed 's/.erb$/.haml/' | xargs sed -i '' 's/»/»/g' | |
ls $1 | sed 's/.erb$/.haml/' | xargs sed -i '' 's/à/à/g' | |
ls $1 | sed 's/.erb$/.haml/' | xargs sed -i '' 's/’/ʼ/g' |
NewerOlder