Skip to content

Instantly share code, notes, and snippets.

View ConnorMcF's full-sized avatar
🥓
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Connor McFarlane ConnorMcF

🥓
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
View GitHub Profile
<?php
// English language file for gMusic
// By Connor McFarlane
$lang["author"] = "Connor McFarlane";
$lang["author_attribution"] = "connormcf.com";
$lang["lang"] = "English";
$lang["lang_code"] = "en";
$lang["options"] = // don't worry about editing this part
<<<EOT
<li><a href="/lang">Help Translate!</a></li>
Never tell your password to anyone.
20:45 - WintR: hello
20:45 - |CoreRP| ConnorMcF: Hi!
20:45 - WintR: do u still need help with ur server
20:45 - |CoreRP| ConnorMcF: yeah
20:46 - WintR: what with
20:46 - |CoreRP| ConnorMcF: population
20:46 - WintR: anything code related?
20:46 - |CoreRP| ConnorMcF: yeah
20:46 - WintR: what would that ebe
alias "corerp" "connect corerp.notfound.tech"
alias "corerpdev" "connect corerp.notfound.tech:27016"
@ConnorMcF
ConnorMcF / sv_sounds.lua
Created November 20, 2015 20:10
/176.31.15.206_27015/garrysmod/addons/darkrpmodification-master/lua/darkrp_modules/corerpchatsound
-- itcrowd.mp3
DarkRP.setChatSound("999", {"corerpchatsound/itcrowd.mp3"})
DarkRP.setChatSound("0118", {"corerpchatsound/itcrowd.mp3"})
-- nice.mp3
DarkRP.setChatSound("noice", {"corerpchatsound/nice.mp3"})
-- roasted.mp3
DarkRP.setChatSound("roasted", {"corerpchatsound/roasted.mp3"})
-- insecuritiesintensify.mp3
DarkRP.setChatSound("insecuritiesintensify", {"insecuritiesintensify.mp3"})
DarkRP.setChatSound("insecurities intensify", {"insecuritiesintensify.mp3"})
DarkRP.setChatSound("wordscantbringmedown", {"insecuritiesintensify.mp3"})
DarkRP.setChatSound("words cant bring me down", {"insecuritiesintensify.mp3"})
DarkRP.setChatSound("insecure", {"insecuritiesintensify.mp3"})
DarkRP.setChatSound("in-secure", {"insecuritiesintensify.mp3"})
DarkRP.setChatSound("nomatterwhattheysay", {"insecuritiesintensify.mp3"})
DarkRP.setChatSound("no matter what they say", {"insecuritiesintensify.mp3"})
DarkRP.setChatSound("insecuritiesintensify.mp3", {"insecuritiesintensify.mp3"})
Connor McFarlane 4:08:00 PM
it doesn't even mention the word session
Connor McFarlane 4:07:45 PM
so how'll that help?
Connor McFarlane 4:07:40 PM
on it
Connor McFarlane 4:07:39 PM
_ _ _ _ _ _
(_) | (_) | | | | | |
_| |_ __ ____ _ ___ _ _ _ ___| |_ __ _ _ __ _ __ __ _ _ __ | | __ | |__ _ __ ___
| | __| \ \ /\ / / _` / __| | | | | / __| __| / _` | | '_ \| '__/ _` | '_ \| |/ / | '_ \| '__/ _ \
| | |_ \ V V / (_| \__ \ | | |_| \__ \ |_ | (_| | | |_) | | | (_| | | | | < | |_) | | | (_) |
|_|\__| \_/\_/ \__,_|___/ | |\__,_|___/\__| \__,_| | .__/|_| \__,_|_| |_|_|\_\ |_.__/|_| \___/
_/ | | |
|__/ |_|
<?php
require('../class/ratelimiter.php');
$rateLimiter = new RateLimiter(new Memcached(), $_SERVER["REMOTE_ADDR"],"registration");
try {
// allow a maximum of 100 requests for the IP in 5 minutes
$rateLimiter->limitRequestsInMinutes(1, 1);
} catch (RateExceededException $e) {
header("HTTP/1.0 529 Too Many Requests");
exit;
}
<?php
/*
Copyright (c) 2013 Alexander Kirk
http://alexander.kirk.at/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
@ConnorMcF
ConnorMcF / keybase.md
Created November 29, 2015 12:31
Keybase Verification

Keybase proof

I hereby claim:

  • I am ConnorMcF on github.
  • I am connormcf (https://keybase.io/connormcf) on keybase.
  • I have a public key whose fingerprint is 30B8 4083 6363 97C7 30DF DE25 0204 AC47 E3A7 9892

To claim this, I am signing this object: