Skip to content

Instantly share code, notes, and snippets.

View dcgithub's full-sized avatar
💭
for those about to rock!..

dcgithub

💭
for those about to rock!..
  • None
  • Brisbane
View GitHub Profile
@ChrisMartin-CyberSec
ChrisMartin-CyberSec / FunnyPrank.vbs
Created August 16, 2022 20:09
A Funny Simulated Malware Attack (USE AT YOUR OWN RISK)
'--------------------------------------'
'Script Name: totallynotavirus.vbs '
'Author: Levi Von Haxor '
'Purpose: Just a fun little prank '
' simulating a malware attack '
'--------------------------------------'
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim strName, info
@karenpayneoregon
karenpayneoregon / DirectoryHelpers.cs
Created August 15, 2022 13:32
Directory/File helpers
public class DirectoryHelpers
{
public static int FileCount(string directory)
{
DirectoryInfo dirInfo = new(directory);
return dirInfo.EnumerateDirectories().AsParallel()
.SelectMany(di => di.EnumerateFiles("*.*", SearchOption.AllDirectories)).Count();
}
public static int FileCount(string directory, SearchOption searchOption)
{
@Erketrollmannen
Erketrollmannen / wowMacros
Last active May 30, 2023 15:39
wowMacros
#showtooltip shadow dance
/use Cosmic Gladiator's Badge of Ferocity
/cast Symbols of Death
/cast Blood Fury
/cast Shadow Dance
#showtooltip
/cast [@focus] shadowstep
#showtooltip
@Erketrollmannen
Erketrollmannen / wowSettings
Last active December 6, 2024 07:45
wowSettings
SpellQueueWindow - 220 : Set to 100 above latency/ms
/console SpellQueueWindow 220
@johnlindquist
johnlindquist / prompts.txt
Created July 23, 2022 22:26
Top Prompts of 2022-08-23
random beautiful landscape
young woman, medium wavy red hair, slightly tanned, heroine, oil painting, portrait, intricate complexity, rule of thirds, in the style of Artgerm, character concept
portrait of a cute mouse as knight in the style of charlie bowater, oil painting
intricate colourfully painted carved wood paneling, dark souls, ivory and copper , artstation
grey curly hair dutch man danny hollander dannyjevriend Studio Ghibli painterly style, portrait symetrical –iw 2
pixel art explosion, painterly
The Entrance to Kingdom of Shangri-La, Beautiful architecture, Atmosphere, Dramatic lighting, Epic composition, Close up, Low angle, Wide angle, by Miyazaki, Nausicaa Ghibli, Breath of The Wild
winter,snow,In the dense primeval forest there was a pool of water after the rain,Crystal butterfly,The light from the cracks of the trees shone on the pool like a mirror, and deep snow covered the land,sun light,concept, art, fantasy,Ghibli, Hayao Miyazaki,4k,cinematic,
handsome anime dragon in Amazon rainforest, dn
@rkttu
rkttu / IProgram.cs
Last active June 6, 2023 09:18
Dependency Injection + Cancellation Token + Apartment State Configuration Supported Startup Framework
using Microsoft.Extensions.DependencyInjection;
public interface IProgram
{
public const int DefaultExitCode = 0;
public const int TimeoutExitCode = 124;
private static TProgram DefaultProgramFactory<TProgram>(IEnumerable<string> _)
where TProgram : IProgram
{
@emidoots
emidoots / ramblings.md
Last active December 25, 2024 04:39
Because cross-compiling binaries for Windows is easier than building natively

Because cross-compiling binaries for Windows is easier than building natively

I want Microsoft to do better, want Windows to be a decent development platform-and yet, I constantly see Microsoft playing the open source game: advertising how open-source and developer friendly they are - only to crush developers under the heel of the corporate behemoth's boot.

The people who work at Microsoft are amazing, kind, talented individuals. This is aimed at the company's leadership, who I feel has on many occassions crushed myself and other developers under. It's a plea for help.

The source of truth for the 'open source' C#, C++, Rust, and other Windows SDKs is proprietary

You probably haven't heard of it before, but if you've ever used win32 API bindings in C#, C++, Rust, or other languages, odds are they were generated from a repository called microsoft/win32metadata.

@rkttu
rkttu / meet-ie-again.ps1
Created June 16, 2022 06:18
Meet Internet Explorer Again 😏
Add-Type 'public class SFW { [System.Runtime.InteropServices.DllImport("user32.dll")][return: System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.Bool)] public static extern System.Boolean SetForegroundWindow(System.IntPtr hWnd); }'
$handle = [activator]::CreateInstance([type]::GetTypeFromCLSID("0002DF01-0000-0000-C000-000000000046"))
$handle.Visible = $true
$handle.Navigate('http://www.example.com/')
[SFW]::SetForegroundWindow($handle.HWND)
@straker
straker / README.md
Last active October 27, 2025 02:33
Basic Classic Helicopter HTML and JavaScript Game

Basic Classic Helicopter HTML and JavaScript Game

This is a basic implementation of the classic Helicopter game, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration

  • Score / Distance
  • As the helicopter moves right, the score / distance should increase. Use context.fillText() to display the score / distance to the screen