Skip to content

Instantly share code, notes, and snippets.

View dospuntocero's full-sized avatar

Francisco arenas dospuntocero

View GitHub Profile
@dospuntocero
dospuntocero / html editor main config
Created January 27, 2013 16:40
dospuntoceroCMS HtmlEditorConfig
class DospuntoceroCMS extends LeftAndMainExtension{
function alternateAccessCheck(){
// html display simplification
$lines = array('pastetext','ssmedia','separator','bold','italic','underline','strikethrough','hr','separator','styleselect','formatselect','separator','bullist','numlist','blockquote','sslink','unlink','anchor','separator','code');
$config = HtmlEditorConfig::get('cms');
$config->setButtonsForLine(1, $lines);
$config->setButtonsForLine(2, 'tablecontrols');
$config->setButtonsForLine(3, null);
@dospuntocero
dospuntocero / screen
Created June 14, 2013 17:48
screen terminal
Iniciar Screen: screen
Desengancharnos de Screen: Ctrl-a d
Re-engancharnos a Screen: screen -x or screen -x PID
Partir la terminal horizontalmente: Ctrl-a S
Partir la terminal verticalmente: Ctrl-a |
Moverse entre ventanas: Ctrl-a Tab
Renombrar las sesiones: Ctrl-a A
Salvar un registro de la sesión: Ctrl-a H
Salvar una captura de la sesión: Ctrl-a h
@dospuntocero
dospuntocero / mediatemple
Created June 14, 2013 18:08
Reconfigure your server to use the new vhost.conf file using Plesk's websrvmng command:
Reconfigure your server to use the new vhost.conf file using Plesk's websrvmng command:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
@dospuntocero
dospuntocero / kiphu demo bank info
Created June 15, 2013 14:51
kiphu demo bank info
Importante: para hacer pagos en el banco de prueba "DemoBank" puedes usar un RUT válido y la clave "1234". Cuando llegues a la tarjeta matricial debes introducir las coordenadas "11", "22" y "33".

##Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management

###Instructions to Change PHP Installation

First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Withing the terminal, Fire this command:

which php

@dospuntocero
dospuntocero / gulpfile.js
Created September 18, 2014 16:50
GULP File for basic scss compile and scripts minification and lint
/*!
* gulp
* npm install gulp-ruby-sass gulp-autoprefixer gulp-minify-css gulp-jshint gulp-concat gulp-uglify gulp-notify gulp-rename gulp-cache del --save-dev
*/
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
nano ~/.bash_profile
alias phpmamp='/Applications/MAMP/bin/php/php5.4.10/bin/php'
curl -sS https://getcomposer.org/installer | phpmamp
sudo mv composer.phar /usr/local/bin/composer
composer
@dospuntocero
dospuntocero / gist:2586f2e02b4a592a3a54
Created February 17, 2016 15:22
converting dreamhost in a git host
# defining base url for the git repository
DREAMGIT_DOMAIN=[your server here]
# connecting there and creating the new base git
ssh $DREAMGIT_DOMAIN 'mkdir -p ~/git/'$1'.git && cd ~/git/'$1'.git && git --bare init'
mkdir $1
cd $1
a = setInterval(function () {
window.scrollTo(0,document.body.scrollHeight);
$("button.bt-request-buffed[data-act='request']").click();
}, 3000);
@dospuntocero
dospuntocero / gist:c8cbd3e5c49b502f35823b270eb7e415
Created April 21, 2017 13:06
checking your whole network for connected stuff
arp -a