Skip to content

Instantly share code, notes, and snippets.

View bjyoungblood's full-sized avatar

Ben Youngblood bjyoungblood

View GitHub Profile
@bjyoungblood
bjyoungblood / gist:5e092d256327d3c4fee2
Last active January 21, 2020 18:34
Bamboo bulk delete disabled plan branches
jQuery('.branches > .disabled a').map(function(i, node) {
return node.href.replace('http://ci.cahtech.com/browse/', '').replace('/editConfig', '');
}).each(function(i, planKey) {
jQuery.ajax({
url : 'http://ci.cahtech.com/chain/admin/deleteChain!doDelete.action',
method : 'POST',
data : {
buildKey : planKey,
save : 'Confirm'
},
@bjyoungblood
bjyoungblood / keybase.md
Created September 26, 2014 21:55
keybase.md

Keybase proof

I hereby claim:

  • I am bjyoungblood on github.
  • I am bjyoungblood (https://keybase.io/bjyoungblood) on keybase.
  • I have a public key whose fingerprint is 4156 B2BF 6310 0CE0 BD9B 8FD0 EA95 8D49 7EBF 765C

To claim this, I am signing this object:

@bjyoungblood
bjyoungblood / gist:9afc01712c3569719e3e
Last active August 29, 2015 14:05
Setting up SublimeLinter in ST3
  1. You already have package control installed, right?
  2. npm install -g jsxhint
  3. Install the following packages: JSX, SublimeLinter, SublimeLinter-jshint, SublimeLinter-jsxhint, SublimeLinter-json
  4. Make sure you're opening JSX files with the JavaScript (JSX) type
  • If not, open a JSX file, at the bottom right corner of the window, click on the filetype, "Open all with current extension as:" "JavaScript (JSX)"
  1. Edit your SublimeLinter user preferences and replace everything with this
  2. Customize settings to your preferences
/** @jsx React.DOM */
'use strict';
var React = require('react');
module.exports = React.createClass({
displayName : 'TextInput',
propTypes : {
@bjyoungblood
bjyoungblood / store-watch.jsx
Created May 21, 2014 15:45
StoreWatchMixin.js
'use strict';
var _ = require('underscore');
var React = require('react');
module.exports = {
propTypes : {
stores : React.PropTypes.object.isRequired
},
{
"user": {
"debug": true,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "load/save",
"linters": {
"annotations": {
@bjyoungblood
bjyoungblood / config.fish
Created December 16, 2013 15:31
~/.config/fish/config.fish
# Fish git prompt
set -g __fish_git_prompt_show_informative_status 1
set -g __fish_git_prompt_hide_untrackedfiles 1
set -g __fish_git_prompt_showdirtystate 'yes'
set -g __fish_git_prompt_showstashstate 'yes'
set -g __fish_git_prompt_showupstream 'yes'
set -g __fish_git_prompt_color_branch magenta bold
@bjyoungblood
bjyoungblood / JsonRpcClient.php
Created August 29, 2013 15:47
simple jsonrpc 2.0 client
<?php
class JsonRpcClient {
protected $_url;
public function __construct($url)
{
$this->_url = $url;
}
@bjyoungblood
bjyoungblood / gist:6178555
Created August 7, 2013 20:55
kohana cache using apc if available
public static function cache($name, $data = NULL, $lifetime = NULL)
{
if (function_exists('apc_store'))
return self::_apc_cache($name, $data, $lifetime);
return parent::cache($name, $data, $lifetime);
}
protected static function _apc_cache($name, $data = NULL, $lifetime = NULL)
{
public function execute()
{
$this->before();
$method = $this->get_http_method();
$this->_data = $this->{$method}();
$this->after();