Skip to content

Instantly share code, notes, and snippets.

@Geoffrey-T
Geoffrey-T / grunt-error
Created October 17, 2013 08:07
Grunt server : error watch ENOSPC
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
@Geoffrey-T
Geoffrey-T / elasticsearch.md
Last active December 27, 2015 11:09
Elastic search
@Geoffrey-T
Geoffrey-T / mariadb-bug-install.md
Last active December 28, 2015 05:19
Mariadb dependencies problem after linux (ubuntu 12.04) update

#MariaDB

The error:

In french:

Les paquets suivants contiennent des dépendances non satisfaites :
angular.module('myModule')
.directive('resizeImg', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
var width = element.parent().width();
var maxHeight = attrs.height;
var newHeight, newWidth;
### Aliases
# Open specified files in Sublime Text
# "s ." will open the current directory in Sublime
alias s='open -a "Sublime Text"'
# Color LS
colorflag="-G"
alias ls="command ls ${colorflag}"
alias l="ls -lF ${colorflag}" # all files, in long format
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
# Copyright (c) 2009 rupa deadwyler under the WTFPL license
# maintains a jump-list of the directories you actually use
#
# INSTALL:
# * put something like this in your .bashrc/.zshrc:
# . /path/to/z.sh
# * cd around for a while to build up the db
# * PROFIT!!
# * optionally:
@Geoffrey-T
Geoffrey-T / CreatePrivatePod.md
Last active April 18, 2018 13:01
Create Private Pod snippets

Create Pod

pod lib create YOUR_POD
git remote add origin your_repository_link
@Geoffrey-T
Geoffrey-T / cleanXcode.sh
Created October 5, 2017 09:20
[XCODE] Clean derived Data script
# Copy this function in your ~/.bashrc file.
# execute `source ~/.bashrc` or open a new terminal
cleanXcode () {
DIR=~/Library/Developer/Xcode/DerivedData/
cd $DIR
ls
rm -r -- "$DIR"*
}
@Geoffrey-T
Geoffrey-T / logo.xml
Last active January 28, 2020 09:15
Epson logo XML
<?xml version="1.0" encoding="utf-8" ?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><printerCommand>
<setLogo location="1" index="1" graphicFormat="B" option="0">Qk1K1QEAAAAAAIoAAAB8AAAAyAAAAMgAAAABABgAAAAAAMDUAQASCwAAEgsAAAAAAAAAAAAAAAD/AAD/AAD/AAAAAAAA/0JHUnMAAAAAAAAAAFS4HvwAAAAAAAAAAGZmZvwAAAAAAAAAAMT1KP8AAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAA////////////////////////////AAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAA////////////////////////////////////////////////////////////////AAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAA////////////////////////////////////////////////////////////////////////////////////////////////AAAA////////////////////////////////////////////AAAA//////////////////////////////////////////////