View renamedirs.sh
#!/bin/bash
cat renamedirs.txt | while read DIRN
do
FILENAME=`ls -1 $DIRN | sed -n '1p'`
YEAR=`echo ${DIRN}/${FILENAME} | python3 photodir_year.py`
echo "renaming ${DIRN}"
mv $DIRN ${DIRN}_${YEAR}
done
View exif_year.py
#/usr/bin/env python3
from PIL import Image
from datetime import datetime
imgname = input();
img = Image.open(imgname)
#DateTimeOriginal のExif tag ID
taken_datetime_exif = img._getexif()[0x9003]
View isdbt_clock.py
#!/usr/bin/env python3
#coding:utf-8
import json
import random
import time
try:
from gi import pygtkcompat
except ImportError:
pygtkcompat = None
View totts_stream.py
#! /usr/bin/env python3
#coding:utf-8
#require bitstring
import bitstring
from sys import argv
import math
import sys
import io
import time
View totts.py
#! /usr/bin/env python3
#coding:utf-8
#require bitstring
import bitstring
import math
import sys
filename = sys.argv[1]
packet_length = 188
View pidcount.py
#! /usr/bin/env python3
#coding:utf-8
#require bitstring
import bitstring
import math
import sys
filename = sys.argv[1]
packet_length = 188
View dequoter.py
import os.path
filename = input('CSV filename: ')
data = open(filename).readlines()
name, ext = os.path.splitext(filename)
out = open(name+'_ok'+ext, 'w')
outdata = ''
for row in data:
outrow = row.replace('\n','').replace('\r','').replace('\'','').replace('"','')
View multimp3.py
#!/usr/bin/env python3
import multiprocessing
import subprocess
accounts =[
{'id':'1@example.com', 'pass':'password'},
{'id':'2@example.com', 'pass':'password'},
]
def download(account, download_urls):
View nicovideo-dl
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2009 Keiichiro Nagano
# Copyright (c) 2009 Kimura Youichi
# Copyright (c) 2006-2008 Ricardo Garcia Gonzalez
# Copyright (c) 2008 Ying-Chun Liu (PaulLiu)
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
View nicomp3.sh
#! /bin/sh
if [ $# -eq 3 ];then
VIDEOURI=$1
USER=$2
PASS=$3
else
VIDEOURI=$(zenity --entry --title "URI入力 - nicomp3" --text "URIを入力してください")
USER='hoge@example.com'
PASS='password'