Skip to content

Instantly share code, notes, and snippets.

View ConnorMcF's full-sized avatar
🥓
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Connor McFarlane ConnorMcF

🥓
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
View GitHub Profile
@ConnorMcF
ConnorMcF / index.php
Last active August 29, 2015 14:18
PayPal IPN
<?
// GO DOWN..
?>
<?php session_start(); ?>
<h1>Please wait...</h1>
Is <? echo($_SESSION['user_name']); ?> your username?
<form name="paypalForm" action="/dev/paypal/paypal.php" method="post">
<input type="hidden" name="id" value="<?php echo($_SESSION["user_name"]) ?>">
<input type="hidden" name="CatDescription" value="Upgrade to Premium">
<input type="hidden" name="payment" value="10">
@ConnorMcF
ConnorMcF / keybase.md
Last active August 29, 2015 14:19
Keybase

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 8EB6 2865 4B93 278C 402F D8DA 5EF9 8E92 6AB0 4176

To claim this, I am signing this object:

<?php
$host = 1; // don't allow chat widget to load
require('pusher.php');
$app_id = '110645';
$app_key = 'd15708a3ea089b2a9f4d';
$app_secret = '6ca8056c835ca42785b7';
$pusher = new Pusher($app_key, $app_secret, $app_id);
@ConnorMcF
ConnorMcF / auto_gunshop_gold.txt
Created October 8, 2015 17:27
Auto Gunshop Gold
4144 3246 030a 7369 7a65 0132 3230 3931
0174 696d 657a 6f6e 6501 4365 6e74 7261
6c20 4461 796c 6967 6874 2054 696d 6501
6461 7465 0130 3320 4f63 746f 6265 7220
3230 3133 0174 696d 6501 3039 3a32 3220
504d 016e 616d 6501 e0b9 91db a9e2 80a0
486f 6c79 e280 a0db a9e0 b991 0163 6865
636b 010d 0a09 0a01 020a 5d00 0001 004e
0003 0000 0000 0000 7f82 c442 2118 b783
3161 1c27 04dd 62a6 619c dcb8 6d38 fa6e
@ConnorMcF
ConnorMcF / keybase.md
Created October 22, 2015 12:31
Keybase Proof!

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 957D 9955 F2F4 9EFD F3FD E4ED 3481 6E42 AF89 0981

To claim this, I am signing this object:

Fetching Workshop Addons..
Calling GetCollectionDetails
Could not establish connection to Steam servers.
Error - retrying..
Calling GetCollectionDetails
Error - retrying..
Calling GetCollectionDetails
Error - retrying..
Calling GetCollectionDetails
Error - retrying..
@ConnorMcF
ConnorMcF / thing.lua
Created October 29, 2015 20:14
CAC support
local self = {}
CAC.ULibBanSystem = CAC.MakeConstructor (self, CAC.IBanSystem)
function self:ctor ()
end
-- IReadOnlyBanSystem
function self:GetId ()
return "gBanSystem"
end
@ConnorMcF
ConnorMcF / youtubetitle.php
Created October 31, 2015 18:44
Get YouTube title from ID - v3 API
function youtube_title($id) {
// returns a single line of JSON that contains the video title. Not a giant request.
$videoTitle = file_get_contents("https://www.googleapis.com/youtube/v3/videos?id=".$id."&key=YOUR_API_KEY&fields=items(id,snippet(title),statistics)&part=snippet,statistics");
// despite @ suppress, it will be false if it fails
if ($videoTitle) {
$json = json_decode($videoTitle, true);
return $json['items'][0]['snippet']['title'];
} else {
return false;
}
/*-----------------------------------------------------------
MaterialBoard
Copyright © 2015 Szymon (Szymekk) Jankowski
All Rights Reserved
Steam: https://steamcommunity.com/id/szymski
-------------------------------------------------------------*/
MATBConfig = { }
local Config = MATBConfig
Unhandled Lua Refresh: [NAME:autorun/matboard.lua] [TYPE:!UNKNOWN]
Error in hook ScoreboardShow: addons/materialboard/lua/autorun/matboard.lua:400: attempt to index upvalue 'Config' (a nil value)
stack traceback:
addons/materialboard/lua/autorun/matboard.lua:400: in function 'ShowScoreboard'
addons/materialboard/lua/autorun/matboard.lua:500: in function 'fn'
addons/ulib/lua/ulib/shared/hook.lua:110: in function <addons/ulib/lua/ulib/shared/hook.lua:93>
[C]: in function '‭‬‌‎'
[ERROR]