Skip to content

Instantly share code, notes, and snippets.

View andersevenrud's full-sized avatar
🤘
w^w^^w^w

Anders Evenrud andersevenrud

🤘
w^w^^w^w
View GitHub Profile
(function(Application, GUI, Dialogs, Utils, API, VFS) {
'use strict';
/////////////////////////////////////////////////////////////////////////////
// APPLICATION
/////////////////////////////////////////////////////////////////////////////
function ApplicationFooBar(args, metadata) {
Application.apply(this, ['ApplicationFooBar', args, metadata, {
src: 'data/index.html',
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- YOUR MARKUP HERE -->
<div>
<button id="Test">Test</button>
</div>
@andersevenrud
andersevenrud / setboardconfig.lua
Created January 29, 2016 18:44
setboardconfig.lua
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
@andersevenrud
andersevenrud / setboardconfig.sh
Last active January 29, 2016 18:38
setboardconfig.sh
#!/bin/sh
# Extract arguments
while echo $1 | grep -q ^-; do
eval $( echo $1 | sed 's/^-//' )=$2
shift
shift
done
@andersevenrud
andersevenrud / bl-fullscreen-server-browser.user.js
Last active November 30, 2020 01:44
Fullscreen Battlelog Server Browser (BF4)
// ==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
@andersevenrud
andersevenrud / osjs-module-example.js
Last active August 29, 2015 14:25
OSjs Module Example
//
// 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) {
/////////////////////////////////////////////////////////////////////////////
@andersevenrud
andersevenrud / decode-product-key.php
Last active September 11, 2015 16:02
win7 product key decoder
<?php
$str = <<<EOTXT
SUPER SECRET STUFF HERE
EOTXT;
$bin = Array();
$hex = Array();
@andersevenrud
andersevenrud / blblacklist.user.js
Last active August 29, 2015 14:16
Battlelog Server Browser Blacklist
// ==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==
@andersevenrud
andersevenrud / bbhooah.user.js
Last active April 11, 2016 06:02
Bring Battlelog Hooahs back!
// ==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==
@andersevenrud
andersevenrud / bbl.user.js
Last active September 11, 2015 15:56
Better Battlelog Loadout
// ==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==