Skip to content

Instantly share code, notes, and snippets.

@joelpet
joelpet / vdirsyncer-throttle.sh
Created May 14, 2018 20:17
Throttles vdirsyncer in case of an HTTP 429 response
#!/bin/bash
set -eu
set -o pipefail
cd $(mktemp --directory --suffix '.vdirsyncer')
touch vdir_err
bash_pid=$$
@joelpet
joelpet / sy_down_fail.log
Created March 8, 2015 10:00
End of log output at failed "sy down" command
8-3-15 1:38:19.346 | DownOperation | main | FINE : - Applying file system actions (sorted!) ...
8-3-15 1:38:19.346 | DownOperation | main | FINE : + NewFileSystemAction [file1=null, file2=FileVersion [version=1, path=Studies/kth/kurser/dasakh/lab3-web_attacks/zoobar_src/demo-client.php, type=FILE, status=NEW, size=155, lastModified=Wed Sep 18 15:17:27 CEST 2013, linkTarget=null, checksum=eb19a467c225568fa6b2d344a68bcfc6d54bba3a, updated=Sat Mar 07 18:26:44 CET 2015, posixPermissions=r-xr--r--, dosAttributes=--a-]]
8-3-15 1:38:19.352 | Assembler | main | INFO : - Creating file Studies/kth/kurser/dasakh/lab3-web_attacks/zoobar_src/demo-client.php to /home/joelpet/Documents/.syncany/cache/temp-reconstructedFileVersion-8448011157146244030.tmp ...
8-3-15 1:38:19.359 | FileSystemActio | main | INFO : - Setting POSIX permissions: r-xr--r-- ...
8-3-15 1:38:19.366 | CommandLineClie | main | SEVE : Command org.syncany.cli.DownCommand@73cd15da FAI