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
#!/usr/bin/env python | |
# zmqc: a small but powerful command-line interface to ZMQ. | |
## Usage: | |
# zmqc [-0] (-r | -w) (-b | -c) SOCK_TYPE [-o SOCK_OPT=VALUE...] address [address ...] | |
## Examples: | |
# zmqc -rc SUB 'tcp://127.0.0.1:5000' | |
# | |
# Subscribe to 'tcp://127.0.0.1:5000', reading messages from it and printing |
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
<?php | |
function getTvaKey($siren) | |
{ | |
return (12+3*(intval($siren) % 97))%97; | |
} | |
function getTvaCode($siren) | |
{ | |
return "FR".getTvaKey($siren).$siren; |
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
#!/bin/sh | |
function parse_yaml() { | |
local yaml_file=$1 | |
local prefix=$2 | |
local s | |
local w | |
local fs | |
s='[[:space:]]*' |
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
#!/bin/sh | |
# Agrandir le disque / | |
sudo yum -y install cloud-utils | |
sudo growpart /dev/sda 1 | |
sudo resize2fs /dev/sda1 | |
# install Virtual box & Vagrant | |
URL_VIRTUALBOX="https://download.virtualbox.org/virtualbox/6.1.4/VirtualBox-6.1-6.1.4_136177_el7-1.x86_64.rpm" | |
URL_VAGRANT="https://releases.hashicorp.com/vagrant/2.2.7/vagrant_2.2.7_x86_64.rpm" |
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
# pip3 install PyPDF2 | |
# python3 merger.py result_file.pdf file1.pdf file2.pdf somedir/*.pdf |
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
# pip3 install xlsxwriter | |
or | |
# apt install python3-xlsxwriter | |
# merge_tsv_xlsx.py result_file.xlsx *.tsv |