Skip to content

Instantly share code, notes, and snippets.

View drguildo's full-sized avatar

Simon Morgan drguildo

View GitHub Profile
@drguildo
drguildo / c_unlockedheroes.xml
Last active February 25, 2024 11:46
Ghost Recon Unlocks
<UnlockedHeroes>
<Hero>c_buzz_gordon.atr</Hero>
<Hero>c_henry_ramirez.atr</Hero>
<Hero>c_jack_stone.atr</Hero>
<Hero>c_klaus_henkel.atr</Hero>
<Hero>c_susan_grey.atr</Hero>
<Hero>c_will_jacobs.atr</Hero>
</UnlockedHeroes>
@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 / fallout-new-vegas-mods.md
Last active September 26, 2023 15:49
Fallout: New Vegas mods that I recommend.

This is a conservative list of mods for Fallout: New Vegas which I feel improve what's already there rather than changing it (much).

Important

  • Install xNVSE.
  • Install FNV 4GB Patcher. I used to use FNV4GB but it prevented me from using ReShade. Even if you don't use ReShade this is probably still the better option as it simply patches the New Vegas executable rather than using in-memory patching and an extra executable.
  • Install New Vegas Tick Fix.
  • Install New Vegas Heap Replacer. Replaces the game's heap memory management system with a faster implementation.
@drguildo
drguildo / PasswordDialog
Last active March 1, 2023 10:09
JavaFX doesn't have a password dialog, so I wrote one.
package io.sjm.diary;
import javafx.application.Platform;
import javafx.geometry.Insets;
import javafx.scene.control.ButtonBar.ButtonData;
import javafx.scene.control.ButtonType;
import javafx.scene.control.Dialog;
import javafx.scene.control.PasswordField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;
@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
@drguildo
drguildo / fs.zig
Last active September 19, 2022 18:19
const std = @import("std");
const fs = std.fs;
const warn = std.debug.warn;
pub fn main() !void {
const cwd = try fs.cwd().openDir(".", fs.Dir.OpenDirOptions{
.iterate = true,
});
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
@drguildo
drguildo / Rename.bat
Last active August 17, 2022 19:22
A batch file for automatically renaming and organising images and videos into folders by date.
REM Use exiftool -s <filename> to list the tag names available for a file
REM Google Photos uses these if it doesn't find any metadata (and it doesn't do
REM a good job of looking).
exiftool "-FileCreateDate<DateTimeOriginal" "-FileModifyDate<DateTimeOriginal" *.*
exiftool "-Directory<DateTimeOriginal" -d "%%Y/%%B" *.jpg *.mp4 *.mts *.m2ts *.mov
exiftool "-Directory<CreateDate" -d "%%Y/%%B" *.jpg *.mp4 *.mts *.m2ts *.mov
@drguildo
drguildo / gist:2073b2457717f0fc7bec
Last active August 4, 2022 05:45
Fear and Loathing in Ukraine
Post by Underflow
====================
Post 1
====================
Here's what happened to an acquaintance of mine a few years ago. She told me this over the phone after I mentioned the joose. I started taping the conversation with her consent after a lengthy preamble - she asked to clean up any direct references to people or locations, cause she promised the people involved never to make this public; one of the guys is still working.
The friend's from Ukraine, but after listening to the story again I'm not 100% sure this took place there, as she was moving about a bit at that time. She was trying to get press work as a free-lance journalist and had made a deal with an ambulance crew to accompany them at night in the roughest districts in return for a few hundred US dollars and a case of Jack Daniel's.
@drguildo
drguildo / pom.xml
Last active February 21, 2022 15:14
Maven Kotlin Example
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>test</artifactId>
<version>1.0-SNAPSHOT</version>
@drguildo
drguildo / the-witcher3-mods.md
Last active December 5, 2021 17:10
The Witcher 3 mods that I recommend.
  • Auto Apply Oils-625-v1-31-2-1594325041.zip
  • AutoLoot AIO 3.0 for Patch 1.31-1996-3-0-5.7z
  • Brothers In Arms Ultimate Bug Fix Collaboration-5752-2-2-1629241468.7z
  • Fast Stash Menu-3931-1-0-1566500962.rar
  • modAxiiFix_1.0.zip-4493-1-0-1584199298.zip
  • modMapQuestObjectives-1.30-v10.zip-943-1-30-10.zip
  • Over 9000 - Weight limit mod v1.31-3-1-31.zip
  • Realistic Weather 2.1-2084-2-1.rar