Salut Maxime

Thanks for sharing. I've added this setup to the list of topics to be
discussed at the Saturday instructor retreat in Toronto so we can play
around a little.
Care to elaborate on the github/notebook setup?

Merci,
Thomas

On Fri, Nov 6, 2015 at 3:58 PM, Maxime Boissonneault <
[email protected]> wrote:

> Hi,
> A collegue of mine used github, with an automatic synchronization, to send
> a Python notebook to github, so that attendees can catch up if they got
> stuck somewhere in the training.
>
> I wanted to do the same thing for Bash and git, which do not have the
> luxury of having a notebook.
>
> I came up with a solution that works rather well, and which I want to
> share.
> The required scripts are here :
> https://github.com/mboisson/recording-script
>
> If you want to see the result, it looks like this :
> http://mboisson.github.io/testing/bash_lesson.html#end
>
> *To install : *
> 0) On Mac, install gsed, gawk and core-utils using brew  (Because the
> tools provided by Mac are not GNU).
> 1) Clone the repository above, and add it to your PATH.
>
> *To use : *
> recordsession.sh [email protected]:<user>/<repo>.git <filename> [delay]
>
> For example, the above .html was recorded using the command
> recordsession.sh [email protected]:mboisson/testing.git bash_lesson 10
>
> * The script pushes from the gh-pages branch, and creates one if it does
> not exist. I have used it with SWC event pages.
> * The delay is in seconds, and there is a default delay of 60 seconds
> between each sync.
> * This script assumes that your github is configured to use SSH keys.
> * The script uses a modified version of ansi2html.sh, which I got from
> here http://github.com/pixelb/scripts/commits/master/scripts/ansi2html.sh
>
> I hope this can be useful to someone else!
>
>
> --
> ---------------------------------
> Maxime Boissonneault
> Analyste de calcul - Calcul Québec, Université Laval
> Président - Comité de coordination du soutien à la recherche de Calcul Québec
> Team lead - Research Support National Team, Compute Canada
> Instructeur Software Carpentry
> Ph. D. en physique
>
>
> _______________________________________________
> Discuss mailing list
> [email protected]
>
> http://lists.software-carpentry.org/mailman/listinfo/discuss_lists.software-carpentry.org
>
_______________________________________________
Discuss mailing list
[email protected]
http://lists.software-carpentry.org/mailman/listinfo/discuss_lists.software-carpentry.org

Reply via email to