Normalize unicode file names (converts UTF-8 NFD to NFC).
Required by macOS clients through AFP/NFS/SMB.
Tested on Synology DSM 6.2 with built-in Python 2.7.12.
| #!/bin/bash | |
| # btrfs-undelete | |
| # Copyright (C) 2013 Jörg Walter <info@syntax-k.de> | |
| # This program is free software; you can redistribute it and/or modify it under | |
| # the term of the GNU General Public License as published by the Free Software | |
| # Foundation; either version 2 of the License, or any later version. | |
| if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then | |
| echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2 | |
| echo |
| <activity | |
| android:name=".MainActivity" | |
| android:launchMode="singleTop" | |
| android:theme="@style/LaunchTheme" | |
| android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density" | |
| android:hardwareAccelerated="true" | |
| android:windowSoftInputMode="adjustResize"> | |
| <!-- Add This intent-filter --> | |
| <intent-filter> | |
| <action android:name="android.intent.action.SEND" /> |
| const sleep = async (time, unit) => { | |
| switch(unit){ | |
| case 'ms': | |
| return new Promise(resolve => setTimeout(resolve, time)); | |
| break; | |
| case 's': | |
| return new Promise(resolve => setTimeout(resolve, time*1000)); | |
| break; |
const vocabList = document.querySelectorAll(".vocab-list-row");
let vocabToExport = [];
| #!/usr/bin/sh | |
| HELP='false' | |
| while getopts ":hm:s:" flag | |
| do | |
| case "${flag}" in | |
| h) HELP='true';; | |
| m) METHOD=${OPTARG};; | |
| s) SHARED_FOLDER=${OPTARG};; | |
| \?) echo "Invalid option: -$OPTARG" >&2; exit 1;; |