This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Script for migrating a VHD | |
# | |
# Anders Evenrud <[email protected]> | |
# | |
# http://serverfault.com/questions/508251/migrating-xenserver-vms-from-intel-to-amd-servers | |
# http://wiki.xen.org/wiki/Proposal:_Disk_import/export | |
# http://wiki.xen.org/wiki/XAPI_Command_Line_Interface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Script for migrating a Virtual Machine VHD | |
# between Intel and AMD. | |
# | |
# Arguments: <vm-label> <cpu-count> <memory-size> <disk-image-path> | |
# | |
# Anders Evenrud <[email protected]> | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Better Battlelog Favourite Server Browser | |
// @namespace http://andersevenrud.github.io/ | |
// @version 0.3 | |
// @description Makes browsing your favouires a bit nicer | |
// @match http://battlelog.battlefield.com/* | |
// @downloadURL https://gist.github.com/andersevenrud/b49950126c344261ce17 | |
// @updateURL https://gist.github.com/andersevenrud/b49950126c344261ce17 | |
// @author andersevenrud | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Better Battlelog Loadout | |
// @namespace http://andersevenrud.github.io/ | |
// @version 0.3 | |
// @description Improves the Loadout screen in battlelog a bit | |
// @match http://battlelog.battlefield.com/* | |
// @updateURL https://gist.github.com/andersevenrud/d9f3ae140a587106f21d/raw/bbl.user.js | |
// @downloadURL https://gist.github.com/andersevenrud/d9f3ae140a587106f21d/raw/bbl.user.js | |
// @author andersevenrud | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Bring Battlelog Hooahs back! | |
// @namespace http://andersevenrud.github.io/ | |
// @version 0.7 | |
// @description You get the old "Hooah" back instead of "Like" (In the Battle Feed!) | |
// @match http://battlelog.battlefield.com/* | |
// @updateURL https://gist.github.com/andersevenrud/c4cf8ec40ed25c2ef2cf/raw/bbhooah.user.js | |
// @downloadURL https://gist.github.com/andersevenrud/c4cf8ec40ed25c2ef2cf/raw/bbhooah.user.js | |
// @author andersevenrud | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Battlelog Server Browser Blacklist | |
// @namespace http://andersevenrud.github.io/ | |
// @version 0.5 | |
// @description You gain the ability to blacklist servers in the browser | |
// @match http://battlelog.battlefield.com/* | |
// @updateURL https://gist.github.com/andersevenrud/e275e0b600578bcf6e26 | |
// @downloadURL https://gist.github.com/andersevenrud/e275e0b600578bcf6e26 | |
// @author andersevenrud | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$str = <<<EOTXT | |
SUPER SECRET STUFF HERE | |
EOTXT; | |
$bin = Array(); | |
$hex = Array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Example: src/javascript/helpers/my-module.js | |
// Add to: `src/conf/200-compile.json` | |
// Then run: `grunt dist-dev-index` to add to dist-dev build | |
// Or: `grunt core` to add to dist build | |
// | |
(function(Utils, VFS, API) { | |
///////////////////////////////////////////////////////////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Fullscreen Battlelog Server Browser (BF4) | |
// @namespace http://andersevenrud.github.io/ | |
// @version 0.5.0 | |
// @description Fullscreen Battlelog Server Browser (BF4) | |
// @match http://battlelog.battlefield.com/bf4 | |
// @match http://battlelog.battlefield.com/bf4/* | |
// @match http://cte.battlelog.battlefield.com/bf4 | |
// @match http://cte.battlelog.battlefield.com/bf4/* | |
// @match http://cte.battlelog.com/bf4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Extract arguments | |
while echo $1 | grep -q ^-; do | |
eval $( echo $1 | sed 's/^-//' )=$2 | |
shift | |
shift | |
done |
OlderNewer