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
#!/bin/bash | |
WIDTH=1280 | |
HEIGHT=800 | |
x11_cmd=x11vnc | |
if [[ ! -z $(pgrep ${x11_cmd}) ]]; then | |
pkill ${x11_cmd} | |
fi |
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
// ==UserScript== | |
// @name google-clean-link | |
// @namespace go-clean | |
// @description Elimina el paso por google al usar el buscador | |
// @include * | |
// @version 0.0.5 | |
// @run-at document-end | |
// ==/UserScript== | |
function cleanLinks() { |
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 | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.6 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter | |
0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs |
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
;(function () { | |
"use strict"; | |
function controllerName(prefix) { | |
var name = prefix.replace('.', ''); | |
return name[0].toUpperCase() + name.substr(1) + 'Controller'; | |
} | |
function BaseController(scope) { | |
var that = this; |
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
#!//usr/bin/env bash | |
verify_git_tag() { | |
git show-ref --tags --quiet --verify -- "refs/tags/$1" | |
} | |
refresh_git_repo() { | |
git clean -f | |
git fetch origin --quiet > /dev/null 2>&1 | |
} |
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
#!/usr/bin/env bash | |
HTTP_USER=www-data | |
sudo setfacl -R -m $USER:rwx -m "${HTTP_USER}:rwx" $* | |
sudo setfacl -dR -m $USER:rwx -m "${HTTP_USER}:rwx" $* |
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
# Mount all necesary | |
for i in dev proc sys run; do mount --bind /$i /mnt/$i;don | |
# umount all | |
umount /mnt/{dev,proc,sys,run,} |
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
# | |
# ~/.bashrc | |
# | |
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
alias ls='ls --color=auto' | |
alias ll='ls -l' | |
PS1='[\u@\h \W]\$ ' |
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
;(function() { | |
"use strict"; | |
item = function(entry) { | |
var | |
$a = $('<a>', {href: entry.link, text: entry.title}), | |
//$li = $('<li>').append($a), | |
tmpl = '<h2>TITLE</h2>IMAGE<p>SNIPET</p>', | |
image = $(entry.conten).find('img')[0], | |
content = '' |
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
var mostrar_eventos = function() { | |
// [{titulo: "Evento 1", descripcion: "Descripcion Evento 1"},{titulo: "Evento 2", descripcion: "Descripcion Evento 2"}] | |
// Cada objeto puede tener muchos campos como fecha, url, image url, etc. el resto depende de tu necesidad e imaginacion | |
var eventos = {{eventos}} | |
,template_html = '<div class="left fecha">DATE</div><div class="left"><h4><a href="/eventos">TITLE</a></h4></div><div class="descripcion" style="display: none">DESCRIPTION</div>' | |
,$eventosContainer = $('#ticker_eventos') | |
html = [] | |
; | |
for (var i = eventos.length - 1; i >= 0; i--) { |