Skip to content

Instantly share code, notes, and snippets.

View ckdarby's full-sized avatar

Cory Darby ckdarby

  • Canada
  • 02:10 (UTC -04:00)
View GitHub Profile
@ckdarby
ckdarby / privacy-policy.md
Created June 19, 2026 15:42
GDLeap Steam Insights privacy policy

GDLeap Steam Insights Privacy Policy

Effective date: 2026-06-19

GDLeap Steam Insights is a Chrome extension that adds a compact market-insights panel to Steam app pages.

Information the Extension Handles

The extension reads the Steam app ID and page title from Steam app pages where the extension runs. It requests public Steam appdetails data for that app ID to show the current USD price.

#!/bin/sh
SLACK_WEBHOOK_URL=$(git config --get hooks.slack.webhook-url)
SLACK_USERNAME="Deploy Bot"
REPO_PATH="$(dirname ${BASH_SOURCE[0]})/.."
GIT_MESSAGE=$(git --git-dir ${REPO_PATH} show -l 1 -s)
curl -X POST --data "payload={ \"username\": \"${SLACK_USERNAME}\", \"text\": \"${GIT_MESSAGE}\"}" ${SLACK_WEBHOOK_URL}
@ckdarby
ckdarby / twitch.sh
Created January 17, 2014 05:31
Linux streaming Twitch
#! /bin/bash
# gist created by ckdarby
INRES="1920x1080"
OUTRES="1920x1080"
FPS="60"
QUAL="ultrafast"
SOUNDSOURCE="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" #pactl list sources | grep Name
# Write your key in a file named .twitch_key in your home directory
STREAM_KEY=$(cat ./twitch_key) # This is your streamkey generated by jtv/twitch found at: http://www.justin.tv/broadcast/adv_other
@ckdarby
ckdarby / Preferences.sublime-settings
Last active January 2, 2016 09:49
Making everyone's coding life easier at work
{
"default_line_ending": "unix",
"detect_indentation": false,
"draw_white_space": "all",
"highlight_line": true
}
@ckdarby
ckdarby / psr2.php
Created January 6, 2014 16:22
PSR2 Example
<?php
namespace Vendor\Package;
use FooInterface;
use BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
class Foo extends Bar implements FooInterface
{
public function sampleFunction($a, $b = null)
@ckdarby
ckdarby / benchmark
Created November 20, 2013 22:22
Monitoring File Changes in PHP
stat
avg: 0.216100677729
min: 0.167356967926
max: 0.367993116379
sha1_file
avg: 0.456373734236
min: 0.385113954544
max: 0.842865943909
@ckdarby
ckdarby / ddd
Created October 22, 2013 18:57
zz
zzz
@ckdarby
ckdarby / obs.log
Created August 25, 2013 02:58
OBS
19:39:51: Open Broadcaster Software v0.552b - 64bit ( ^ω^)
19:39:51: -------------------------------
19:39:51: CPU Name: Intel(R) Core(TM) i5-3350P CPU @ 3.10GHz
19:39:51: CPU Speed: 3099MHz
19:39:51: Physical Memory: 16349MB Total, 12115MB Free
19:39:51: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
19:39:51: monitor 1: pos={0, 0}, size={1920, 1080}
19:39:51: monitor 2: pos={-1920, 0}, size={1920, 1080}
19:39:51: Windows Version: 6.1 Build 7601 S
19:39:51: Aero is Disabled
[container] Public services
Service Id Scope Class Name
annotation_reader container Doctrine\Common\Annotations\FileCacheReader
assetic.asset_manager container Assetic\Factory\LazyAssetManager
assetic.controller prototype Symfony\Bundle\AsseticBundle\Controller\AsseticController
assetic.filter.cssrewrite container Assetic\Filter\CssRewriteFilter
assetic.filter_manager container Symfony\Bundle\AsseticBundle\FilterManager
assetic.request_listener container Symfony\Bundle\AsseticBundle\EventListener\RequestListener
cache_clearer container Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer
cache_warmer container Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate
@ckdarby
ckdarby / monolog.php
Created June 27, 2013 14:07
Just messing around with monolog
<?php
include_once('vendor/autoload.php');
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Monolog\Formatter\LineFormatter;
//Create a log channel
$log = new Logger('Test');