Skip to content

Instantly share code, notes, and snippets.

View EnzoEmb's full-sized avatar

Enzo EnzoEmb

View GitHub Profile
@EnzoEmb
EnzoEmb / gist:726eac092dcfb87e250be55e9ba095f8
Created May 7, 2026 15:27
WORDPRESS REPLACE URL AND CREATE ADMIN USER
-- Replace old URL with localhost
UPDATE wp_options
SET option_value = REPLACE(option_value, 'OLD_URL', 'http://localhost:8300')
WHERE option_value LIKE '%OLD_URL%';
UPDATE wp_posts
SET post_content = REPLACE(post_content, 'OLD_URL', 'http://localhost:8300')
WHERE post_content LIKE '%OLD_URL%';
UPDATE wp_postmeta
@EnzoEmb
EnzoEmb / gist:8e3ed0a212fd218fd1d2d9d65a9c62a2
Last active February 6, 2026 23:02
songbridge extension
# Privacy Policy
## Overview
SongBridge is a browser extension that helps users navigate between music streaming platforms by detecting the currently playing song, generating cross-platform links, and optionally displaying lyrics.
The extension collects **no personally identifiable information**.
---
(function($){
$.fn.outside = function(ename, cb){
return this.each(function(){
var $this = $(this),
self = this;
$(document.body).bind(ename, function tempo(e){
if(e.target !== self && !$.contains(self, e.target)){
cb.apply(self, [e]);
if(!self.parentNode) $(document.body).unbind(ename, tempo);
}
@EnzoEmb
EnzoEmb / landscape.txt
Last active April 10, 2019 13:07
Always Landscape CSS
/*
** Only use in case of hardcode
** We use max-aspect-ratio and not orientation: portrait because when an input get focused, the mq its disabled
** The site content needs to be wrapped in main-wrapper and main-wrapper--content
** The JS is to fix the weird vh behaviour in Chrome Android
*/
/* CSS */
/* @media screen and (min-aspect-ratio: 13/9){ } // landscape */
/* @media screen and (max-aspect-ratio: 13/9){ } // portrait */