Skip to content

Instantly share code, notes, and snippets.

View mrkrstphr's full-sized avatar
🏠
Working from home

Kristopher Wilson mrkrstphr

🏠
Working from home
View GitHub Profile
@mrkrstphr
mrkrstphr / README.md
Last active May 26, 2024 18:18
Copy All HumbleBundle Download Links

Copy All HumbleBundle Download Links

I frequently buy books and comic books from HumbleBundle. It's kind of an obsession, whether I manage to read them all, or not.

I also like to use Motrix to manage downloading lots of files. HumbleBundle has a bulk download link which just fires off a ton of browser downloads, but I've found that sometimes using that features results in missing a download or two.

And clicking the download links one-by-one is boring.

I just want to get a list of download URLs so I can paste them into Motrix at once and have it manage downloading them.

I made this once, but never used it. I'm dropping it here incase I need it someday.

Usage

const {
  collection,
  addItem,
  removeItem,
 setItems,

Keybase proof

I hereby claim:

  • I am mrkrstphr on github.
  • I am mrkrstphr (https://keybase.io/mrkrstphr) on keybase.
  • I have a public key whose fingerprint is 457E 3D67 635A A898 50E7 B9AE F357 CD34 B69F 4AE7

To claim this, I am signing this object:

@mrkrstphr
mrkrstphr / martha.php
Created November 8, 2014 19:12
Sample Martha Configuration File
build:
-
command: curl -s https://getcomposer.org/installer | php
stopOnFailure: true
-
command: php composer.phar install --prefer-dist --dev
stopOnFailure: true
-
command: phploc --log-xml=${outputdir}/phploc.xml module/
markBuildFailed: false
@mrkrstphr
mrkrstphr / README.md
Last active February 5, 2019 13:17
Deploying Sculpin Sites to GitHub Pages

Deploying Sculpin Sites to GitHub Pages

I wanted to be able to use Sculpin to generate GitHub pages. Here's what I did...

  1. Created a super awesome Sculpin site from the Sculpin Blog Skeleton

  2. Make sure everything is under version control in my master branch (except things that shouldn't be. see the .gitignore)

  3. Updated publish.sh:

#!/bin/bash

@mrkrstphr
mrkrstphr / colors
Created May 28, 2014 17:34
pgadmin3 colors (from ~/.pgadmin3)
[ctlSQLBox]
UseSystemBackground=false
UseSystemForeground=false
ColourBackground=rgb(26, 26, 26)
ColourForeground=white
MarginBackgroundColour=rgb(77, 77, 77)
ColourCaret=rgb(237, 237, 237)
Colour1=rgb(208, 244, 208)
Colour2=rgb(208, 244, 208)
Colour3=rgb(177, 177, 177)
@mrkrstphr
mrkrstphr / nulls.php
Created January 15, 2014 20:23
Nulls
<?php
class MyClass {}
function foo(MyClass $obj = null) { echo "foo called\n"; }
function bar(MyClass $obj) { echo "bar called\n"; }
foo(null);
bar(null);
@mrkrstphr
mrkrstphr / README.md
Last active December 27, 2015 01:19
Plugins

Martha Plugins

Essentially, we need a plugin system that:

  1. Allows third-party developers to extend the functionality
  2. Allows users to easily find, install, update, and configure plugins through the application
  3. Allows developers to include images and css that are made available in the public folder
  4. Allows developers to denote PHP library dependencies for their Plugins
  5. Allows developers to denote Plugins that their Plugin depends on
  6. Allows for the organization, procuring, and proper versioning of all the third party resources
@mrkrstphr
mrkrstphr / README.md
Last active December 23, 2015 07:38
All About Martha

Martha

The architecture, for the most part, is setup just like CRM.

Repositories

There is a main repository, martha-ci/martha. This is a ZF2 application. This contains routes, controllers, forms, etc. So far, it's pretty simple. There's a dashboard with nothing on it. There's a projects controller which allows you to view and create projects, and a build controller which allows you to kickoff new builds or view the status of a build.

There is another repository called martha-ci/core, which contains the domain, persistence, and other library code. This library is the bulk of all the martha code that isn't front-end ZF2.