Skip to content

Instantly share code, notes, and snippets.

View Nucs's full-sized avatar

Eli Belash Nucs

  • Haifa, Israel
View GitHub Profile
@alexandreteles
alexandreteles / ChatGPT 4.txt
Last active July 8, 2025 21:47
ChatGPT w/ GPT4 system prompt
You are a GPT GPT-4 architecture, based on the GPT-4 architecture.
Knowledge cutoff: 2023-04
Current date: 2023-12-11
Image input capabilities: Enabled
# Tools
## python
@isc30
isc30 / steps.md
Last active May 11, 2025 10:37
Proxmox v7.4/v8 - Ryzen 7 7735HS - AMD Radeon 680M GPU passthrough
@Nucs
Nucs / MemoryInflator.cs
Created June 9, 2022 10:20
Memory Inflating Tool used to allocate memory while preventing windows RAM compression and disk caching
using System.Runtime.InteropServices;
var alloc = new Allocation();
Console.WriteLine("Hey, this tool will allocate how much memory you'll type in and reallocate ");
try {
Task.Run(async () => {
while (true) {
await Task.Delay(60000).ConfigureAwait(false);
if (!alloc.Buffer.HasValue)
continue;
@nullbind
nullbind / Get-SmbShareInventory.psm1
Last active August 31, 2024 10:35
Get-SmbShareInventory.ps1
#--------------------------------------
# Function: Get-SMBShareInventory
#--------------------------------------
# Author: Scott Sutherland, 2020 NetSPI
# References: This script includes code taken and modified from the open source projects PowerView, Invoke-Ping, and Invoke-Parrell.
function Get-SMBShareInventory
{
<#
.SYNOPSIS
@mohit-sinha
mohit-sinha / lgb_bo.py
Created June 27, 2018 11:51
Use this for LightGBM parameter optimisation by Bayesian optimisation.
import pandas as pd;
import numpy as np;
import lightgbm as lgb
from bayes_opt import BayesianOptimization
from sklearn.model_selection import cross_val_score
def lgb_evaluate(
numLeaves,
maxDepth,
scaleWeight,
@mattmc3
mattmc3 / logger.py
Last active December 2, 2022 01:12
Python - basic console logger
import logging
# setup simple console logger
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
handler = logging.StreamHandler()
# handler.setLevel(logging.INFO)
formatter = logging.Formatter('%(asctime)s | %(levelname)s | %(message)s',
'%Y-%m-%d %H:%M:%S')
handler.setFormatter(formatter)
@ReubenBond
ReubenBond / ILFieldBuilder.cs
Created October 12, 2016 01:58
Generating static fields on the fly in C# (for use in other codegen)
using System;
using System.Collections.Concurrent;
using System.Reflection;
using System.Reflection.Emit;
internal class ILFieldBuilder
{
private static readonly AssemblyBuilder AssemblyBuilder =
AssemblyBuilder.DefineDynamicAssembly(
new AssemblyName(nameof(ILFieldBuilder)),
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Infrastructure;
using Microsoft.AspNetCore.Mvc.Internal;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.Logging;
using System;
using System.Diagnostics;
using System.Threading.Tasks;
namespace ControllerlessDemo