Skip to content

Instantly share code, notes, and snippets.

View ChemicalRascal's full-sized avatar

James Denholm ChemicalRascal

  • Victoria, Australia
View GitHub Profile
@ChemicalRascal
ChemicalRascal / deployCharacterSettings.ps1
Created March 15, 2020 03:39
Powershell script to overwrite existing characters with
$masterChar = 'core_char_NUMBERS_HERE.dat'
$masterUser = 'core_user_NUMBERS_HERE.dat'
$charRegex = 'core_char_[0-9]+\.dat'
$userRegex = 'core_user_[0-9]+\.dat'
[System.Collections.ArrayList]$charTargets = Get-ChildItem |
Where-Object { $_.Name -match $charRegex } |
Where-Object { $_.Name -notmatch $masterChar }
foreach ($char in $charTargets) {
@ChemicalRascal
ChemicalRascal / Makefile
Created May 28, 2015 05:48
An overly complicated Makefile
# ------------------------------------------------
#
# 4con Makefile
#
# Based on "Generic Makefile", by Yanick Rochon:
# http://stackoverflow.com/q/7004702/343565
#
# Extensively messed about with because GNU make
# is easily, easily abused and I wanted to prove
# that.
@ChemicalRascal
ChemicalRascal / ftl.PKGBUILD.patch
Created April 3, 2014 23:53
(OBSOLETE) aur/ftl PKGBUILD proto-patch proposal
--- PKGBUILD.old 2013-09-13 16:31:31.000000000 +1000
+++ PKGBUILD.new 2014-04-04 10:50:36.961756753 +1100
@@ -2,15 +2,15 @@
# Contributor: J0k3r <moebius282 e4at gmail D0_T com>
pkgname=ftl
-pkgver=1.03.3
-pkgrel=2
+pkgver=1.5.4
+pkgrel=1
@ChemicalRascal
ChemicalRascal / cockatrice-git PKGBUILD Proposal
Last active December 25, 2015 07:29
2013-10-12 proposed alterations to AUR cockatrice-git
pkgname=cockatrice-git
pkgver=0
pkgrel=1
pkgdesc="A multiplatform application for playing card games such as Magic: The Gathering over a network."
arch=('i686' 'x86_64')
url="http://www.cockatrice.de/index.php"
license=('GPL2')
depends=('qt4' 'protobuf')
makedepends=('git' 'cmake')
_gitroot="git://github.com/Daenyth/Cockatrice.git"