Skip to content

Instantly share code, notes, and snippets.

View manolenso's full-sized avatar

Laurent Rémy manolenso

  • TV Magazine
  • Paris IX
View GitHub Profile
@manolenso
manolenso / .bashrc
Created January 6, 2014 15:24
my .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@manolenso
manolenso / screen-update.sh
Created January 9, 2014 16:48
Script bash pour reinstaller ma config ecran apres un update linux header
#!/bin/bash
sudo apt-get update
sudo apt-get install build-essential linux-headers-$(uname -r)
sudo apt-get install virtualbox-ose-guest-x11
##### pour connaitre la configuration a ecrire $ cvt 1920 1080 ####
#### pour remettre en 16/9 specifique (à ma config) ####
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
@manolenso
manolenso / simple_menu
Created January 23, 2014 22:52
simple menu fixed
<- html code ->
<select id="demosMenu">
<option id="xxxxxxx" selected>Choix visible par default</option>
<option id="xxxxxxx">choix</option>
<option id="xxxxxxx">choix</option>
<option id="xxxxxxx">choix</option>
<option id="xxxxxxx">choix</option>
<option id="xxxxxxx">choix</option>
<option id="xxxxxxx">choix</option>
</select>
@manolenso
manolenso / quick-git.sh
Created January 31, 2014 08:07
script bin.sh for quick commit
#!/usr/bin/env bash
# for quick commit
#
#
git add .
echo "Give commit Name:"
read $commit
git commit -m '$commit'
git push
@manolenso
manolenso / gulpfile.js
Created February 4, 2014 22:24
gupfile.js
var gulp = require('gulp');
var minifycss = require('gulp-minify-css');
var autoprefixer = require('gulp-autoprefixer');
var sass = require('gulp-ruby-sass');
var convert = require('gulp-rsvg');
var watch = require('gulp-watch');
gulp.task('sass', function() {
@manolenso
manolenso / Gulp Server
Created March 6, 2014 22:19
Gulp server
/*
* Runs a static server on port 3000
**/
gulp.task('serve', function () {
const PORT = 3000;
var fileServer = new (require('node-static')).Server(SITE_DIR);
require('http').createServer(function (request, response) {
request.addListener('end', function () {
fileServer.serve(request, response);
}).resume();
@manolenso
manolenso / gulp.snippets
Created March 30, 2014 20:41
Gulp snippet for Vim editor
# Gulp Task source
snippet gus
gulp.task('${1}', function () {
return gulp.src(${2})
.pipe(${3}(${4}))${5}
});
# Gulp Task Watch
snippet guw
gulp.task('watch', function () {
" Vimrc File for @manolenso
set nocompatible " Disable vi-compatibility
filetype off "required by vundle
" Initialisation de pathogen
call pathogen#infect()
call pathogen#helptags()
"Load custom settings inspired by https://github.com/shawnplus/dotfiles/
source ~/.vim/startup/color.vim
@manolenso
manolenso / gulp.snippets
Created April 16, 2014 07:26
Gulp snippets for Vim (put in vim-snippets plugin: ~/vim-snippets/snippets/javascript/gulp.snippets)
# Gulp Task source
snippet gus
gulp.task('${1}', function () {
return gulp.src(${2})
.pipe(${3}(${4}))${5}
});
# Gulp Task Watch
snippet guw
gulp.task('watch', function () {
[user]
name = Laurent
email = rlaurent@tvmag.com
[color]
ui = true
diff = auto
status = auto
branch = auto