Skip to content

Instantly share code, notes, and snippets.

version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
import { useEffect, useState } from 'react'
export const useClientRect = ref => {
const getClientRect = () => {
if (!ref || !ref.current) return null
const clientRects = ref.current.getClientRects()
return clientRects.length > 0 ? clientRects[0] : null
}
export default [
{ id: 'AF',
name: 'Afghanistan',
continent: 'Asia',
currencyId: 'AFN',
phoneCode: '93',
flag: '🇦🇫' },
{ id: 'AX',
name: 'Åland Islands',
continent: 'Europe',
#!/bin/bash
mkdir -p screen
fileName=$(printf "./screen/%s.png" `date +%Y-%m-%d:%H:%M:%S`)
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png $fileName
adb shell rm /sdcard/screen.png
echo saved at $fileName
open $fileName