This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
sudo apt-get build-dep vim-gnome | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev mercurial libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
sudo rm -rf /usr/local/share/vim | |
sudo rm /usr/bin/vim | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove contents when close to avoid show the same while next modal is loading | |
// Source: http://stackoverflow.com/a/22051611/865222 | |
$(document).on("hidden.bs.modal", ".modal:not(.local-modal)", function (e) { | |
$(e.target).removeData("bs.modal").find(".modal-content").empty(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Macro VirtualHost $host $path> | |
ServerName $host.loc | |
ServerAlias www.$host.loc | |
ServerAlias $host.gemenon.cir | |
ServerAlias www.$host.gemenon.cir | |
ServerAdmin genar@cirici.com | |
DocumentRoot /home/genar/src/$path | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Load per project vimrc if exists { | |
let b:projectconf = getcwd() . "/.vimrc" | |
if (filereadable(b:projectconf)) | |
exe "source" . b:projectconf | |
endif | |
" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* @ngdoc function | |
* @name davantisApiClient.controller:AlertCtrl | |
* @description | |
* # AlertCtrl | |
* Controller of the davantisApiClient | |
*/ | |
angular.module('davantisApiClient') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS error code 1: Operation not permitted | |
OS error code 2: No such file or directory | |
OS error code 3: No such process | |
OS error code 4: Interrupted system call | |
OS error code 5: Input/output error | |
OS error code 6: No such device or address | |
OS error code 7: Argument list too long | |
OS error code 8: Exec format error | |
OS error code 9: Bad file descriptor | |
OS error code 10: No child processes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Redis container" | |
author "Me" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
script | |
/usr/bin/docker start -a redis_server | |
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export GOPATH=$HOME/go | |
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
... | |
$this->loadModel('Posts'); | |
$posts = $this->Posts | |
->find('all') | |
->limit(6) | |
->contain([ | |
'Filed.Files', | |
'Filed.Thumbs', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerName www.example.com | |
Redirect permanent / https://secure.example.com/ | |
</VirtualHost> | |
<VirtualHost _default_:443> | |
ServerName secure.example.com | |
DocumentRoot /usr/local/apache2/htdocs | |
SSLEngine On |