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
import ssl | |
import socket | |
import base64 | |
import hashlib | |
import sys | |
def verify_certificate_pinning(host, port, expected_pin): | |
try: | |
# Ouvre une connexion au serveur | |
conn = socket.create_connection((host, port)) | |
context = ssl.create_default_context() |
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
- Go To AWS Cloud Front | |
- Go to the „Error Pages“ Tab for your CloudFront Distribution and create a new Custom Error Response. | |
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 | |
namespace App; | |
use GuzzleHttp\Client; | |
class ExalandFirebase | |
{ | |
private $fcmUrl; | |
private $serviceAccountPath; | |
private $httpClient; |
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
Workaround is to update all the generated ...-frameworks.sh files to add the -f flag to the call to readlink. In other words, need to replace: | |
source="$(readlink "${source}")" | |
with | |
source="$(readlink -f "${source}")" | |
Seems this is CocoaPods issue... |
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
# DIAWI IMPORT APK BY API | |
curl https://upload.diawi.com/ -F token='TOKEN' \ | |
-F [email protected] \ | |
-F callback_emails='[email protected]' |
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
RedirectMatch 404 /\.git |
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
Mettre en place une instance d’OSRM | |
1 Qu’est ce qu’OSRM | |
OSRM est un logiciel de calcul d’itinéraire par le plus court chemin utilisant les données d’OpenStreetMap. | |
OSRM sur GitHub | |
OSRM dispose d’un serveur de démo pour tester le logiciel. Ce serveur limite les utilisations pour éviter de le surcharger. | |
Nous devons donc installer et mettre en place notre propre instance d’OSRM. |
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
Create a database table to store the gift card information, such as the card number, pin, balance, expiration date, and status (active or redeemed). | |
Copy code | |
CREATE TABLE gift_cards ( | |
id INT AUTO_INCREMENT PRIMARY KEY, | |
card_number VARCHAR(16) NOT NULL, | |
pin VARCHAR(4) NOT NULL, | |
balance DECIMAL(10,2) NOT NULL, | |
expiration_date DATE NOT NULL, | |
status ENUM('active', 'redeemed') NOT NULL |
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
version: '3' | |
services: | |
strapi: | |
image: strapi/strapi | |
container_name: strapi_mysql | |
environment: | |
DATABASE_CLIENT: mysql | |
DATABASE_HOST: mysql | |
DATABASE_NAME: ${DATABASE_NAME:-strapidb} |
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
version: "3" | |
services: | |
strapiexample: | |
image: strapi/strapi | |
container_name: strapiexample | |
restart: unless-stopped | |
env_file: .env | |
environment: | |
DATABASE_CLIENT: ${DATABASE_CLIENT} | |
DATABASE_NAME: ${DATABASE_NAME} |
NewerOlder