Skip to content

Instantly share code, notes, and snippets.

# bash/zsh git prompt support
# # -*- encoding: utf-8 -*-
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
hzn01 ~ ⭐ docker run bobtfish/docker-issue-6828
Unable to find image 'bobtfish/docker-issue-6828' locally
Pulling repository bobtfish/docker-issue-6828
06552ac2242f: Download complete
511136ea3c5a: Download complete
65b7e9ccb809: Download complete
f8dd6bd14f58: Download complete
a343823119db: Download complete
ea7d6801c538: Download complete
f54585ff92d7: Download complete
@bobtfish
bobtfish / sysctl.out
Last active August 29, 2015 14:00
sudo sysctl -a > sysctl.out 2>&1
kernel.sched_child_runs_first = 0
kernel.sched_min_granularity_ns = 3000000
kernel.sched_latency_ns = 15000000
kernel.sched_wakeup_granularity_ns = 3000000
kernel.sched_shares_ratelimit = 750000
kernel.sched_shares_thresh = 4
kernel.sched_features = 32611451
kernel.sched_migration_cost = 500000
kernel.sched_nr_migrate = 32
kernel.sched_time_avg = 1000
#!/bin/bash
# This script generates tools/bootstrap, which unpacks a chunk of puppet code from itself
# and runs puppet against it.
set -eu
SCRIPT=$( readlink -f "$0" )
HERE=$( dirname "$SCRIPT" )
STAGE=`tempfile --suffix build-puppet-bootstrap`
@bobtfish
bobtfish / gist:7403811
Created November 10, 2013 20:51
Get docs for the functions you've got in puppet _AND_ your current module set
require 'puppet'
Puppet[:parser] = 'future'
Puppet[:environment] = 'master'
Puppet[:manifest] = 'manifests/site.pp'
Puppet[:modulepath] = 'modules/:vendor/modules/'
Puppet.settings.initialize_app_defaults({
:logdir => "/dev/null",
:confdir => "/dev/null",
:vardir => "/dev/null",
:rundir => "/dev/null",
@bobtfish
bobtfish / Gemfile
Last active December 23, 2015 04:29
source 'https://rubygems.org'
gem 'puppet-lint', '0.4.0.pre1'
#!/bin/sh
echo $* >> /tmp/foo
cat >> /tmp/foo
spaceinvaders TestApp $ perl -MDevel::Cover ./script/testapp_server.pl
Devel::Cover 1.00: Collecting coverage data for branch, condition, pod, statement, subroutine and time.
Selecting packages matching:
Ignoring packages matching:
/Devel/Cover[./]
^t/
\.t$
^test\.pl$
Ignoring packages in:
/Users/t0m/perl5/perlbrew/perls/perl-5.17.6/lib/site_perl/5.17.6/darwin-2level
require "logstash/filters/base"
require "logstash/namespace"
class LogStash::Filters::MaxID < LogStash::Filters::Base
@@max_id = 1
config_name "max_id"
plugin_status "experimental"
public
@bobtfish
bobtfish / test
Last active December 12, 2015 00:29
#!/usr/bin/perl
use strict;
use warnings;
use LWP;
use HTTP::Cookies;
use Carp ();
$SIG{ALRM} = \&Carp::confess;