blocks by drnic

bin/worktree to create/list/destroy worktrees where 1) bin/setup expects to setup databases; 2) some .gitignored files copied over; etc

https://www.youtube.com/watch?v=gWNFna6fgS8&t=483s

Buildkite mcp json

We have a dedicated PC running ollama, with ngrok + static domain + basic auth. Problem: ollama cli doesn't yet pass basic auth via $OLLAMA_HOST Solution: this wrapper script which runs a tmp caddy server. Replace the url, username, pass for your ngrok

Tennis Score to Scorecard

336d2b478a06ac3cf8df

9a337e1f58e170b9ff8a

ddff91c4157985770952

09b04e299ec191454cb3

9b69fbce024907cff632

In Rails apps using StimulusJS, load React components found at app/javascript/react/*/index.tsx, and make them available via Ruby helper react(name)

https://github.com/YusukeIwaki/playwright-ruby-client

If you found this because you're seeing it too - switch to Node v16

1136174589dedcdcc36e

Rewrite of https://github.com/brianvoe/slim-select stylesheet using tailwindcss. Some color/size changes for my specific project; but you can find them easily now.

b0be3d3bb27abb563595

bc8ccd5703dfdd136f20

Our rails db includes our own tables/schema and the Salesforce/Heroku Connect schema (under "salesforce.*"). We place this file in config/initializers/schema_dumper.rb and now our rails db:schema:dump includes both our own tables and the salesforce. tables.

37b7d0959b00e943bcdc

55626f52ae59e1493350

c5628368df08bc13f10a

Vue component for some alignment buttons. Demo at https://share.getcloudapp.com/2Nu5bL1B

a042bd719ed9213c5af7

Deploy https://jupyter.org/ Jupyter Lab to Cloud Foundry

5e70e5028b7a7fc25aff

96a4160df8da19c809ae

8f812aff98f5ba50eb3c

curl -sSL https://gist.githubusercontent.com/drnic/9c5f2d58865c8595fe3aa77672f3ebc8/raw/cf7b10072da392c07257ee33367f3daab2d484d7/k3sup-gce.sh | bash -s up

Kubernetes the Hard Way, the Easy Way

625605d2b6cdb1c16928

source <(curl https://tinyurl.com/kubectl-aliases -L)

Sample Kubernetes serviceaccount including GitHub (remember to use Personal Auth Token, not Username/Password if you've got 2FA enabled) and Docker Hub. Used for a kpack demonstration.

Walk thru for CAB call to create a buildpack for etcd proxy and run it as a Cloud Foundry sidecar

Upgrade cfdev 0.0.15 to support sidecars (capi 1.79.0)

Tiny demo app https://tinyurl.com/tiny-ruby

3b1681bec37a352f4dbe

c17d8f98f425c6fb479e

Instructions for running Ardupilot Simulation SITL within MacOS using XQuartz and Vagrant

Comparison of two Knative Builds - "build-default.yml" is a no-template build with explicit steps; "buildpack.yml" uses the pre-installed https://raw.githubusercontent.com/knative/build-templates/master/buildpack/buildpack.yaml build-template

Bootstrap Kube/Helm/Service Catalog/Knative on GKE

e4184420833391741cbb

Stop all Cloud Foundry applications in any spaces with "staging" in their name

9b9538966b8a087de3a9

f716d3e36f31f9ddc9b5

d81e93f7f60c7a56fe09

3cf890eaa08cc1ee7032

e028e491e42b9fb08447

Convert a ci/settings.yml with `(( vault "/secret/mything" ))` into concourse cred mgmt + a credhub import file

6f3b9c355f8feeaf2201

c03bf5929c7da3421e39

b0d16213867f2be98999

f47caa6f9e88c7b8cd18

89ae726a0d411c6fc941

4d2f38aaec84b6eb5a82

bosh2 private.yml

14914246063db649750c

b4cb2090a61395b0d7ac

BOSH Turns 5

spruce merge bosh.yml bosh-lite.yml vars.yml creds.yml

c161a39fcc4c1f7077ba

13ddb2c817f15f7e9da7

11000 lines of cadvisor sample API output for docker container

e546d682c7f91f4f825f

Sample BOSH deployment manifest to run a single instance of bosh-lite

Error perhaps due to credentials jdbcUrl jdbc:postgresql://10.58.111.151:33015/postgres?username=XXX\u0026password=XXX

2f84363d3ddb65f2cb9c

4bc9a120011e0a4ef82e

6099848277df08ea3280

Proposal for a broker to allow itself to be private installed across multiple spaces.

0c2e172346cb8b0197a9

b6e4fbd9940d8694dded

f770df3441ba7663ec4f

aedad2be18f02879b371

t2.micro/t2.small erroring

dynamic slack message demo

df629668a531b193985a

Target current BOSH's current CF manifest and run nats CLI on its nats configuration

Convert a BOSH manifest using Static IP networks into using DHCP "dynamic" networking + DNS hostnames - extracted from bosh-workspace

Script to recreate docker containers to fix the host port to the current dynamically assigned port

Rebind all applications for a Cloud Foundry service

LB + 2 ATC

e7c809d902801439be1d

a0ef8108f3ebe474c36f

7f2c548624bcd6ad6135

New bosh-init can deploy anything to a single server

b41f79cd23384c18f949

9e871d3c2363d84adab0

concourse tutorial example stub for redis deployment to bosh-lite

bosh manifest for redis to bosh-lite

bosh-init for aws

spiff merge stub for redis deployment to aws ec2

BOSH deployment manifest - AWS

2ae4fe8a9ec954835402

Little script to pretty-print files in a tree from http://stackoverflow.com/a/1767559/36170

7d0a4761efb55a312ab2

a5a8d36c126ddc476b85

A simple concourse example task - fork and try anything

f30882ed254d3e50a6c6

f953407db9fcbb24a050

2a96b55f55a12e67eac0

Playing with concourse.ci

trying to deploy docker-services via new bosh-micro

CF Summit talk - Introducing bosh-workspace: how we deploy all things BOSH

fffee406e4f26fb94a0e

6e60fcf4bc8341ca5598

96f8687d617373b55f6e

8cb2d03b9b1bf59c414c

redis-cpi.yml - deployed using bosh-micro-cli e2c346aeb90432f411b1ce82162785b50984ac85 on Jan 28 2015

example bosh monit ctl script that runs consul-template

The error I get when my microbosh blobstore/persistent disk is full

970410ca62a5d82f1ac2

Terraform an AWS account where the target folder has a fog-api.yml fog file containing one set of user credentials

44141b36158f47f7132e

Airspace changes since September 18, 2014 (comparing last two NASR subscriptions from https://nfdc.faa.gov/xwiki/bin/view/NFDC/56+Day+NASR+Subscription)

Example Cloud Foundry service catalog for GET /v2/catalog

configure docker broker to add gnatsd service

Script to bulk delete apps from Cloud Foundry that have the same name (via regexp) - useful for cleaning up training environments

public buckets

versions can't just be replaced with UUIDs

d2edead8f3cbb1a7d221

consul cluster on AWS failing to maintain active connections: 1 bootstrap, 2 servers, 1 client

eefbc617ff0e28e5f68c

trying to deploy ghost to cloud foundry

Windy City Rails abstract: The New Era of Orchestration: From Docker to BOSH to Cloud Foundry - Dr Nic Williams

The command line help for the `bosh` command

Help for cf & bosh command line applications

camlistore wants gpg

Initial setup of Cloud Foundry

9641038

Rake tasks to display the stages to be used in bosh stemcells. Put the stemcell_debug file in /bosh/bosh-dev/lib/bosh/dev/tasks/stemcell_debug.rake

Conversion of Ruby Array#map to some Golang equivalents

BOSH deployment manifest structure for Cloud Foundry deployment

9162205

AWS VPC fog snippets

8996624

Playing with explicit docker daemon and registry

8927193

8910511

Dockerfile to compile Ruby 2.1.0 from source

rebuild bosh-lite including CF

Navigating around openstack networks

What are all the IPs currently being used by an OpenStack tenant across all networks? Run this fog command

Quickly tag all your current Cloud Foundry Services' Plans as public

Playing with the sha1s of bosh release blobs

Deployment file diff for enabling loggregator (using DNS) (ran: diff production-nfs.yml production-loggregator.yml -u5)

./update

~/.inception_server

git diff v137..v138 -- jobs/*/spec

5888763

5887734

5824112

Deployment manifest for cf-release bosh release on aws used by cf-docs

Deployment manifest for cf-release bosh release on openstack used by cf-docs

See the vitals of each VM with "bosh vms --vitals"

cf deployment on openstack vip networking - jobs & resource pools

5737691

last 12 months of commits to sub-projects of bosh; built running `commithistory.rb` from https://gist.github.com/drnic/5730270 in bosh root folder

The number of commits in a repo (or subfolder). Uses `brew install git-extras`

Diff of the two templates in cf-release

Using bundler to install bosh_cli & deployer

Proposal for a Cloud Foundry manifest.yml that is similar in concept to Heroku/Foreman's Procfile. The top-level `processes` key is new and hence does not conflict with old `applications` top-level key. The `processes:` child keys are similar to the keys in a Procfile.

Create MCF (Micro Cloud Foundry VM) on bosh-bootstrap inception VM.

my micro_bosh.yml

Version of validate_local_cache.sh for OS X

logs across CF processes during upload/PUT of an app - results in 402 error.

4589056

Service nodes added via "bosh cf"

prepackage on mongodb_node_ng

4460317

4458989

gem install sigar -v '0.7.2' failing on Mountain Lion

4170941

4057377

tree of a rails app

Gotham Ruby Conf - Dr Nic

wd-sinatra thor task to generate endpoint + spec

Extract a job & packages from another BOSH release

unknown agent_task_id - /var/vcap/deploy/bosh/director/current/director/lib/director/client.rb

Example BOSH ctl script for a ruby/rack app that can also be used in local development

Redis manifest

wordpress bosh deployment manifest

bosh stemcell cli UX

An example Guardfile with the works for a Rails app

hung bundle update

1503106

My safari cowsay on github; run with ". generate.sh"

Failing to import a vagant box to virtualbox

never fear $ in tutorials again

1009472

1008311

1008254

1007526

crash during stress test

986147

Installs a gem in a specific RVM ruby/gemset, and creates wrapper script to always use that specific ruby/gemset.

963858

rvm hydra

942597

866946

855839

Script for OS X users to install and run the latest nightly Chromium build

Script for OS X users to install and run the latest nightly Chromium build

Up/Down to search shell history

Errors from running xbuild on IronRuby on OS X + Mono

606965

Print your open source contributions into HTML

Discover the contribution status of a user for all their watched repos: owner, collaborator, or watcher

Sometimes you just need to know if anyone has forked your project recently

464305

464304

Demonstration of Ruby's call chain

362660

362525

362519

362505

361747

359748

351151

339697

335916

335179

Asynchronously receive line-by-line from `ping` command

Comparing a NodeJS example rewritten as CoffeeScript

334910

331922

224737

223836

A quick app built from scratch + deployed to heroku in 50 minutes (including twitter-based bug fixing) http://page-stripper.heroku.com/

207929

193146

193138

193136

192524

192500

added a sample callback_url to postbin

Setting webrat modes based on scenario tags

179336

Error when installing driver

176109

165885

151107

149239

142072

142069

142040

140774

Proposal for talk at Rails Underground 2009 by Dr Nic

126834

125543

125021

124673

119034

For mocha integration into Cucumber, add this file into features/support folder

64657

51430

49238

See http://github.com/blog/297-dirty-git-state-in-your-prompt

42172

The recipe object starts as an NSManagedObject for Recipe entity, but then becomes a Pointer without setValue:forKey: support

41854

41568

41232

39199

template for rails

37731

23477

Put this file in your home folder to get history search via up/down keys

10829

8514

Filename class for Ruby

50