Skip to content

Instantly share code, notes, and snippets.

View hacheraw's full-sized avatar
🙈
life is soup i am fork

Hache_raw hacheraw

🙈
life is soup i am fork
View GitHub Profile
@jmalarcon
jmalarcon / censurar-dni.md
Last active October 12, 2025 15:59
Casos prácticos y dictámenes APD sobre entrega del carnet

A raíz de mi vídeo sobre la censura del DNI para entregar en hoteles y en otros sitios, como por ejemplo tiendas de móviles, bancos y demás, han surgido dudas respecto a sí siempre es necesario censurarlo y que lo admitan, o si es posible que en algunos casos haya que entregarle de verdad la copia o que no haya que entregarle absolutamente nada.

Vaya por delante que el vídeo es sobre todo una llamada de atención para que no demos copias del DNI alegremente por ahí al primero que nos las pida, sobre todo porque la mayor parte de las veces no tienen derecho a hacerlo. Pero lo que cuento en el vídeo, como todo en la vida, no es una regla general y para todos los casos. Habrá situaciones en las que esté justificado dar una copa completa del DNI, y es lo que analizo en este documento.

En la Agencia Española de Protección de Datos (AEPD) tienen varios dictámenes y notas en los que aclaran algunas de estas cosas. Los voy a comentar a continuaci

@DerEnderKeks
DerEnderKeks / filters.txt
Last active September 15, 2025 11:41
My personal uBlock Origin filters
! www.der-postillon.com - hide steady floating button
www.der-postillon.com###steady-floating-button-wrapper
! www.youtube.com - hide Premiere garbage (hides any premiering/announced videos until they are an actual video) and shorts [https://www.reddit.com/r/uBlockOrigin/comments/143mdqv/code_to_block_youtube_shorts_june_2023/]
youtube.com##:xpath(//ytd-rich-item-renderer[descendant::div[contains(text(),"Upcoming")]])
youtube.com##:xpath(//ytd-rich-item-renderer[descendant::span[contains(@aria-label,"Shorts")]])
youtube.com##:matches-path(/feed/subscriptions) ytd-rich-grid-row, #contents.ytd-rich-grid-row:style(display:contents !important;)
youtube.com##:matches-path(/feed/subscriptions) ytd-rich-section-renderer:has-text(Shorts)
youtube.com##:matches-path(/feed/subscriptions) ytd-rich-shelf-renderer:has-text(Shorts)
! number of videos per row
@mattiaa95
mattiaa95 / PHPPOSTReplicationNoSSL
Created June 24, 2020 18:46
PHP Post replication to other domain with disable SSL Verification
<?php
//API URL
$url = '';
$ch = curl_init($url);
$jsonDataEncoded = file_get_contents('php://input');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonDataEncoded);
@bradtraversy
bradtraversy / docker-help.md
Last active October 29, 2025 05:12
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@gemmadlou
gemmadlou / 01-introduction.md
Last active October 23, 2025 23:07
WordPress Composer Starter (Steps)

Develop WordPress as a Modern PHP Project with Composer


WordPress is popular because it's easy to setup without much technical know-how. However, to build a more robust PHP project with command line deployments, updates and ongoing maintenance, working with WordPress out-of-the-box raises specific challenges:


  • How can we make our WordPress projects portable between developers?
@jennyknuth
jennyknuth / README.md
Last active August 25, 2025 22:48
140 html color names as an array of json objects—enjoy!

HTML Colors

All 140 HTML colors as JSON objects with fields:

  • name
  • hex
  • rgb
  • families
@mattes
mattes / og.txt
Last active May 7, 2022 01:53
Open Graph debugger
http://ogp.me/
https://moz.com/blog/meta-data-templates-123
https://search.google.com/structured-data/testing-tool
https://developers.facebook.com/tools/debug/og/object - https://developers.facebook.com/docs/reference/opengraph
https://cards-dev.twitter.com/validator - https://dev.twitter.com/cards/types
https://developers.pinterest.com/tools/url-debugger/ - https://developers.pinterest.com/docs/rich-pins/overview/
https://developer.linkedin.com/docs/share-on-linkedin
@drkarl
drkarl / gist:739a864b3275e901d317
Last active April 29, 2025 20:18
Ask HN: Best Linux server backup system?

Linux Backup Solutions

I've been looking for the best Linux backup system, and also reading lots of HN comments.

Instead of putting pros and cons of every backup system I'll just list some deal-breakers which would disqualify them.

Also I would like that you, the HN community, would add more deal breakers for these or other backup systems if you know some more and at the same time, if you have data to disprove some of the deal-breakers listed here (benchmarks, info about something being true for older releases but is fixed on newer releases), please share it so that I can edit this list accordingly.

  • It has a lot of management overhead and that's a problem if you don't have time for a full time backup administrator.
@geilt
geilt / gist:817ff32b20414ddd5a16
Created August 27, 2014 20:10
jQuery $.load into Variable.
var url = 'http://www.google.com';
var load = $('<div>');
var content = '';
load.load(url, function(result){
content = load.html();
});
@hkdobrev
hkdobrev / class-order.php
Last active April 11, 2025 09:57
PHP convention for the order in a class.
<?php namespace Vendor\Library;
use Another\Vendor\Library\ClassName;
abstract class ClassName extends AnotherClass implements Countable, Serializable
{
const CONSTANTS = 'top';
use someTrait, anotherTrait {
anotherTrait::traitMethod insteadof someTrait;