Skip to content

Instantly share code, notes, and snippets.

View dospuntocero's full-sized avatar

Francisco arenas dospuntocero

View GitHub Profile
@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 / 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 / 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
@dospuntocero
dospuntocero / gist:c8cbd3e5c49b502f35823b270eb7e415
Created April 21, 2017 13:06
checking your whole network for connected stuff
arp -a
@dospuntocero
dospuntocero / recover lubuntu passwd
Created June 21, 2017 20:05
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.
@dospuntocero
dospuntocero / get-vw-mixin.scss
Created June 27, 2017 01:39
when you need to calculate measurements in vw, you need a context (starting point to define what will be 1vw) after that you pass the amount in pixels you want to convert to vws.
$context:960;// size you want to start calculating
@function get-vw($target) {
$vw-context: ($context * .01) * 1px;
@return ($target/$vw-context) * 1vw;
}
//usage
.page-obituary{
h1{
color: #2b6295;