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 cv2 | |
| import mediapipe as mp | |
| mp_hands = mp.solutions.hands | |
| mp_draw = mp.solutions.drawing_utils | |
| # Inisialisasi kamera | |
| cap = cv2.VideoCapture(0) | |
| # Model MediaPipe Hands |
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
| _prompt_agnoster_status() { | |
| local segment= | |
| (( RETVAL )) && segment+=" %F{red}${RETVAL}" | |
| (( EUID == 0 )) && segment+=" %F{yellow}⚡" | |
| (( ${#jobstates} )) && segment+=" %F{cyan}⚙" | |
| if [[ -n ${VIRTUAL_ENV_PROMPT} ]]; then | |
| segment+=" %F{cyan}${VIRTUAL_ENV_PROMPT}" | |
| elif [[ -n ${VIRTUAL_ENV} ]]; then | |
| segment+=" %F{cyan}${VIRTUAL_ENV:t}" |
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
| #define SYS_SOCKET 41 | |
| #define SYS_BIND 49 | |
| #define SYS_LISTEN 50 | |
| #define SYS_ACCEPT 43 | |
| #define SYS_WRITE 1 | |
| #define SYS_CLOSE 3 | |
| #define AF_INET 2 | |
| #define SOCK_STREAM 1 | |
| #define IPPROTO_TCP 6 |
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 { Injectable, OnModuleDestroy, OnModuleInit } from '@nestjs/common'; | |
| import { ConfigService } from '@nestjs/config'; | |
| import { drizzle, NodePgDatabase } from 'drizzle-orm/node-postgres'; | |
| import { Pool } from 'pg'; | |
| import * as schema from 'src/drizzle/drizzle.schema'; | |
| @Injectable() | |
| export class Drizzle implements OnModuleInit, OnModuleDestroy { | |
| private pool: Pool; | |
| public db: NodePgDatabase<typeof schema>; |
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 | |
| check_root() { | |
| if [ "$(id -u)" -ne 0 ]; then | |
| echo "Error: This script must be run as root" | |
| exit 1 | |
| fi | |
| } | |
| enable_wireless_adb() { |
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
| // ==UserScript== | |
| // @name 10fastfingers hack | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.6 | |
| // @description Simulate typing and auto correct | |
| // @license MIT | |
| // @author kyzsuki | |
| // @match https://10fastfingers.com/typing-test/* | |
| // @match https://typingtop.com/*/typing-test | |
| // @grant none |