Skip to content

Instantly share code, notes, and snippets.

View ivangonzalezg's full-sized avatar
🎯
Focusing

Iván González ivangonzalezg

🎯
Focusing
View GitHub Profile
@ivangonzalezg
ivangonzalezg / command.sh
Last active December 29, 2023 00:17
Create a Deamon on Ubuntu
# Set up the service to start on server restart
sudo systemctl enable ZZZZZZ
@ivangonzalezg
ivangonzalezg / README.md
Last active June 9, 2022 03:32
Run Node.js application on Apache Virtual Host

Run Node.js application on Apache Virtual Host

Apache configuration to run Node.js applications on a Virtual Host

Prerequisites

  • Enable mod_proxy and mod_proxy_http:
sudo a2enmod proxy
sudo a2enmod proxy_http
@ivangonzalezg
ivangonzalezg / generate-certificates.sh
Created July 11, 2019 21:27
Generate self-signed ssl certificates.
#!/bin/bash
# set values for certificate DNs
# note: CN is set to different values in the sections below
ORG="000_Test_Certificates"
# set values that the commands will share
VALID_DAYS=360
CA_KEY=ca.key
CA_CERT=ca.crt
@ivangonzalezg
ivangonzalezg / event-listeners.js
Created May 21, 2019 06:27 — forked from danburzo/README.md
Get all event listeners on the page in Google Chrome
var items = Array.prototype.slice.call(
document.querySelectorAll('*')
).map(function(element) {
var listeners = getEventListeners(element);
return {
element: element,
listeners: Object.keys(listeners).map(function(k) {
return { event: k, listeners: listeners[k] };
})
};