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
@Artefact2
Artefact2 / README.md
Last active May 11, 2025 00:58
GGUF quantizations overview
@CPPAlien
CPPAlien / pg-pong-pytorch.py
Last active September 22, 2024 23:18 — forked from karpathy/pg-pong.py
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
import torch
import torch.nn as nn
import torch.optim as optim
import gym
import numpy as np
import pickle
# Hyperparameters
H = 200 # Number of hidden layer neurons
batch_size = 10 # Every how many episodes to do a param update?
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Management.Automation;
using System.Security;
using System.Text;
using Microsoft.Win32;
@bsdayo
bsdayo / pwsh-bash-completion.ps1
Created November 12, 2024 23:47
Make Bash's autocompletion available to PowerShell on Linux.
# Add this snippet to your $PROFILE to make Bash's autocompletion available to PowerShell on Linux.
# Warning: adds ~500ms initialization time.
# References: https://brbsix.github.io/2015/11/29/accessing-tab-completion-programmatically-in-bash/
# https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/register-argumentcompleter
# Find all commands
$commands = bash -c 'source /usr/share/bash-completion/bash_completion && complete' | awk '{ print $NF }'
$commands += ls /usr/share/bash-completion/completions
$commands | ForEach-Object {
@jcary741
jcary741 / badlenovo.ps1
Last active April 9, 2025 12:41
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.