Skip to content

Instantly share code, notes, and snippets.

@mplorentz
mplorentz / Clearing Civ V Cache
Last active April 7, 2020 18:09
How to clear the cache in Civilization V
On Windows:
Remove contents of C:\Documents and Settings\YOUR_COMPUTER_NAME\Application Data\My Games\Sid Meier's Civilization 4\cache
On OS X:
Remove contents of /Users/[your_user_name]/Documents/Aspyr/Sid Meier's Civilization 5/cache/
On Linux:
Remove contents of ~/.local/share/Aspyr/Sid Meier's Civilization 5/cache/
Then have Steam verify the integrity of the Game Cache:
1. Open Steam
2. Click Library
@mplorentz
mplorentz / deepCopy.js
Last active August 29, 2015 14:16 — forked from Maddix/copyItem.js
deepCopyItem = function(item) {
var listProto = Object.prototype.toString.call([]);
var objectProto = Object.prototype.toString.call({});
var itemProto = Object.prototype.toString.call(item);
if (itemProto != listProto && itemProto != objectProto) {
console.warn("Cannot create a deep copy from " + itemProto);
return undefined;
}
var newItem = function() {
@mplorentz
mplorentz / keybase.md
Created August 9, 2014 12:23
keybase.md

Keybase proof

I hereby claim:

  • I am mplorentz on github.
  • I am mplorentz (https://keybase.io/mplorentz) on keybase.
  • I have a public key whose fingerprint is FE73 1467 E7BF 7C1B D8EB 468C B52A D653 F0FB 005C

To claim this, I am signing this object:

@mplorentz
mplorentz / gist:763b05602e79c9afa62e
Created July 7, 2014 13:19
Tent post that isn't public
{
'content': {
'text': 'test post'
},
'type': 'https://tent.io/types/status/v0#',
'permissions': {
'public': True
}
}
(*
* Finder Open iTerm Here - v1.0.2 - 4/14/2011
* http://benalman.com/
*
* Copyright (c) 2011 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*)
tell application "Finder"