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 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
// | |
// 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 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
<?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
#!/bin/sh | |
# Extract arguments | |
while echo $1 | grep -q ^-; do | |
eval $( echo $1 | sed 's/^-//' )=$2 | |
shift | |
shift | |
done |
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
local function get_board_config_command(info) | |
local a = {} | |
if info["wifi"] ~= nil then | |
table.insert(a, "-wifipassword \"" .. info["wifi"]["password"] .. "\"") | |
table.insert(a, "-wifiencryption \"" .. info["wifi"]["encryption"] .. "\"") | |
table.insert(a, "-wifibssid \"" .. info["wifi"]["bssid"] .. "\"") | |
end | |
if info["hostname"] ~= nil then |
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
(function(Application, GUI, Dialogs, Utils, API, VFS) { | |
'use strict'; | |
///////////////////////////////////////////////////////////////////////////// | |
// APPLICATION | |
///////////////////////////////////////////////////////////////////////////// | |
function ApplicationFooBar(args, metadata) { | |
Application.apply(this, ['ApplicationFooBar', args, metadata, { | |
src: 'data/index.html', |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<!-- YOUR MARKUP HERE --> | |
<div> | |
<button id="Test">Test</button> | |
</div> |
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 <andersevenrud@gmail.com> | |
# |
OlderNewer