Skip to content

Instantly share code, notes, and snippets.

View ibnlanre's full-sized avatar

Ridwan Olanrewaju ibnlanre

View GitHub Profile
@jonathantneal
jonathantneal / selector-logic.ts
Last active January 25, 2026 08:42
Logic used to get a NodeID from an element using CDP
const getNodeId = async (element: Element) => {
const selectors = getUniqueSelectors(element)
const root = (await cdp().send("DOM.getDocument", { depth: -1 })).root
let nodeId = root.nodeId
for (const selector of selectors) {
if (nodeId !== root.nodeId) {
const next = await cdp().send("DOM.describeNode", { nodeId })
@rhyek
rhyek / phone-input.tsx
Last active January 12, 2026 17:57
Mantine v7 Phone Input with country select
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import {
useCombobox,
Combobox,
Group,
CheckIcon,
ScrollArea,
InputBase,
ActionIcon,
type InputBaseProps,
@privatenumber
privatenumber / light-dark-image.svg
Last active October 22, 2024 05:40
Light/dark mode SVG image
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sundowndev
sundowndev / GoogleDorking.md
Last active February 10, 2026 04:31
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@bolshchikov
bolshchikov / .jshintrc
Last active March 4, 2024 12:19
JSHint configuration file
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
// == Enforcing Options ===============================================
//
// These options tell JSHint to be more strict towards your code. Use
// them if you want to allow only a safe subset of JavaScript, very