Skip to content

Instantly share code, notes, and snippets.

@claudenobs
claudenobs / SteamValidator.au3
Last active August 25, 2021 21:56
validate all games in your steam library, now doesn' get confused by dlc's
#include <Array.au3>
#include <File.au3>
#include <FileConstants.au3>
#include <MsgBoxConstants.au3>
#include <ScreenCapture.au3>
; This script validates all games in a user's Steam library
; Author: Shawn Maiberger
; @ionblade (Twitter)
; By running this script, in whole or in part, you accept that the author is not acceptable for any damage to your computer or data caused by the script.
@claudenobs
claudenobs / TwelveMonkeysCmykJpgWriter.java
Last active July 27, 2017 18:48
TwelveMonkeysCmykJpgWriter
import java.awt.color.ICC_ColorSpace;
import java.awt.color.ICC_Profile;
import java.awt.image.BufferedImage;
import java.awt.image.ColorConvertOp;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.URL;
@claudenobs
claudenobs / GogShortcutSanitizer.ps1
Last active February 28, 2016 16:19
Moves all GoG shortcut folders into a GoG.com folder. Put all primary game start shortcuts into GoG folder.
# 1. Save this script by right-click on Raw button and choose "Save link as..."
# 2. Start > Run... & type : powershell
# 3. To Run script type : Start-Process powershell -Verb RunAs -ArgumentList "-ExecutionPolicy Unrestricted -NoExit -file `"$Home\Downloads\GogShortcutSanitizer.ps1`""; exit
# 4. Give permissioo in pop-up
param([switch]$debug = $false, [string]$defaultShortcutPath)
function createDirectory($dir) {
if (-not (Test-Path $dir)) {
mkdir $dir
Write-Host "Created directory: $dir"
@claudenobs
claudenobs / SteamShortcutCreator.ps1
Last active December 2, 2018 14:13
Creates shortcuts to all your steam games. Icons are taken either from steam installation downloaded or game executable.
# 0. Requires steamcmd. Download from https://developer.valvesoftware.com/wiki/SteamCMD. Put it in your steam directory (the one with steam.exe)
# 1. Save this script by right-click on Raw button and choose "Save link as..."
# 2. Start powershell : right click "Start" then choose "Run..." & type : powershell
# 3. Run script type : Start-Process powershell -Verb RunAs -ArgumentList "-ExecutionPolicy Unrestricted -NoExit -file `"$Home\Downloads\SteamShortcutCreator.ps1`""; exit
# 4. Give permission in pop-up
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$steamDir = if (Test-Path "C:\Program Files (x86)\Steam\steam.exe") { "C:\Program Files (x86)\Steam" }
elseif ($args[0] -and (Test-Path "$($args[0])\steam.exe")) { $args[0] }
elseif (Test-Path "$PSScriptRoot\steam.exe") { $PSScriptRoot }
elseif (Test-Path ".\steam.exe") { "." }
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
BBEdit Language Module for CoffeeScript
Put this file in
~/Library/Application Support/BBEdit/Language Modules
or equivalent.
Based off of the examples shipped in the BBEdit SDK.
@claudenobs
claudenobs / prototypes.js
Created May 2, 2011 13:04 — forked from xabolcs/prototypes.js
possibly working setCurrentURI() in BarTabWebNavigation
...
/*** These methods and properties are simply passed through. ***/
setCurrentURI: function(aURI) {
return this._original.setCurrentURI(aURI);
},
goBack: function () {
return this._original.goBack();
},
...