Les données retournées sont au format XML.
Document trouvé et modifié depuis Pastebin.
<?php | |
require 'nmaApi.class.php'; | |
function get_web_page($url) | |
{ | |
//echo "curl:url<pre>".$url."</pre><BR>"; | |
$options = array( | |
CURLOPT_RETURNTRANSFER => true, // return web page | |
CURLOPT_HEADER => false, // don't return headers | |
CURLOPT_FOLLOWLOCATION => true, // follow redirects |
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
echo "Usage: ./pushover <message> [title]" | |
exit | |
fi | |
MESSAGE=$1 | |
TITLE=$2 |
Les données retournées sont au format XML.
Document trouvé et modifié depuis Pastebin.
#!/bin/sh | |
# Root path of the directory to backup | |
ROOT_DATA_DIR="/media/Data" | |
# Root path for the backup directory | |
ROOT_BACKUP_DIR="/media/outadoc/Stanley/Backup" | |
# Begin backup script, and print a quote | |
echo "Commencing backup procedure." |
### colors | |
RED="\e[0;31m" | |
GREEN="\e[0;32m" | |
CLR="\e[0m" | |
echo "" | |
### check internet connectivity | |
INTERNET_WGET=`wget -q --tries=10 --timeout=20 -O - http://google.com > /dev/null` | |
INTERNET_STATUS="${RED}DOWN$CLR" |
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
echo "Usage: $0 <message> [title]" | |
exit | |
fi | |
MESSAGE=$1 | |
TITLE=$2 |
import Foundation | |
public typealias JSON = AnyObject | |
public func JSONWithData(data: NSData) throws -> JSON? { | |
return NSJSONSerialization.JSONObjectWithData(data, options: []) | |
} |
#!/usr/bin/env python | |
# | |
# Copyright 2007-2013 The Python-Twitter Developers | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
1. No private data leave the app, including the camera feed. | |
2. Actually, no data even leaves the app. It doesn't even require Internet permissions. It only ever interfaces with Torque. |
# sort in date/month directories | |
exiftool -r "-Directory<DateTimeOriginal" -d "%Y/%m" -v . | |
# use CreationDate if DateTimeOriginal didn't work | |
exiftool "-Directory<CreationDate" -d "%Y/%m" -v . |