This commit is contained in:
Thomas NOËL 2019-12-03 17:15:56 +01:00
parent 3d06b5a062
commit e367907cea
3 changed files with 44 additions and 0 deletions

16
bin/lastcommit Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
TMPFILE=$(tempfile -p clip. -s -gitlastcommit)
(echo "<pre>"
git lastcommit
echo ""
echo "</pre>"
echo "") > $TMPFILE
cat $TMPFILE | xclip
echo ""
cat $TMPFILE
rm -f $TMPFILE

5
bin/mutt-pdf Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
mv -f -T "$1" "$1".mv
( evince "$1".mv ; rm -f "$1".mv ) &

23
bin/range-ces-photos.py Executable file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env python
import os
import glob
from gi.repository import GExiv2
MOIS = ('janvier','fevrier','mars','avril','mai','juin','juillet','aout','septembre','octobre','novembre','decembre')
for f in glob.glob('*'):
print f, ':',
try:
date = GExiv2.Metadata(f).get_date_time()
except:
print 'no date'
continue
dir = '%d/%s' % (date.year, MOIS[date.month-1])
try:
os.makedirs(dir)
except:
pass
os.rename(f, os.path.join(dir, f))
print 'moved to', dir