Skip to content

Instantly share code, notes, and snippets.

View brandonsturgeon's full-sized avatar
🙄

Brandon Sturgeon brandonsturgeon

🙄
View GitHub Profile
# Um, am I allowed ot do this, or is this cheating??
Account.good_params.each do |param, value|
it "should be invalid with nil #{param}" do
account = Account.good_account
account[param] = nil
expect(account).to be_invalid
end
end
import os
import logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
class Main():
def __init__(self):
if self.prelim_checks() is False:
logging.critical("Preliminary checks show problems in configuration. Shutting down.")
return
import os
import logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
class Main():
def __init__(self):
self.files = {}
self.get_files()
var container = document.getElementById("side-ad-2-bb1d11"); container.innerHTML='';var container = document.getElementById("side-ad-3-005e4b"); container.innerHTML='';var container = document.getElementById("leaderboard-60390a"); container.innerHTML='';

PvP Changes:

Block weapon_rpg

  • This is a good idea that we've been kicking around for a short while

Enable GravGun holding/punting npc_grenade

  • This is a bit more difficult, as I don't necessarily want people prop killing all the time. This is handled by FPP and to make a unique exception would mean having a modified version of FPP that I'd have to manage.

Disable M9k Bullet penetration

  • Very doable and is probably a good idea. This is worth putting into the suggestions thread all by itself.
module LineHelper
CHAT_REGEX = /^\[\d\d:\d\d:\d\d\] (?:\(TEAM\))?(.*): (.*)\r/
KILL_REGEX = /^\[\d\d:\d\d:\d\d\] (.*) killed (.*) using (.*)\r/
KILLED_BY_REGEX = /^\[\d\d:\d\d:\d\d\] (.*) was killed by (.*)\r/
ENT_REGEX = /^\[\d\d:\d\d:\d\d\] (.*)<(.*)> spawned(?:\/gave himself)? (?:vehicle|model|sent|ragdoll|swep) (.*)\r/
TOOL_REGEX = /^\[\d\d:\d\d:\d\d\] (.*)<(.*)> used the tool (\w*) on (.*)\r/
CONNECTION_REGEX = /^\[\d\d:\d\d:\d\d\] Client \"(.*)\" connected.\r/
SUICIDE_REGEX = /^\[\d\d:\d\d:\d\d\] (.*) suicided!\r/
KICK_REGEX = /^\[\d\d:\d\d:\d\d\] (.*) kicked (.*) \((.*)\)\r/
BAN_REGEX = /^\[\d\d:\d\d:\d\d\] (.*) banned (.*) (?:for (\d* (?:minutes|hours|days)|permanently))(?: (.*))?\r/
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300);@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700,500,300);@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}50%{opacity:0}to{opacity:1}}[src$="blue.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDA5Njg4IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=)}[src$="red.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjQ0MzM2IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtMmgydjJ6bTAtNGgtMlY3aDJ2NnoiLz48L3N2Zz4=)}[src$="yellow.png
aardvark
aardvarks
abaci
aback
abacus
abacuses
abaft
abalone
abalones
abandon
aardvark
aardvarks
abaci
aback
abacus
abacuses
abaft
abalone
abalones
abandon
baccarats
balladeer
ballasted
barracked
barracuda
barraging
battalion
bettering
billiards
billionth