This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3" | |
| services: | |
| pihole: | |
| container_name: pihole | |
| image: pihole/pihole:latest | |
| restart: unless-stopped | |
| ports: | |
| - "53:53/tcp" | |
| - "53:53/udp" | |
| - "67:67/udp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default [ | |
| { id: 'AF', | |
| name: 'Afghanistan', | |
| continent: 'Asia', | |
| currencyId: 'AFN', | |
| phoneCode: '93', | |
| flag: '🇦🇫' }, | |
| { id: 'AX', | |
| name: 'Åland Islands', | |
| continent: 'Europe', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |