Skip to content

Instantly share code, notes, and snippets.

View packi's full-sized avatar

Patrick Stählin packi

View GitHub Profile
#!/bin/bash
mkdir test
mkdir test/1
mkdir test/2
mkdir test/1/1
mkdir test/1/2
mkdir test/2/1
mkdir test/2/2
touch test/foo.txt
touch test/1/foo.txt
2001:8e0:xxx::1 - the_user [06/Jan/2019:00:17:34 +0100] "PROPFIND /remote.php/dav/files/the_user/ HTTP/1.1" 207 386 "-" "Mozilla/5.0 (Linux) mirall/2.5.1final (build 20181204)
(Nextcloud)"
2001:8e0:xxx::1 - the_user [06/Jan/2019:00:17:38 +0100] "PROPFIND /remote.php/dav/files/the_user/ HTTP/1.1" 207 366 "-" "Mozilla/5.0 (Linux) mirall/2.5.1final (build 20181204)
(Nextcloud)"
2001:8e0:xxx::1 - the_user [06/Jan/2019:00:17:40 +0100] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 200 323 "-" "Mozilla/5.0 (Linux) mirall/2.
5.1final (build 20181204) (Nextcloud)"
2001:8e0:xxx::1 - the_user [06/Jan/2019:00:17:53 +0100] "GET /ocs/v2.php/cloud/activity?start=0&count=100&format=json HTTP/1.1" 200 1347 "-" "Mozilla/5.0 (Linux) mirall/2.5.1final (build 20181204) (Nextcloud)"
2001:8e0:xxx::1 - the_user [06/Jan/2019:00:17:53 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1" 304 - "-" "Mozilla/5.0 (Linux) mirall/2.5.1final (build 20181204) (Nextcloud)"
2001:8e0
[OCC::FolderWatcher::changeDetected Detected changes in paths: QSet("/home/the_user/Owncloud/test")
[OCC::FolderMan::scheduleFolder Schedule folder "1" to sync!
[OCC::ownCloudGui::slotSyncStateChange Sync state changed for folder "https://nextcloud.example.com:4433/remote.php/dav/files/the_user/" : "Not yet Started"
[OCC::ActivityListModel::startFetchJob Start fetching activities for "the_user@nextcloud.example.com:4433"
[OCC::AccessManager::createRequest 2 "" "https://nextcloud.example.com:4433/ocs/v2.php/cloud/activity?start=0&count=100&format=json" has X-Request-ID "f4060e6f-620f-49fc-b028-9038d7357a6f"
[OCC::AbstractNetworkJob::start OCC::JsonApiJob created for "https://nextcloud.example.com" + "ocs/v2.php/cloud/activity" "OCC::ActivityListModel"
[OCC::AccessManager::createRequest 2 "" "https://nextcloud.example.com:4433/ocs/v2.php/apps/notifications/api/v2/notifications?format=json" has X-Request-ID "a3dde6eb-9962-49a5-be88-0ce964303a56"
[OCC::AbstractNetworkJob::start OCC::JsonApiJob create
packi@overlord:~$ curl -s https://user-api.squirro.com/oauth2/token \
-H 'Accept: application/json' \
-d grant_type=refresh_token \
-d refresh_token=3806c71b3bd520... | python -mjson.tool
{
"access_token": "a23424ff...",
"refresh_token": "3806c71b3bd520...",
"session_id": "vxn32764S3CQf7OTxVZpkA",
"tenant": "linkedin-vmr1SvM-kp",
"user_id": "Pbo1MPruTpe5Mj3skX7rwQ"