Operation | Webdav | REST |
---|
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 | |
// ref: https://www.win.tue.nl/~aeb/linux/uc/nfc_vs_nfd.html | |
$s = $argv[1]; | |
if (\Normalizer::isNormalized($s, \Normalizer::FORM_D)) { | |
print("Original string is using NFD normalization\n"); | |
$nfc = \Normalizer::normalize($s, \Normalizer::FORM_C); | |
print("NFC: $nfc\n"); | |
print("NFD: $s\n"); | |
} elseif (\Normalizer::isNormalized($s, \Normalizer::FORM_C)) { |
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 | |
$s = $argv[1]; | |
if (\Normalizer::isNormalized($s, \Normalizer::FORM_D)) { | |
print("Original string is using NFD normalization\n"); | |
$nfc = \Normalizer::normalize($s, \Normalizer::FORM_C); | |
print("NFC: $nfc\n"); | |
print("NFD: $s\n"); | |
} elseif (\Normalizer::isNormalized($s, \Normalizer::FORM_C)) { | |
print("Original string is using NFC normalization\n"); |
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 | |
import json | |
import sys | |
from urllib.request import urlopen | |
from packaging import version | |
if len(sys.argv) > 1: | |
expectedVersion = version.parse(sys.argv[1]) | |
else: |
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/bash | |
NC_URL="https://nchost" | |
USERS=(alice bob charles dave) | |
PASSWORD=passwordcomeshere | |
C=1 | |
SPECIFIC_ROOM="$1" |
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/bash | |
shopt -s nullglob | |
INPUT_DIR="$1" | |
OUTPUT_DIR="$INPUT_DIR"/out | |
TARGET_DIR="$2" | |
function syntax | |
{ | |
echo "nc_export_pics /path/to/input /path/to/output" >&2 |
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/bash | |
# replace accordingly | |
NC_URL="https://localhost" | |
USERS=(alice bob charles dave) | |
PASSWORD=test | |
EXPRESSIONS=("hello" "hello!" "goodbye" "bye" "how are you" "good, thank you") | |
while true; |
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/bash | |
TEST_SUITE="$1" | |
SEARCH_FOLDERS="apps/*/tests tests/lib tests/unit" | |
if test -z "$TEST_SUITE"; then | |
if test -r Makefile; then | |
make test-php TEST_DATABASE=sqlite 2>&1 | tee octest.log | |
else |
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/python | |
import sys | |
import json | |
def expand_stack(data, count): | |
# detect stack | |
message = data['message'] | |
stack_start = message.find('[{'); |
NewerOlder