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/python3 | |
# pip install sagemcom_api | |
import asyncio | |
import urllib.parse | |
from sagemcom_api.enums import EncryptionMethod | |
from sagemcom_api.client import SagemcomClient | |
from getpass import getpass |
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
HttpResponseMessage ToJson(BsonDocument document) | |
{ | |
return new HttpResponseMessage { Content = new StringContent(document.ToJson(), System.Text.Encoding.UTF8, "application/json") }; | |
} |
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 | |
header("Content-Type:text/plain"); | |
print '-- SQL Migration Script for Concrete5 lowercase tables names to original table names' . PHP_EOL; | |
print '-- By Chris03' . PHP_EOL; | |
print '-- Note: When running with phpMyAdmin, you should temporary enable: Settings -> SQL Queries -> Ignore multiple statement errors ' . PHP_EOL; | |
$fileNames = findAllDatabaseXmlFiles('concrete'); | |
$tableFiles = getTablesFromFiles($fileNames); | |
printStats($tableFiles); |