Skip to content

Instantly share code, notes, and snippets.

View SIRprise's full-sized avatar
🙂
Doin' things

SIRprise

🙂
Doin' things
  • Germany
View GitHub Profile
@nekomimi-daimao
nekomimi-daimao / LogWriter.cs
Last active December 13, 2023 19:35
Unity, write logfile
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using Cysharp.Threading.Tasks;
using UnityEngine;
namespace Nekomimi.Daimao
@jimdiroffii
jimdiroffii / move-mouse.ahk
Created September 14, 2020 15:18
Mouse Automation Example in AutoHotKey
^!m::
Loop 15
{
MouseMove, 766, 421
click 766, 421
Send 18{Enter}
MouseMove, 579, 75
Click 579, 75
MouseMove, 766, 421
}
@XlogicX
XlogicX / games.md
Last active April 4, 2025 03:55
List of Boot Sector Gamers

Boot Sector Games

A list of playable boot sector games, most of which are on github. Fun to play, great to learn from. There are also many cool non-booting boot sectors out there that aren't games (so more like demos), but this page is just reserved to interactive boot sectors / games. This list is also not complete, but not on purpose, it is a best effort collection of games, so if you know of any fun boot sector games, please contribute.

This page lists a collection of 31 games spanning several authors: nanochess, me, daniel-e, shikhin, JulianSlzr, XanClic, QiZD90, darkvoxels, guyhill, w-shackleton, egtzori, VileR, ish_works, franeklubi, queso_fuego, franeklubi, Jethro82, waternine9, tevoran, palma3k, taylor-hartman. peterferrie should also be mentioned as he has touched a lot of these games.

TetrOS

https://github.com/daniel-e/tetros

Tetris Clone. Full color, no score. This was one of the older boot sector games out there. ![tetros](https://gist.github.com/assets/1570856/3a0d1023-cbe6-4b4d-

@idbrii
idbrii / aseprite-easy-build.bat
Last active January 14, 2024 17:54
A simple build script for building Aseprite on Windows 10
@echo off
SETLOCAL EnableDelayedExpansion
:: Derived from the steps in INSTALL.md (https://github.com/aseprite/aseprite/blob/fd2077ce7d80e6af3202958c52291e5d6fb7f556/INSTALL.md)
:: to figure out how to builds this. Worked to build aseprite 1.2.16 release
:: with skia m71 and the most recent (sorry) verison of depot tools.
:: https://github.com/aseprite/aseprite/releases/download/v1.2.16.2/Aseprite-v1.2.16.2-Source.zip
:: https://github.com/aseprite/skia/archive/aseprite-m71.zip
:: https://storage.googleapis.com/chrome-infra/depot_tools.zip
::
@rkttu
rkttu / PInvokeTest.ps1
Last active June 6, 2023 09:19
P/Invoke with PowerShell (and small portion of C# code)
# Windows uses msvcrt.dll
Add-Type -Path .\test.cs
[Sample]::printf_win32("Hello, World %d!`r`n", 123)
# *nix uses libc
Add-Type -Path ./test.cs
[Sample]::printf_linux("Hello, World %d!`n", 123)
@Richienb
Richienb / Large File Creation Tool.bat
Created June 10, 2018 02:05
Large File Creation Tool In A Batch File
@echo off
title Large File Creation Tool
cls
echo If this tool doesn't seem to work, ensure you are running it in elavated/administrator mode
echo Press any key to continue
pause>nul
echo.
@TheKevinWang
TheKevinWang / CompileInMemory.cs
Last active October 23, 2024 04:43
Compile and run C# code in memory to avoid anti-virus. Taken from a C# ransomware sample: https://www.bleepingcomputer.com/news/security/new-c-ransomware-compiles-itself-at-runtime/ However, this will still execute csc.exe and drop a dll to %temp% https://twitter.com/Laughing_Mantis/status/991018563296157696
using System;
using System.Collections.Generic;
using System.Text;
using System.CodeDom.Compiler;
using Microsoft.CSharp;
using System.IO;
using System.Reflection;
namespace InMemoryCompiler
{
class Program
@nikonthethird
nikonthethird / Snake.ps1
Last active August 15, 2024 23:12
PowerShell script for playing Snake.
#Requires -Version 5.1
Using Assembly PresentationCore
Using Assembly PresentationFramework
Using Namespace System.Collections.Generic
Using Namespace System.ComponentModel
Using Namespace System.Linq
Using Namespace System.Reflection
Using Namespace System.Text
Using Namespace System.Windows
Using Namespace System.Windows.Input
@jgrahamc
jgrahamc / airwolf.bas
Created May 9, 2017 18:00
AppleSoft BASIC program used in Airwolf S02E03 "Moffett's Ghost"
1 PP=2
10 HOME
12 PRINT
20 A$ = "0123456789ABCDEF"
30 FOR I = 1 TO 19
31 IF I = 9 THEN GOSUB 1000
40 L$ = ""
45 FOR J = 1 TO 9
50 L1 = INT ( RND (1) * 15 ) + 1: L2 = INT ( RND (1) * 15 ) + 1
60 L$ = L$ + MID$ (A$,L1,1) + MID$(A$,L2,1) + ": "
@heiswayi
heiswayi / SimpleLogger.cs
Last active March 14, 2024 00:19
Simple C# logger utility class
/*
MIT License
Copyright (c) 2016 Heiswayi Nrird
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is