Skip to content

Instantly share code, notes, and snippets.

@juanmanavarro
juanmanavarro / docs.md
Last active October 26, 2023 11:18
Skills Viewer files

JUANMA NAVARRO
Llíria, Valencia
613086944
hola@juanmanavar.ro
https://juanmanavar.ro

WORK EXPERIENCE

  • Since 10/2022, full-stack developer at TextPocket
  • From 5/2020 to 10/2022, full-stack developer at Soysuper.
@juanmanavarro
juanmanavarro / find-emails.js
Last active October 23, 2023 09:08
Extract email addresses from a URL
const axios = require('axios');
async function findEmails(url) {
try {
const response = await axios.get(url);
const html = response.data;
const emailRegex = /[\w.-]+@[\w.-]+\.\w+/g;
let emails = html.match(emailRegex);
@juanmanavarro
juanmanavarro / countries.json
Last active August 14, 2023 09:48 — forked from keeguon/countries.json
A list of countries in JSON
[
{
"name": "Afghanistan",
"code": "AF"
},
{
"name": "Åland Islands",
"code": "AX"
},
{
@juanmanavarro
juanmanavarro / amazon-domains.json
Created January 27, 2023 16:46 — forked from AminulBD/amazon-domains.json
Amazon operating domains by country.
{
"us": "https://www.amazon.com",
"uk": "https://www.amazon.co.uk",
"ca": "https://www.amazon.ca",
"de": "https://www.amazon.de",
"es": "https://www.amazon.es",
"fr": "https://www.amazon.fr",
"it": "https://www.amazon.it",
"jp": "https://www.amazon.co.jp",
"in": "https://www.amazon.in",
<IfModule mod_rewrite.c>
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
<IfModule mod_setenvif.c>
SetEnvIf X-Forwarded-Proto "^https$" HTTPS
</IfModule>
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class MakeAngularComponent extends Command
{
/**
* The name and signature of the console command.
@juanmanavarro
juanmanavarro / README.md
Last active May 14, 2019 15:02 — forked from hilios/README.md
init.d for supervisord for Amazon Linux AMI

Auto start for Supervisord at AWS

Install commands
$ sudo mv supervisor /etc/init.d
$ sudo chkconfig --add supervisor
$ sudo chkconfig supervisor on
@juanmanavarro
juanmanavarro / PushLibrary.php
Created November 20, 2017 16:41
FCM push library
<?php namespace App\Libraries;
use GuzzleHttp\Client;
class PushLibrary {
protected $users;
protected $title;
protected $data;