Skip to content

Instantly share code, notes, and snippets.

View dlagg's full-sized avatar

Jorge de la Guia dlagg

  • Everis
  • Alicante
View GitHub Profile
@dlagg
dlagg / gist:a5095c19f8ed785e2e7306f65cfbc421
Created January 26, 2020 15:50
Error phantomjs installing markdown-pdf
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'markdown-pdf' ]
2 info using npm@6.13.6
3 info using node@v13.7.0
4 verbose npm-session 5321928e6992354f
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 304 https://registry.npmjs.org/markdown-pdf 1101ms (from cache)
8 silly pacote tag manifest for markdown-pdf@latest fetched in 1112ms
9 timing stage:loadCurrentTree Completed in 1131ms
@dlagg
dlagg / AjaxCLIENTE.html
Created February 5, 2020 23:35
Ajax Cliente Ejercicio
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Ejercicio 7.1 - AJAX</title>
<style>
body {

La libreria socket.io permite la conexión persistente asincrona entre cliente-servidor. Sería un sustituto al método Ajax.

  • Io.on permite conectar a un usuario mediante sockets
  • socket.emit emite el evento validadoUsuario al socket.
  • socket.join subscribe el socket a un canal.
  • io.to escoge un canal para hacer la emisión.
@dlagg
dlagg / vsftpdf.conf
Created March 5, 2020 00:17
vsftpdf.conf
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
[mar 8 13:44] Linux version 5.5.8-arch1-1 (linux@archlinux) (gcc version 9.2.1 20200130 (Arch Linux 9.2.1+20200130-2)) #1 SMP PREEMPT Fri, 06 Mar 2020 00:57:33 +0000
[ +0,000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=797673e7-0556-408c-9b11-190906392b44 rw quiet resume=UUID=32307f4d-519c-4334-8c15-5623ea5ead18 audit=0 loglevel=3 acpi_backlight=vendor
[ +0,000000] KERNEL supported cpus:
[ +0,000000] Intel GenuineIntel
[ +0,000000] AMD AuthenticAMD
[ +0,000000] Hygon HygonGenuine
[ +0,000000] Centaur CentaurHauls
[ +0,000000] zhaoxin Shanghai
[ +0,000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ +0,000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/dlag/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@dlagg
dlagg / profile
Created March 24, 2020 17:53
my etc/profile
# /etc/profile
# Set our umask
umask 022
# Append our default paths
appendpath () {
case ":$PATH:" in
*:"$1":*)
;;
-- Logs begin at Sat 2020-03-07 18:55:56 CET, end at Thu 2020-03-26 18:33:35 CET. --
mar 26 18:20:59 dlag-pc kernel: Linux version 5.5.13-arch1-1 (linux@archlinux) (gcc version 9.3.0 (Arch Linux 9.3.0-1)) #1 SMP PREEMPT Wed, 25 Mar 2020 16:04:40 +0000
mar 26 18:20:59 dlag-pc kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=797673e7-0556-408c-9b11-190906392b44 rw quiet resume=UUID=32307f4d-519c-4334-8c15-5623ea5ead18 audit=0 loglevel=3 acpi_backlight=vendor
mar 26 18:20:59 dlag-pc kernel: KERNEL supported cpus:
mar 26 18:20:59 dlag-pc kernel: Intel GenuineIntel
mar 26 18:20:59 dlag-pc kernel: AMD AuthenticAMD
mar 26 18:20:59 dlag-pc kernel: Hygon HygonGenuine
mar 26 18:20:59 dlag-pc kernel: Centaur CentaurHauls
mar 26 18:20:59 dlag-pc kernel: zhaoxin Shanghai
mar 26 18:20:59 dlag-pc kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
-- Logs begin at Sat 2020-03-07 18:55:56 CET, end at Thu 2020-03-26 18:33:35 CET. --
mar 26 18:20:59 dlag-pc kernel: Linux version 5.5.13-arch1-1 (linux@archlinux) (gcc version 9.3.0 (Arch Linux 9.3.0-1)) #1 SMP PREEMPT Wed, 25 Mar 2020 16:04:40 +0000
mar 26 18:20:59 dlag-pc kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=797673e7-0556-408c-9b11-190906392b44 rw quiet resume=UUID=32307f4d-519c-4334-8c15-5623ea5ead18 audit=0 loglevel=3 acpi_backlight=vendor
mar 26 18:20:59 dlag-pc kernel: KERNEL supported cpus:
mar 26 18:20:59 dlag-pc kernel: Intel GenuineIntel
mar 26 18:20:59 dlag-pc kernel: AMD AuthenticAMD
mar 26 18:20:59 dlag-pc kernel: Hygon HygonGenuine
mar 26 18:20:59 dlag-pc kernel: Centaur CentaurHauls
mar 26 18:20:59 dlag-pc kernel: zhaoxin Shanghai
mar 26 18:20:59 dlag-pc kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
-- Logs begin at Sat 2020-03-07 18:55:56 CET, end at Thu 2020-03-26 21:42:10 CET. --
mar 26 19:58:59 dlag-pc kernel: Linux version 5.5.13-arch1-1 (linux@archlinux) (gcc version 9.3.0 (Arch Linux 9.3.0-1)) #1 SMP PREEMPT Wed, 25 Mar 2020 16:04:40 +0000
mar 26 19:58:59 dlag-pc kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=797673e7-0556-408c-9b11-190906392b44 rw quiet resume=UUID=32307f4d-519c-4334-8c15-5623ea5ead18 audit=0 loglevel=3 acpi_backlight=vendor
mar 26 19:58:59 dlag-pc kernel: KERNEL supported cpus:
mar 26 19:58:59 dlag-pc kernel: Intel GenuineIntel
mar 26 19:58:59 dlag-pc kernel: AMD AuthenticAMD
mar 26 19:58:59 dlag-pc kernel: Hygon HygonGenuine
mar 26 19:58:59 dlag-pc kernel: Centaur CentaurHauls
mar 26 19:58:59 dlag-pc kernel: zhaoxin Shanghai
mar 26 19:58:59 dlag-pc kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'