This file contains hidden or 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
package main | |
import ( | |
"os" | |
"time" | |
"strings" | |
"fmt" | |
"io/ioutil" | |
"encoding/xml" | |
"net/url" |
This file contains hidden or 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
use serde_derive::Deserialize; | |
use structopt::StructOpt; | |
use serde_xml_rs::from_str; | |
use percent_encoding::percent_decode_str; | |
use chrono::Local; | |
#[derive(StructOpt)] | |
struct Cli { | |
/// The path to the file to read | |
#[structopt(parse(from_os_str))] |
This file contains hidden or 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/env python3 | |
# -*- coding: utf-8 -*- | |
import sys, re, datetime, urllib.parse, xml.etree.ElementTree as ET | |
if len(sys.argv) < 2: | |
sys.exit('Usage: %s brasero.project.file' % sys.argv[0]) | |
tree = ET.ElementTree(file=sys.argv[1]) | |
root = tree.getroot() |
This file contains hidden or 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
private static String[] getSdcards() { | |
// Final set of paths | |
final Set<String> rv = new HashSet<String>(); | |
// Primary physical SD-CARD (not emulated) | |
final String rawExternalStorage = System.getenv("EXTERNAL_STORAGE"); | |
verboseDebug("EXTERNAL_STORAGE env is: " + rawExternalStorage); | |
// All Secondary SD-CARDs (all exclude primary) separated by ":" | |
final String rawSecondaryStoragesStr = System.getenv("SECONDARY_STORAGE"); | |
verboseDebug("SECONDARY_STORAGE env is: " + rawSecondaryStoragesStr); | |
// Primary emulated SD-CARD |
This file contains hidden or 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
REST URL for requesting content: | |
http://server/service/home/[˜][{username}]/[{folder}]?[{query-params}] | |
fmt={ics, csv, etc} | |
id={item-id} | |
imap_id={item-imap-id} | |
part={mime-part} | |
query={search-query} | |
types={types} // when searching | |
auth={auth-types} |