Skip to content

Instantly share code, notes, and snippets.

View bobey's full-sized avatar

Olivier Balais bobey

View GitHub Profile
#!/bin/bash
while [ l=l ]
do
#eject cdrom
eject
#pull cdrom track back in
eject -t
done
@bobey
bobey / dist_backup_script.sh
Last active August 29, 2015 14:05
Backup script
#!/bin/bash
# ----
#
# Script de backup serveur perso vers serveur distant
# Fonctionnemenent :
# 1. Targz de /var/www
# 2. Targz de /etc/apache2/sites-available
# 3. Dump de toutes les bases de données MySql
# 4. Zip du backup courant avec protection par mot de passe
@bobey
bobey / angular-controller.js
Last active August 29, 2015 14:03
Angular model with factory
/* @ngInject */
function GouzigouzaController($scope, Gouzigouza) {
$scope.gouzigouza = new Gougigouza({
code: 'CODE'
});
}
angular
.module('my.namespace.controllers')
@bobey
bobey / vimrc
Created March 14, 2014 10:38 — forked from bewiwi/vimrc
"Before : git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
"First run : :BundleInstall
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'scrooloose/nerdtree'