Skip to content

Instantly share code, notes, and snippets.

View gautiermichelin's full-sized avatar

GautierMichelin gautiermichelin

View GitHub Profile
@gautiermichelin
gautiermichelin / toc.js
Created January 4, 2016 21:47
TOC jquery for CDN execution
/*!
* toc - jQuery Table of Contents Plugin
* v0.3.2
* http://projects.jga.me/toc/
* copyright Greg Allen 2014
* MIT License
*/
/*!
* smooth-scroller - Javascript lib to handle smooth scrolling
* v0.1.2
@gautiermichelin
gautiermichelin / zip.php
Created February 27, 2016 10:51 — forked from jonmaim/zip.php
PHP script to remotely create zip archives of your FTP
<?php
/*
*
* This script will backup your web site by remotely archiving all files on the root FTP directory.
* It will work even if your web server is memory limited buy splitting zips in several arhive files it they are too many files.
* All zip files will be stored in a directory called temporary which must be writable.
*
* How to use it:
* - Place the script at the root of your FTP.
@gautiermichelin
gautiermichelin / vnc-install.sh
Last active May 13, 2016 04:20
Install VNC as a service under Ubuntu 16.04 (need to be run as root)
# ##################################################################
# Script Name : vnc-install.sh
# Description : Perform an automated install of X11Vnc
# Configure it to run at startup of the machine
# Date : May 2016
# Gautier Michelin, idéesculture
# Based on : Griffon, http://www.c-nergy.be - http://www.c-nergy.be/blog
# #################################################################
# Step 1 - Install X11VNC
# #################################################################
@gautiermichelin
gautiermichelin / remark-presentation.html
Created May 15, 2016 05:32
Fast html to load a presentation.md (markdown) file to remark.js
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Presentation</title>
<link rel='stylesheet' type='text/css' href='presentation.css'>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js'></script>
<script src='https://gnab.github.io/remark/downloads/remark-latest.min.js'></script>
</head>
<body>
@gautiermichelin
gautiermichelin / .block
Last active May 16, 2016 20:34 — forked from mbostock/.block
Focus+Context via Brushing
license: gpl-3.0
license: gpl-3.0
@gautiermichelin
gautiermichelin / create_sql_for_ca_users_insertion.php
Last active June 10, 2016 05:19
Import users from a CSV file into CollectiveAccess, creating here a bunch of SQL inserts to run into a CA database
<?php
// Import users from a CSV file into CollectiveAccess, creating here a bunch of SQL inserts to run into a CA database
// 06/2016, Gautier Michelin
ini_set('auto_detect_line_endings', TRUE);
$ca_install_prefix = "saintmaurtest_";
$rows = array_map('str_getcsv', file('adherents_artotheque_view.csv'));
$header = array_shift($rows);
$csv = array();
@gautiermichelin
gautiermichelin / guitar-fretboard.js
Last active July 6, 2016 20:03
guitar-fretboard.js
jQuery(document).ready(function(){
var slideSpeed = 300;
var noteToShow = "All";
var canClick = true;
var notes = {
e: ['E','F','F#','G','G#','A','A#','B','C','C#','D','D#','E'],
a: ['A','A#','B','C','C#','D','D#','E','F','F#','G','G#',"A"],
d: ['D','D#','E','F','F#','G','G#','A','A#','B','C','C#','D'],
g: ['G','G#','A','A#','B','C','C#','D','D#','E','F','F#','G'],
This file has been truncated, but you can view the full file.
/**
* VexTab 2.0.11 built on 2016-02-10.
* Copyright (c) 2010 Mohit Muthanna Cheppudira <mohit@muthanna.com>
*
* http://www.vexflow.com http://github.com/0xfe/vextab
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.VexTabDiv = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports)
@gautiermichelin
gautiermichelin / composer.json
Created July 21, 2016 10:11
Marketcircle Billings Pro : convert BEX file to TSV (tabulated CSV)
{
"require": {
"rodneyrehm/plist": "^2.0"
}
}
# Remove any trace of Debian Multimedia in /etc/apt/sources.list
apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev \
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \
libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev yasm libx264-dev
mkdir ~/ffmpeg_sources
mkdir /usr/local/ffmpeg_build
cd ~/ffmpeg_sources
#x265