Skip to content

Instantly share code, notes, and snippets.

View cerisier's full-sized avatar
💭
Looking for new opportunities

Corentin Kerisit cerisier

💭
Looking for new opportunities
View GitHub Profile
@cerisier
cerisier / chapters.md
Last active December 20, 2022 20:52
List iTunes podcast chapters to csv output
# ffprobe -v error -select_streams a:0 -show_chapters -of csv=print_section=1 ABGT160_847378.m4a

Example output:

chapter,0,1/600,0,0.000000,18523,30.871667,Group Therapy Intro - ABGT160
chapter,1,1/600,18523,30.871667,146505,244.175000,1. Arty ‘Kate’ [2015 Remix] (Anjunabeats)
chapter,2,1/600,146505,244.175000,262290,437.150000,2. Flashtech ’Shattered Dreams’ (Silk)
chapter,3,1/600,262290,437.150000,444517,740.861667,3. Bruce Gibson ‘Kristine’ [Adrian Alexander Remix] (Elliptical Sun)
#!/bin/bash
cd ~/Desktop
spinner()
{
local pid=$1
local delay=0.75
local spinstr='|/-\'
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
@cerisier
cerisier / Dockerfile
Last active August 29, 2015 14:17
Drupal docker using drush make
FROM samos123/drupal:7.35
ADD drupal.make /drupal.make
RUN drush make --no-core /drupal.make /var/www/html
RUN ls -la /var/www/html/sites/all/modules ## this will show an empty directory instead of all my modules
ADD ./modules/anjuna_helper /var/www/html/sites/all/modules/anjuna_helper