Skip to content

Instantly share code, notes, and snippets.

@nicolasramy
nicolasramy / momoticon.md
Last active February 10, 2017 12:10
Momoticon, another version of emoticons

Happy

^_^
^.^
@nicolasramy
nicolasramy / Dockerfile
Last active August 29, 2015 13:57
Pourquoi continuer à utiliser une VM quand on peut faire autrement ?
FROM ubuntu
MAINTAINER Nicolas Ramy "nicolas.ramy@darkelda.com"
RUN echo "deb http://archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y upgrade
# Keep upstart for complaining
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -sf /bin/true /sbin/initctl
@nicolasramy
nicolasramy / pip.sh
Created January 30, 2014 00:20
Simple bash_completion file: pip, venv-* functions. (venv-functions details: https://gist.github.com/nicolasramy/6438236#file-bash_functions_python)
#!/bin/sh
_pip_completion() {
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
first="${COMP_WORDS[0]}"
commands=$($first --help | awk '/Commands\:/,/General Options\:/' | \
\grep -E -o "^\s{2}\w*" | tr -d ' ')
opts=$($first --help | \grep -E -o "((-\w{1}|--(\w|-)*=?)){1,2}")
@nicolasramy
nicolasramy / .bash_aliases
Last active September 7, 2016 14:21
My personnal dotfiles configuration for Gnu Screen, Vim, Bash for system administration
# Aliases
alias refresh-source='source $HOME/.bashrc'
@nicolasramy
nicolasramy / category_add_class_to_current.md
Last active December 22, 2015 06:18
Simple Wordpress hacks

Simple Wordpress Hacks

Categories

Add class on current Category item

Base

<div id="sidebar">

Docker

Installation

If https failed

E: The method driver /usr/lib/apt/methods/https could not be found.

Install this missing package

@nicolasramy
nicolasramy / gnome-shell-extensions.md
Last active December 22, 2015 00:28
List of my favourites Gnome Shell extensions
@nicolasramy
nicolasramy / ubuntu-12-04-install.post.sh
Last active December 5, 2016 11:26
Ubuntu post install guide for Gnome 3
gsettings set org.gnome.shell.overrides button-layout close,minimize,maximize:
gconftool-2 --set /apps/metacity/general/button_layout --type string ":minimize,maximize,close"
gsettings set org.gnome.desktop.interface ubuntu-overlay-scrollbars false
http://www.thebinaryidiot.com/archives/2011/11/11/gnome-shell-3-2-and-multiple-monitors/
@nicolasramy
nicolasramy / css-tools.md
Created July 8, 2013 13:00
Cheat sheets for PHP Quality Assurance, PHP developper tools, CSS tools... for Ubuntu 12.04+

CSS Developer tools

Requirements

NodeJS

add-apt-repository ppa:chris-lea/node.js
apt-get update
apt-get install nodejs