Skip to content

Instantly share code, notes, and snippets.

View adminy's full-sized avatar
🍓
Making Magic using Logic

Adminy adminy

🍓
Making Magic using Logic
View GitHub Profile
import concurrent.futures
with concurrent.futures.ThreadPoolExecutor(max_workers = 8) as executor:
tasks = range(20)
future_to_task = {executor.submit(lambda task: task ** 2, task): task for task in tasks}
for future in concurrent.futures.as_completed(future_to_task):
task = future_to_task[future]
output = future.result()
print(task, output)
@adminy
adminy / arch_linux.sh
Created November 12, 2019 14:17
arch linux installation
# Set the keyboard layout
#> ls /usr/share/kbd/keymaps/**/*.map.gz
#> loadkeys de-latin1
#> ls /sys/firmware/efi/efivars UEFI PROOF if exists
#Connect to the internet
#> ip link
# TEST Internet
@adminy
adminy / windowsX.bat
Created November 12, 2019 13:42
WindowsX
@echo off
title Activate Windows X Activator!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Windows 10 Home&echo - Windows 10 Home N&echo - Windows 10 Home Single Language&echo - Windows 10 Home Country Specific&echo - Windows 10 Professional&echo - Windows 10 Professional N&echo - Windows 10 Education N&echo - Windows 10 Education N&echo - Windows 10 Enterprise&echo - Windows 10 Enterprise N&echo - Windows 10 Enterprise LTSB&echo - Windows 10 Enterprise LTSB N&echo.&echo.&echo ============================================================================&echo Activating your Windows...&cscript //nologo slmgr.vbs /upk >nul&cscript //nologo slmgr.vbs /cpky >nul&wmic os | findstr /I "enterprise" >nul
if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872
@adminy
adminy / automate_bootcamp_mouse.py
Created October 19, 2019 08:13
Bootcamp Mouse Enable Automation given you extracted AppleControlPannel.exe from bootcamp.exe
# coding: utf-8
from selenium import webdriver
from os import system
import subprocess
SW_MINIMIZE = 6
info = subprocess.STARTUPINFO()
info.dwFlags = subprocess.STARTF_USESHOWWINDOW
info.wShowWindow = SW_MINIMIZE
s = subprocess.Popen(r'C:\home\Winium.Desktop.Driver.exe', startupinfo=info)