Skip to content

Instantly share code, notes, and snippets.

View drguildo's full-sized avatar

Simon Morgan drguildo

View GitHub Profile
@drguildo
drguildo / SubredditImageDownloader.ps1
Last active November 16, 2022 19:32
A PowerShell script for downloading all of the images posted in a subreddit.
param (
[Parameter(Mandatory = $true)] [string]$Subreddit
)
$ErrorActionPreference = 'Continue'
$UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.6.01001)"
$StartingDirectory = Get-Location

Requirements

  • .NET / ASP.NET Support
  • Test runner
  • Good documentation
  • How well does it work with ASP.NET Web Forms?

Jenkins

import java.io.*;
import java.util.*;
class Main {
static public int EvenOddDigitsSum(int input1, String input2) {
int sum = 0, temp, num = 0;
if (input2 == "even") {
temp = input1;
while (temp != 0) {
System.out.println("Checking " + temp);
@drguildo
drguildo / morrowind-mods.md
Last active February 15, 2020 09:44
The Elder Scrolls III: Morrowind mods that I recommend.
  • mlox - Analyzes and sorts your plugin load order.
  • Official Plugins - Official plugins released by Bethesda exclusively for the PC version of Morrowind. Helm of Tohan was originally released online as a free pre-order exclusive, while the rest were published by Bethesda on their website.
  • Morrowind Optimization Patch - Improves performance and fixes some mesh errors.
  • Morrowind Code Patch - Fixes and improves various things (CTDs, save corruption etc.) in the Morrowind executable that can't be fixed with mods.
  • Patch for Purists - Tons of bug fixes that aren't in the official patches.
  • Expansion Delay - Fixes Bethesda's overly enthusiastic expansion hooks by delaying the Dark Brotherhood attacks and limiti
class Foo {
public foo: {
name: string,
age: number
};
constructor() {
this.foo["age"] = 123
}
}
console.log(new Foo());
@drguildo
drguildo / deus-ex-mods.markdown
Last active October 18, 2023 19:13
Deus Ex Essential Mods

Provides a Direct3D 10 renderer better suited for running the game on modern systems.

A replacement executable that fixes various issues and provides a configuration UI.

Unofficial bug fixes.

The latest official Deus Ex patch actually contains an outdated set of maps. These are the latest official versions.

When Ziff Davis decided to pull the plug on GameSpy, Deus Ex was left without a masterserver. Follow this guide to point Deus Ex at the official unofficial one.

@drguildo
drguildo / .eslintrc.json
Last active July 18, 2017 19:49
My ESLint configuration
{
"extends": "eslint:recommended",
"env": {
"es6": true,
"node": true
},
"rules": {
"no-console": "off",
"prefer-const": "warn",
"no-unused-vars": "warn",
@drguildo
drguildo / steam-playtime-fix.js
Last active June 30, 2017 19:42
Greasemonkey/Tampermonkey script to convert Steam's decimal time played (e.g. "4.7 hrs") to hours and minutes
// ==UserScript==
// @name Sane Steam Playtimes
// @namespace http://sjm.io/
// @version 0.1
// @description Convert Steam's decimal time played (e.g. "4.7 hrs") to hours and minutes
// @author Simon Morgan
// @match http://steamcommunity.com/id/*
// @grant none
// ==/UserScript==
@drguildo
drguildo / hitman-relative-sizes.txt
Last active June 26, 2017 12:12
Hitman game sizes relative to the previous one.
Hitman: Codename 47 - 318MB
Hitman 2 - 487MB ~ 53%
Hitman: Contracts - 861MB ~ 76%
Hitman: Blood Money - 4259MB ~ 395%
Hitman: Absolution - 24162MB ~ 467%
Hitman (2016) - 66177MB ~ 174%
@drguildo
drguildo / slack-bot.js
Created June 23, 2017 14:33
Simplest possible Botkit Slack bot?
const Botkit = require("botkit");
const controller = Botkit.slackbot({});
const bot = controller.spawn({
token: process.env.BOT_OAUTH_TOKEN
}).startRTM();