some bin
This commit is contained in:
parent
3d06b5a062
commit
e367907cea
|
@ -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
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
mv -f -T "$1" "$1".mv
|
||||
( evince "$1".mv ; rm -f "$1".mv ) &
|
||||
|
|
@ -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
|
Reference in New Issue