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 | |
| # Function to check if a command exists | |
| command_exists() { | |
| command -v "$1" >/dev/null 2>&1 | |
| } | |
| # Function to get Linux distribution name | |
| get_linux_distro() { | |
| if [ -n "$TERMUX_VERSION" ]; then |
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
| @echo off | |
| setlocal enableextensions enabledelayedexpansion | |
| cls | |
| :: Check for administrative privileges | |
| NET SESSION >NUL 2>&1 | |
| IF %ERRORLEVEL% NEQ 0 ( | |
| echo Requesting administrative privileges | |
| goto :elevate | |
| ) ELSE ( |
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
| pkg update && pkg upgrade -y | |
| pkg install proot proot-distro tsu fakeroot parted -y | |
| proot -0 login | |
| pkg install git tsu termux-tools jq root-repo docker -y | |
| sudo git clone --depth=1 https://github.com/XternA/income-generator.git ~/.igm | |
| # echo "alias igm=\"sh -c 'cd ~/.igm; sh start.sh \\\"\\\$@\\\"' --\"" >> ~/."${SHELL##*/}rc"; source ~/."${SHELL##*/}rc" | |
| igm |
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
| @echo off | |
| setlocal enableextensions enabledelayedexpansion | |
| cls | |
| :: Check for administrative privileges | |
| NET SESSION >NUL 2>&1 | |
| IF %ERRORLEVEL% NEQ 0 ( | |
| echo Requesting administrative privileges | |
| goto :elevate | |
| ) ELSE ( |
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
| pushd "%~dp0" | |
| dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt | |
| for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
| del hyper-v.txt | |
| Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL | |
| Pause |
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 os, urllib.request | |
| from urllib.parse import urlsplit | |
| LINK_FILE, links, filter, download = 'links.txt', [], (lambda l=None: links.append(l.replace('\n', '')) if l != "" or l != "\n" else None), (lambda url=None: urllib.request.urlretrieve(url, os.path.basename(urlsplit(url).path)) if url != None else None) | |
| for line in open(os.path.join(os.getcwd(), LINK_FILE), 'w+').readlines(): filter(line) | |
| for l in links: download(l) |
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
| crunch 0 25 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX YZ0123456789 | aircrack-ng --bssid aa:aa:aa:aa:aa:aa -w- cap.cap |
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 numpy as np | |
| from matplotlib import pyplot as plt | |
| hog = cv2.HOGDescriptor() | |
| hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector()) | |
| # Detect faces | |
| faceCascade = cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml") | |
| eyeCascade = cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_eye.xml") |
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
| class GeoSolver: | |
| def __init__(self): | |
| return | |
| def triangular_solver(self, a=None, b=None, c=None): | |
| def solve_for_angles(self, a, b, c): | |
| if (a & b & c == None): | |
| return | |
| else: | |
| return_value = 180 |
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
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
| <body> | |
| <div id="container"> | |
| <canvas class="center-block" id="canvasOutput" width=320 height=240></canvas> | |
| </div> | |
| <div class="text-center"> | |
| <input type="checkbox" id="face" name="classifier" value="face" checked> | |
| <label for="face">face</label> | |
| <input type="checkbox" id="eye" name="cascade" value="eye"> | |
| <label for="eye">eye</label> |