Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Génère un script qui copie les images source autant de fois que nécessaire,
# respectant la structure (ordre des répertoires et des fichiers),
# pour créer une vidéo image par image
# ensuite convertit les images en vidéo
# Note: ce script génére un script
# donc faire:
# $ . generate.sh > copyall.sh
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
# Copyright (C) 2015 Laurent Monin
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
@zas
zas / pretty.py
Created July 5, 2015 19:00
Pretty instance/dict/list/etc
# -*- coding: utf-8 -*-
def pretty(value, ind=' ', eol='\n', level=0):
"""Return a pretty representation of an object"""
linesuffix = eol + ind * level
lineprefix = linesuffix + ind
level += 1
if hasattr(value, '__class__') and '__dict__' in dir(value):
value = value.__dict__
@zas
zas / graphite
Created October 8, 2015 08:25 — forked from hmmbug/graphite
ubuntu 14.04 + graphite + nginx
# goes in /etc/nginx/sites-available & link in ../sites-enabled
upstream graphite {
server unix:///tmp/uwsgi.sock;
}
server {
listen 9002;
server_name localhost;
{"edits":[{"edit_type":72,"to_edit":"888d5498-eead-42a7-ac0c-1483f80f13ea","name":"Videotapes in Dubai"
},{"edit_type":72,"to_edit":"205f1a9d-480d-4f49-a67c-05195d291be0","name":"Flies Die"},{"edit_type":51
,"name":"","format_id":12,"position":1,"tracklist":[{"id":null,"name":"He's a Heartattack","artist_credit"
:{"names":[{"artist":{"name":"Peter Kernel","id":569293,"gid":"f52633aa-7453-4407-9fe6-5263e366b0a7"
},"name":"Peter Kernel","join_phrase":null}]},"recording_gid":"9581f4c6-ca10-4b5b-adff-a86e41bed731"
,"position":1,"number":"1","length":222187,"is_data_track":false},{"id":null,"name":"Videotapes in Dubai"
,"artist_credit":{"names":[{"artist":{"name":"Peter Kernel","id":569293,"gid":"f52633aa-7453-4407-9fe6-5263e366b0a7"
},"name":"Peter Kernel","join_phrase":null}]},"recording_gid":"888d5498-eead-42a7-ac0c-1483f80f13ea"
,"position":2,"number":"2","length":202800,"is_data_track":false},{"id":null,"name":"I Counted Them to
Die Properly","artist_credit":{"names":[{"artist":{"name":"Peter Kernel","id":56
Configuring snap-server-0.9.5.1...
Configuring xmlhtml-0.2.3.4...
STDERR: src/Data/Acid/Log.hs:306:21: Not in scope: `Lazy.fromStrict'
Network/AMQP.hs:540:23: Not in scope: `BL.toStrict'
src/Control/Lens/Internal/Zoom.hs:50:1:
semigroupoids-5.0.0.4:Data.Functor.Bind can't be safely imported! The module itself isn't safe.
cabal: At least the following dependencies are missing:
attoparsec >=0.10 && <0.13 && ==0.13.0.1
#!/usr/bin/perl
use warnings;
use strict;
=pod
C<tw_cli info c0 u0> example output:
Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB)
13169 root/static/build/common-eeafc01a63.js
2212 root/static/build/common-69c1b6b776.js
582 root/static/build/edit-163a19f960.js
379 root/static/images/favicons/discogs-16.png
99 root/static/build/edit-cd8ade6ae1.js
46 root/static/build/icons-f551f7d2.css
40 root/static/images/layout/header-logo.png
40 root/static/build/icons-addfb17e.css
40 root/static/build/common-fd93656a.css
37 root/static/build/common-558b8820.css
13298 root/static/build/common-eeafc01a63.js
5102 root/static/build/common-69c1b6b776.js
627 root/static/build/edit-163a19f960.js
426 root/static/images/favicons/discogs-16.png
235 root/static/build/edit-cd8ade6ae1.js
92 root/static/build/guess-case-24da3918d7.js
81 root/static/build/release-editor-f211c782ee.js
60 root/static/build/common-d5f1e1b5fb.js
58 root/static/images/layout/header-logo.png
54 root/static/build/icons-f551f7d2.css
17896 root/static/build/common-3aaacece99.js
6663 root/static/build/common-194823272b.js
760 root/static/build/edit-a92e116ced.js
508 root/static/images/favicons/discogs-16.png
277 root/static/build/edit-6470b0a162.js
154 root/static/build/guess-case-cdc3871433.js
108 root/static/build/release-editor-70f708fbcf.js
70 root/static/images/layout/header-logo.png
70 root/static/build/common-d5f1e1b5fb.js
53 root/static/build/icons-f551f7d2.css