Skip to content

Instantly share code, notes, and snippets.

View datfooldive's full-sized avatar
🌌
sleep

hikki datfooldive

🌌
sleep
View GitHub Profile
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
_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}"
#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
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>;
@datfooldive
datfooldive / wadb.sh
Last active January 25, 2025 13:33
enable adb wireless quickly
#!/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() {
@datfooldive
datfooldive / typingtesthack.js
Last active November 23, 2024 16:26
typing test hack
// ==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