Skip to content

Instantly share code, notes, and snippets.

View oneeyedman's full-sized avatar
🦄
Yay!

Carlos Mañas oneeyedman

🦄
Yay!
View GitHub Profile
aan_fake
aan_fake__video-units
ad
adde_modal_detector
adde_modal-overlay
adsbyrunactive
advboxemb
advertising
aff-content-col
aff-inner-col
function getEthicID(divider = '/', prefix = '') {
const timestamp = new Date().toISOString().replace(/[^0-9]/g, '');
const randomChars = Math.random().toString(36).substring(2, 8).replace(' ', '_').toUpperCase();
return prefix + timestamp + divider + randomChars;
}
SELECT `wp_comments`.*, `wp_comments`.`comment_content`, `wp_comments`.`comment_approved`
FROM `wp_comments`
WHERE `wp_comments`.`comment_content` LIKE '%porno%' AND `wp_comments`.`comment_approved` = '1';
SELECT `wp_comments`.*, `wp_comments`.`comment_author_url`, `wp_comments`.`comment_content`, `wp_comments`.`comment_approved`
FROM `wp_comments`
WHERE `wp_comments`.`comment_author_url` LIKE '%http%' OR `wp_comments`.`comment_content` LIKE '%http%' AND `wp_comments`.`comment_approved` = '1';
SELECT DISTINCT `wp_comments`. `comment_author_url`
function getList(selector) {
return [...document.querySelectorAll(selector)].map(item => item.textContent.trim());
}
function getSubtasks() {
const SELECTORS = {
key: '.issuekey',
tasks: '.stsummary'
};
const ARROW = '→';
function getShared() {
const items = [...document.querySelectorAll('.tyTrke.M3pype')]
.filter(item => item.querySelector('[data-tooltip="Shared"]'))
.map(item => item.textContent.trim());
console.log(items.join('\n'))
}
getShared();
function stealthDownloadFile(csv) {
const ninjaLink = document.createElement('a');
ninjaLink.href = encodeURI(csv);
ninjaLink.target = '_blank';
ninjaLink.download = 'dragon-ball-ultimate.csv';
ninjaLink.click();
}
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
const RADIUS = 8;
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
// Busca etiquetas script con un atributo que contenga "http"
var reg = /<script[^>]+http/g;
// Busca etiquetas script con un atributo que contenga ".js?v="
var reg = /<script[^>]+\.js\?v=/g;
function cleanAccented(value) {
return value
.toLowerCase()
.trim()
.normalize("NFD")
.replace(/\p{Diacritic}/gu, "")
.replaceAll(' ', '_');
}
@oneeyedman
oneeyedman / Alias
Last active September 29, 2023 08:59
#GIT
alias add!='git add .; status!'
alias status!='git status'
alias commit!='git commit'
alias commmit!='git commit -m'
alias push!='git push'
alias pull!='git pull'
alias main!='git checkout main'
alias dev!='git checkout dev'
alias develop!='git checkout develop'