This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# | |
# apt-get install libimobiledevice-utils ifuse libheif-examples | |
# | |
# fill these variable in main function to make it to works | |
# raw_phone_directory = "/my/destination/backup/" | |
# converted_phone_directory = "/my/directory/where/jpg/are/located/" | |
# phone_mount_dir = "/directory/where/directory/is/monted" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# this script aim renew an ovh dyndns | |
# it musts be executed in cron, | |
# first it check if DNS is update | |
# and then if necessary update the IP | |
# | |
# it needs two python packages requests and dnspython | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import sqlite3 | |
import sys | |
# | |
# Shotwell export from a tag | |
# | |
# This script read the shotwell db to generate an export script of all the files | |
# associated to a following tag in a specified directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# this little script convert a Firefox jsonlz4 bookmark file to a Mozilla HTML bookmark format | |
import json | |
import sys | |
def parse(dic, title): | |
result = "" | |
result += '<DT><H3 FOLDED ADD_DATE="">{title}</H3>'.format(title=title) | |
result += '<DL>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import vlc | |
import pygame | |
def callback(self, player): | |
print 'FPS =', player.get_fps() | |
print 'time =', player.get_time(), '(ms)' |