Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2014-10-01 14:23:01 -04:00
commit f1c65404f5
10 changed files with 115 additions and 2 deletions

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="stp"
ip="91.34.113.105"
subject="Any update"
date="2014-10-01T12:46:34Z"
content="""
Any update?
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="stp"
ip="24.134.205.34"
subject="Any update"
date="2014-10-01T12:48:06Z"
content="""
Any update?
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="stp"
ip="24.134.205.34"
subject="Any update"
date="2014-10-01T12:47:47Z"
content="""
Any update?
"""]]

View file

@ -0,0 +1,5 @@
Hello,
I'm using the git-annex assistant (in Mac Mavericks) and I'm trying to create a new remote rsync repo, I have the details and everything but I can't do it over ssh, I need the call to use rsync otherwise I get: **This account is restricted by rssh. Allowed commands: scp rsync ** . Can this be changed manually? How can I create a remote rsync repo?
Thanks

View file

@ -0,0 +1,29 @@
[[!comment format=mdwn
username="sudoman"
ip="216.15.125.93"
subject="ls symlink workaround; idea for a solution"
date="2014-09-29T18:58:23Z"
content="""
as a workaround, you could make a bash alias for `ls -l` -> `ls -lL`. the problem with this is that links to other links are fully dereferenced.
what looks like this in a non-git-annex directory with `ls -lh`:
total 3.8M
-rw-r--r-- 1 sudoman sudoman 3.8M Sep 29 13:56 42x3551_02.pdf
lrwxrwxrwx 1 sudoman sudoman 14 Sep 29 14:00 tmp -> 42x3551_02.pdf
looks like this in an indirect git annex repo with `ls -lhL`:
total 7.5M
-r--r--r-- 1 sudoman sudoman 3.8M Sep 29 13:56 42x3551_02.pdf
-r--r--r-- 1 sudoman sudoman 3.8M Sep 29 13:56 tmp
the ls alias is a bit hackish, but for some purposes it's an improvement.
rsync may work as desired when using a command like `rsync -l --safe-links` (haven't tried it. users might want to experiment by adding `--exclude` to that command.)
a potential solution for ls (and cp) could be the inclusion of a patched version under `git annex util ls`. writing shim programs using `LD_PRELOAD` instead of patching may drastically reduce the amount of code needing future security updates.
"""]]

View file

@ -0,0 +1,6 @@
I'm using git-annex to sync my photos across multiple computers, and it works beautifully. I would also like to sync Lightroom catalogues. The photo editing program creates a *.lrdata directory where it stores the edits in its own tree format. Merging two such directories obviously creates a mess.
Is there an elegant way to tell git-annex to treat the whole directory as a single file and overwrite the whole directory structure at once? I'm guessing the same problem occurs with mac os packages.
Many thanks!
Alex

View file

@ -1,7 +1,24 @@
#! /usr/bin/perl -w
my $dbpath="/home/video/.xbmc/userdata/Database/MyVideos75.db";
# we want to operate on relative links, so set this to the common prefix
# to the git annex repo
my $prefix="/home/media/video/";
# this is the directory for the XBMC database
my $path = '/home/video/.xbmc/userdata/Database/';
# no user-serviceable parts below
# list videos database, find the latest one
# modified version of
# http://stackoverflow.com/questions/4651092/getting-the-list-of-files-sorted-by-modification-date-in-perl
opendir my($dirh), $path or die "can't opendir $path: $!";
my @flist = sort { -M $a <=> -M $b } # Sort by modification time
map { "$path/$_" } # We need full paths for sorting
grep { /^MyVideos.*\.db$/ }
readdir $dirh;
closedir $dirh;
my $dbpath=$flist[0];
my @lines = `echo 'SELECT playCount, path.strPath, files.strFileName FROM movie JOIN files ON files.idFile=movie.idFile JOIN path ON path.idPath=files.idPath;' | sqlite3 $dbpath`;
for (@lines) {
@ -11,7 +28,6 @@ for (@lines) {
if ($count !~ /[0-9]/) {
$count = 0;
}
$dir =~ s/$prefix//;
if ($file =~ s#stack://##) {
for (split /,/, $file) {
s/$prefix//;
@ -22,6 +38,7 @@ for (@lines) {
}
}
else {
$dir =~ s/$prefix//;
my @cmd = (qw(git annex metadata --set), "playCount=$count", "$dir$file");
system(@cmd);
}

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://id.koumbit.net/anarcat"
ip="72.0.72.144"
subject="comment 3"
date="2014-10-01T02:02:39Z"
content="""
for some reason this doesn't work in gnome2. i had to add the shortcuts in /usr/share/nautilus-scripts (iirc). --[[anarcat]]
"""]]

View file

@ -0,0 +1,16 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawnvr2UPmp7ABeH0yI8KGAHCqFhl91Ju4Tc"
nickname="Calvin"
subject="HTTP Authentication?"
date="2014-09-29T21:37:44Z"
content="""
Hi!
I have a somewhat interesting use case. My course notes require HTTP authentication. This is possible with wget, but is there any way to make git annex do it?
[wget authentication stuff!](http://stackoverflow.com/questions/4272770/wget-with-authentication)
It would be nice to have the user and pass encrypted with GPG too. This might be a strange use case, but I can see other people wanting to do something like this in the future.
Thanks!
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.55"
subject="comment 9"
date="2014-09-30T18:09:04Z"
content="""
For urls using http basic auth, you can use the standard url form, http://username:password@example.org/url/ , which should work with `git annex addurl`. The url, including the password, will be stored in the git-annex branch though. If you want to protect the password from being exposed to anyone who gets a clone of the repository, just download manually, and then `git annex add` the file.
"""]]