Skip to content

Instantly share code, notes, and snippets.

View SpencerSharkey's full-sized avatar

Spencer SpencerSharkey

View GitHub Profile
var O8i = (function H(G, Q) {
var E = '',
J = decodeURIComponent("U%24_Q%1B%0BO%10Ss%05U%7FRyPdpw-r%0Fps'G%08Jdi%5Dy~p~%0F%40%0A%17'2%26%3C%02M%26mMEj_W%19%0A%03%0D%0C%2CFL0M9%156%3A%0F%0BU%22%40%1D%1DG%1D%0F0%3D%17%05%2Cn4%13%11A%13%23z%3Er6%03%3D%03%1EIjM%1D3%0DO%10S7Q%148M0M0%20%2F%1Es%23PS%20%18_%1D%7F%3B%07%2B8%04%3C%13%04%18%100%3F!-%0D%094m%1A%12%1D%1Ew4%3F71%03wII%10%11%23%08%08%14%0A1KzIY%3D%1BZ%02%0F%04%18%171v5c%24w%2B%3Ed%3F%05%13%14%06iMEjV%1D%13H%02%1E%17.w%0F-%14%0F%097-e%10%1B%13k%7F%2430%24%02%0C%20%05%06%07%09j'p9%0B%02%0D%15!9%19%09%2Bt%00%7Fr0%2F-%22%3DhHL9%08(%035!%20%09TgH%1D%13%09%04%0D5%3B%0Aa6n%16%10%1EF%18%26%25%2B6%0AF%01vK%00%20%1CL.N%3E3%5C%1E%1F%3Bd%3D%7CKj)c%16qaniE1_M%08%2BE%11zhqYUI7h%0B%1D%7D9M%06o%3AJkmMF%3F%17FP%1F%16%12%3F%03l%15'%3A'%0FD%10%16%0DHD%2F%3D'%04%3C%17%60ll%13%04%18Rtuqr%18M%01%1A%15dj%1AJD%3FK-%23%1Fg%3A7R1H%0F%3F!%02k%10pk%1AZ%09%0E%08%2FA%3A%11%19%0Ce%03%07%0B1%0A%1E.9%1Dh%3B%03en%1AJD%0C%06%06%1D%20%40L0MbM%2Fc-%03%5E%3F%5BZ%04G%08J1%20%0C%2F%3
function loader:AddResourceDirectory(Directory)
-- Msg("AddResourceDirectory: "..Directory.."...\n")
Msg("AddResourceDirectory: "..self.ContentPrefix.."/"..Directory.."/*\n")
local FoundDir = false
for k,v in pairs(file.Find(self.ContentPrefix.."/"..Directory.."/*", "MOD")) do
local File = Directory.."/"..v
if(file.IsDir(self.ContentPrefix.."/"..File, "MOD")) then
FoundDir = true
if(File != ".svn" or File != "unused")then
self:AddResourceDirectory(File)
TRY THIS FIRST:
1 ) DOWNLOAD THE BF2 CD-KEY CHANGER: https://www.germandarknes.net/index.php?downloadsview-6
2 ) PASTE THE KEY FROM YOUR UCP PAGE INTO THE CHANGER, AND HIT APPLY. ( DO NOT CHECK `Don't include hyphens` )
3 ) ATTEMPT TO JOIN A BF2 MULTIPLAYER SERVER
####################################################
Try the following manual method if you're having trouble:
'use strict';
const chalk = require('chalk');
const async = require('async');
const moment = require('moment');
const mysql = require('../lib/db-mysql').getPool('revive');
const db = require('../lib/db');
const Rcon = require('../lib/rcon');
### Keybase proof
I hereby claim:
* I am SpencerSharkey on github.
* I am spencersharkey (https://keybase.io/spencersharkey) on keybase.
* I have a public key whose fingerprint is 0177 00E1 383D B031 B81C 27C4 9311 FB41 3DD9 7DE7
To claim this, I am signing this object:
#Work only for camp_gibraltar gpm_nv 16, but you can add the other spawnpoint coordonates for the other maps!
import bf2
import host
import bf2.PlayerManager
import bf2.GameLogic
import bf2.Timer
import math
import time
#PARAMETERS YOU CAN CHANGE
#Work only for camp_gibraltar gpm_nv 16, but you can add the other spawnpoint coordonates for the other maps!
import bf2
import host
import bf2.PlayerManager
import bf2.GameLogic
import bf2.Timer
import math
import time
#PARAMETERS YOU CAN CHANGE
@SpencerSharkey
SpencerSharkey / text.txt
Created June 26, 2017 04:58
Gist created by API
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Config has a deprecated constructor in /opt/revive/bf2142stats/include/utils.php on line 311
2017-06-26 04:58:08 -- NOTICE: SNAPSHOT Data Filename: battlelog-us-20170108_2352_camp_gibraltar.txt
2017-06-26 04:58:08 -- NOTICE: SNAPSHOT Data Complete (camp_gibraltar:20170108_2352)
2017-06-26 04:58:08 -- NOTICE: Begin Processing (camp_gibraltar)...
2017-06-26 04:58:08 -- NOTICE: - Standard Map (4)...
Round ID to set558522017-06-26 04:58:08 -- NOTICE: Found 36 Player(s)...
2017-06-26 04:58:08 -- NOTICE: Processing Player (2323008)
2017-06-26 04:58:08 -- NOTICE: Player (2323008) found in `stats_w` - make update.
2017-06-26 04:58:08 -- NOTICE: >>>>>>>>>>UPDATE stats_w SET `wkls-1`=(`wkls-1` + 1), `wtp-1`=(`wtp-1` + 41), `wbf-1`=(`wbf-1` + 14), `wbh-1`=(`wbh-1` + 6), `waccu-1`='0.23712835387962', `wkls-19`=(`wkls-19` + 13), `wtp-19`=(`wtp-19` + 463), `wbf-19`=(`wbf-19` + 403), `wbh-19`=(`wbh-19` + 81), `waccu-
@SpencerSharkey
SpencerSharkey / text.txt
Created June 26, 2017 05:04
Gist created by API
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Config has a deprecated constructor in /opt/revive/bf2142stats/include/utils.php on line 311
2017-06-26 05:04:14 -- NOTICE: SNAPSHOT Data Filename: battlelog-us-20170109_0009_camp_gibraltar.txt
2017-06-26 05:04:14 -- NOTICE: SNAPSHOT Data Complete (camp_gibraltar:20170109_0009)
2017-06-26 05:04:14 -- NOTICE: Begin Processing (camp_gibraltar)...
2017-06-26 05:04:14 -- NOTICE: - Standard Map (4)...
Round ID to set558532017-06-26 05:04:14 -- NOTICE: Found 27 Player(s)...
2017-06-26 05:04:14 -- NOTICE: Processing Player (2288575)
2017-06-26 05:04:14 -- NOTICE: Player (2288575) found in `stats_v` - make update.
2017-06-26 05:04:14 -- NOTICE: >>>>>>>>>>UPDATE stats_v SET `vkdr-0`=0, `vkdr-1`=0, `vkdr-2`=0, `vkdr-3`=0, `vkdr-4`=0, `vkdr-5`=0, `vkdr-6`=0, `vkdr-7`=0, `vkdr-8`=0, `vkdr-9`=0, `vkdr-10`=0, `vkdr-11`=0, `vkdr-12`=0, `vkdr-13`=0, `vkdr-14`=0 WHERE `pid`='2288575'