Skip to content

Instantly share code, notes, and snippets.

View danielmorena's full-sized avatar

Daniel Morena danielmorena

View GitHub Profile
@danielmorena
danielmorena / outbound-email-with-cloudflare.md
Created March 5, 2025 11:48 — forked from irazasyed/outbound-email-with-cloudflare.md
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@danielmorena
danielmorena / wordpress_export_to_json.php
Created September 23, 2024 12:47 — forked from jsnelders/wordpress_export_to_json.php
Export all core WordPress data (posts, pages, attachments, comments, tags, categories and users) to a JSON formatted file.
<?php
/**
* Plugin Name: WordPress Export to JSON
* Plugin URI: https://jsnelders.com/
* Description: Export all WordPress posts, pages, comments, tags, commments and users to a JSON file.
* Author: Jason Snelders
* Author URI: http://jsnelders.com
* Version: 2020-01-30.1
**/
@danielmorena
danielmorena / gist:2005c09d8bbcfd14c08e6e65a0d29479
Created May 24, 2023 05:00 — forked from BenMatheja/gist:9230138
mopidy port 80 proxy pass with nginx on raspberry pi
sudo apt-get update
sudo apt-get install nginx
sudo service nginx start
sudo vi /etc/nginx/sites-enabled/default
##### VI output, oder nano jenachdem mit was du die ändern willst ###
server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
#https://www.raspberrypi.org/blog/video-wall/
Server with the video
vlc.exe -vvv VIDEO (h.264) –sout udp:225.0.0.1:1234 –ttl 1 –loop
Raspberry as client (sync-master)
vlc.exe udp://@225.0.0.1:1234 –vout-filter wall –wall-cols X –wall-rows Y –wall-active SCREEN_ID –control netsync –netsync-master -f
Raspberry as Client (sync slave)
vlc.exe udp://@225.0.0.1:1234 –vout-filter wall –wall-cols X –wall-rows Y –wall-active SCREEN_ID(left-up corner = 0) –control netsync –netsync-master-ip IP-Sync-Master -f
<a ref="https://google.com">test</a>
FROM node:10
LABEL maintainer="Luca Perret <[email protected]>" \
org.label-schema.vendor="Strapi" \
org.label-schema.name="Strapi Docker image" \
org.label-schema.description="Strapi containerized" \
org.label-schema.url="https://strapi.io" \
org.label-schema.vcs-url="https://github.com/strapi/strapi-docker" \
org.label-schema.version=latest \
org.label-schema.schema-version="1.0"

I am attesting that this GitHub handle danielmorena is linked to the Tezos account tz1euPmgiqf7hpvEtL6gkBDy8BVRYAP4chXk for tzprofiles

sig:edsigtw5NdVp1zvh134gndewKZtGXU4YUZbxxHj2shPqB4D3nFEjvPyxDM9MMFVkbRTyfKsjF2b2bssoKszemkxhLPZD7Vst9HE

I am attesting that this GitHub handle danielmorena is linked to the Tezos account tz1euPmgiqf7hpvEtL6gkBDy8BVRYAP4chXk for tzprofiles
sig:edsigtw5NdVp1zvh134gndewKZtGXU4YUZbxxHj2shPqB4D3nFEjvPyxDM9MMFVkbRTyfKsjF2b2bssoKszemkxhLPZD7Vst9HE
@danielmorena
danielmorena / wget.sh
Created September 7, 2021 15:46 — forked from crittermike/wget.sh
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@danielmorena
danielmorena / mobile.video.encoding.md
Created July 19, 2021 23:34 — forked from pinge/mobile.video.encoding.md
Video and audio encoding for playback in Android and iOS devices

Video and audio encoding for playback in Android and iOS devices

This document aims to provide an easy way encode video optimized for playback in mobile devices that use the Android or the iOS operating systems.

libx264 is used for (single or two-pass) video encoding and libfdk_aac for audio encoding.

ffmpeg, libx264 and libfdk_aac settings are optimized for playback quality and compatibility on Android and iOS. There is extensive documentation and references for each of the settings used and contributions are very welcome :)