Skip to content

Commit

Permalink
.gitignore fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KrazyMax committed Oct 17, 2019
1 parent 7c8b8af commit e3c7f9b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 59 deletions.
Binary file removed .DS_Store
Binary file not shown.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
venv
.vscode
.DS_Store
__pycache__
*.pyc
data/sqlite.db
algo.py
cert/*.pem
cert/*.p12
*.pem
*.p12
8 changes: 2 additions & 6 deletions demo.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
#-*- coding: utf-8 -*-
# NOTE : à exécuter dans un shell Python plutôt que comme un script !

from manager import Manager
import json
import utils
import datetime

test_manager = Manager() # avec proxy
test_manager = Manager(how_to_auth='cert')
test_manager = Manager() # avec proxy
test_manager = Manager(how_to_auth='cert') # avec cert
requestedFlightFields = ['flightState', 'cfmuFlightType']

# démo queryFlightsByAirspace
Expand Down
35 changes: 0 additions & 35 deletions demo2.py

This file was deleted.

4 changes: 4 additions & 0 deletions git_untrack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
git rm -r --cached .
git add .
git commit -m ".gitignore fix"
7 changes: 0 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,4 @@ fi
PATH_TO_ZEEP_COLLECTION=$(find . -name collection.py)
yes | cp -rf ./upgrade/collection_new.py $PATH_TO_ZEEP_COLLECTION
echo "Le fichier collection.py a bien été remplacé !"

if [ ! -d data ]; then
echo "On créé le répertoire data"
mkdir ./data
echo "Répertoire data créé avec succès !"
fi

exit 0
10 changes: 1 addition & 9 deletions set_cert_key.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/sh
NBR_RESULTS=$(find ./cert -name '*.p12' | wc -l)
# NBR_RESULTS=$(find ./venv -name collection.py | wc -l)
if [ $NBR_RESULTS = '0' ]; then
printf "Aucun fichier trouvé avec l'extension .p12 dans cert/"
exit 1
Expand All @@ -9,16 +8,9 @@ elif [ $NBR_RESULTS -gt '1' ]; then
exit 1
else
FILE_NAME=$(find ./cert -name '*.p12')
#FILE_NAME="${FULL_FILE_NAME%.*}"
printf "Un fichier .p12 a bien été trouvé dans /cert.\nQuel est votre mot de passe ?\n"
read PASSWORD
printf "On créé maintenant les fichier crt.pem et key.pem.\n"
#echo "openssl pkcs12 -in ${FILE_NAME} -passin=pass:${PASSWORD} -out ./cert/crt.pem -clcerts -nokeys"
openssl pkcs12 -in ${FILE_NAME} -passin=pass:${PASSWORD} -out ./cert/crt.pem -clcerts -nokeys # pour le certificat
openssl pkcs12 -in ${FILE_NAME} -passin=pass:${PASSWORD} -out ./cert/key.pem -nocerts -nodes # pour la clé
fi

# filename=$(basename -- "$fullfile")
# extension="${filename##*.}"
# filename="${filename%.*}"
# b2bcert4dpa2019
fi

0 comments on commit e3c7f9b

Please sign in to comment.