Skip to content

Instantly share code, notes, and snippets.

Francisco arenas dospuntocero

Block or report user

Report or block dospuntocero

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dospuntocero
dospuntocero / gulpfile.js
Created Sep 18, 2014
GULP File for basic scss compile and scripts minification and lint
View gulpfile.js
/*!
* 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'),
View install composer mac - with mamp
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 / html editor main config
Created Jan 27, 2013
dospuntoceroCMS HtmlEditorConfig
View html editor main config
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 Jun 14, 2013
screen terminal
View screen
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 Jun 14, 2013
Reconfigure your server to use the new vhost.conf file using Plesk's websrvmng command:
View mediatemple
Reconfigure your server to use the new vhost.conf file using Plesk's websrvmng command:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
View 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".
View Install Composer using MAMP's PHP.md

##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 / gist:2586f2e02b4a592a3a54
Created Feb 17, 2016
converting dreamhost in a git host
View gist:2586f2e02b4a592a3a54
# 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
View recover lubuntu passwd
Then you want to type
mount -o rw,remount /
then for the purposes of lost username type
ls /home
be aware that is a lower case L then s its not an i, this will then give you the username associated with the admin account. Now to reset the password.
You can’t perform that action at this time.