Se desistala en /opt
https://prepros.io/downloads
Y se crea el icono en: ~/.local/share/applications/Prepros.desktop
el archivo contiene
#!/usr/bin/env xdg-open
[Desktop Entry]
Categories=Programming;
Comment=Prepros is great
Exec=/opt/Prepros-linux-64/Prepros
Hidden=false
Icon=/opt/Prepros-linux-64/prepros.png
Name=Prepros
Terminal=false
Type=Application
Version=x.y
Icon[en_GB]=/opt/Prepros-linux-64/prepros.png
Name[en_GB]=Prepros
Comment[en_GB]=Prepros is great!
Por ultimo hay que descaragr el icono y guardarlo
/opt/Prepros-linux-64/prepros.png
lunes, 12 de septiembre de 2016
jueves, 8 de septiembre de 2016
Instalar sitio virtual en laravel
Se agrega en hosts
127.0.0.1 soporte.iems.edu.mx
se crean el archivo conf
<VirtualHost *:80>
ServerName soporte.iems.edu.mx
DocumentRoot /var/www/html/soporte/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/soporte>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
$sdo a2ensite soporte.iems.edu.mx.conf
127.0.0.1 soporte.iems.edu.mx
se crean el archivo conf
<VirtualHost *:80>
ServerName soporte.iems.edu.mx
DocumentRoot /var/www/html/soporte/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/soporte>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
$sdo a2ensite soporte.iems.edu.mx.conf
miércoles, 7 de septiembre de 2016
lunes, 29 de agosto de 2016
Crear tarea con Gulp.js
var gulp = require('gulp');
var sass = require('gulp-sass');
var rename = require('gulp-rename');
gulp.task('styles', function () {
gulp
.src('index.scss')
.pipe(sass())
.pipe(rename('app.css'))
.pipe(gulp.dest('public'));
})
gulp.task('default', ['styles'])
var sass = require('gulp-sass');
var rename = require('gulp-rename');
gulp.task('styles', function () {
gulp
.src('index.scss')
.pipe(sass())
.pipe(rename('app.css'))
.pipe(gulp.dest('public'));
})
gulp.task('default', ['styles'])
Gestores de Javascript
GESTORES DE PAQUETES
http://duojs.org/
https://bower.io/
https://www.npmjs.com/
PACKAGE BUNDLING
https://webpack.github.io/
GESTORES DE TAREAS
http://gruntjs.com/
http://gulpjs.com/
PREPROCESADORES CSS
http://sass-lang.com/
http://lesscss.org/
http://stylus-lang.com/
MOTORES DE TEMPLATES
http://jade-lang.com/ tambien conocido como pug
http://html2jade.org/ convertidor de html a jade
Crear servidor basico con node
Una vez instalado node, npm express
$npm install --save express
var express = require('express'); //busca en node_modules
var app = express();
app.get('/', function (req, res) {
res.send('Hola mundo!');
})
app.listen(3000, function (err) {
if (err) return console.log('Hubo un error'), process.exit(1);
console.log('Platzigram escuchando en el puerto 3000');
})
Se ejecuta con
$node server.js
$npm install --save express
var express = require('express'); //busca en node_modules
var app = express();
app.get('/', function (req, res) {
res.send('Hola mundo!');
})
app.listen(3000, function (err) {
if (err) return console.log('Hubo un error'), process.exit(1);
console.log('Platzigram escuchando en el puerto 3000');
})
Se ejecuta con
$node server.js
Suscribirse a:
Entradas (Atom)