Skip to content

Instantly share code, notes, and snippets.

adb shell 'su -c am start -n es.gob.radarcovid/es.gob.radarcovid.features.venuerecord.view.VenueRecordActivity --es "qr_verification" "https://radarcovid.covid19.gob.es/qr?v=2#CAISQAoOQmFyIE5vw6kgWGlzdGUqIDrF5rY93olShOOS6uj0ZakFJbZi2VElc0h0DNgIsCG1MICeu6-sLziA9v_soTAaYOaWAhbJHyA1j7vLvD8-pZHTA9dDaK5rggRlscJndW-7xM8G6NrveuilU835siwuBd-Kmazb4KIL5PUUwjziZYuKG6ftm9JegUDVyfM4VkhvBINNQwjgp9ZU2ty8anJ6hiJECiA9uCXvgVSjVtHSCTZ9CikGdBItU5mEWwsdFmsqw7pdRRIgh4NNYyt4nLYt6KOsZbQUQKSxBgzwZdt3H2_65RS_4N8"'
@josemmo
josemmo / camerfirma.js
Created March 1, 2021 12:58
Root and intermediate certs for Camerfirma CA that will be banned in 2021
const sha256 = [
"04f1bec36951bc1454a904ce32890c5da3cde1356b7900f6e62dfa2041ebad51", // CHAMBERS OF COMMERCE ROOT - 2016 (only Google)
"92193f427dfd45d1f7ee0c0a3b1a974ea7af7679183990e28762c13a263db978",
"eedd457af1353d76f48e7c6123f39140e5f9a069ca51b43eea8615c9cec0d4bb",
"4908f2337567be505c26cc01a7f07c4b802132a095b2baeeee6de20883088a56",
"937d7d5d0b7fb7db039399bc0b670cc203c7ab4e332fae453cc38ec188ddea2b",
"3a8066266d28bd28ccd0f564c8fbc1219b4ffae403e01e5039d30f2400f0eb09",
"baae2c6338857d50200f6f73dd45e65aa2d895bed4675b6e396b7222e018a9b8",
"726724864202536bcee11cd30012da9c1f4a9db9262958208adb976b3fc6912d",
@josemmo
josemmo / repair-mysql-data.ps1
Created August 28, 2020 18:48
Repair MySQL data directory (for XAMPP)
# Based on this answer: https://stackoverflow.com/a/61859561/1956278
# Backup old data
Rename-Item -Path "./data" -NewName "./data_old"
# Create new data directory
Copy-Item -Path "./backup" -Destination "./data" -Recurse
Remove-Item "./data/test" -Recurse
$dbPaths = Get-ChildItem -Path "./data_old" -Exclude ('mysql', 'performance_schema', 'phpmyadmin') -Recurse -Directory
Copy-Item -Path $dbPaths.FullName -Destination "./data" -Recurse
version: '2'
services:
nginx:
image: nginx:alpine
ports:
- 80:80
restart: always
volumes:
- app-volume:/var/www/html
FROM php:7.3-fpm-stretch
# Instalar dependencias
RUN apt update -y && apt upgrade -yqq
RUN apt install -y curl gnupg
# Instalar NodeJS
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt install -y nodejs
<?php
namespace josemmo\Facturae;
/**
* Facturae
*
* This file contains everything you need to create invoices.
*
* @package josemmo\Facturae
* @version 1.2.3
<Invoice>
<InvoiceHeader>...</InvoiceHeader>
<InvoiceIssueData>...</InvoiceIssueData>
<TaxesOutputs>...</TaxesOutputs>
<InvoiceTotals>...</InvoiceTotals>
<Items>...</Items>
</Invoice>
<TaxIdentification>
<PersonTypeCode>J</PersonTypeCode>
<ResidenceTypeCode>R</ResidenceTypeCode>
<TaxIdentificationNumber>P2813400E</TaxIdentificationNumber>
</TaxIdentification>
<AdministrativeCentres>
<AdministrativeCentre>
<CentreCode>L01281343</CentreCode>
<RoleTypeCode>02</RoleTypeCode>
<Name>Intervención Municipal</Name>
<TaxIdentification>
<PersonTypeCode>F</PersonTypeCode>
<ResidenceTypeCode>R</ResidenceTypeCode>
<TaxIdentificationNumber>00000000A</TaxIdentificationNumber>
</TaxIdentification>
<Individual>
<Name>Antonio</Name>
<FirstSurname>García</FirstSurname>
<SecondSurname>Pérez</SecondSurname>
<AddressInSpain>
<TaxIdentification>
<PersonTypeCode>J</PersonTypeCode>
<ResidenceTypeCode>R</ResidenceTypeCode>
<TaxIdentificationNumber>A00000000</TaxIdentificationNumber>
</TaxIdentification>
<LegalEntity>
<CorporateName>Perico de los Palotes S.A.</CorporateName>
<AddressInSpain>
<Address>C/ Falsa, 123</Address>
<PostCode>23456</PostCode>