Skip to content

Instantly share code, notes, and snippets.

View jurriaan's full-sized avatar
:octocat:
What's happening?

Jurriaan Pruis jurriaan

:octocat:
What's happening?
View GitHub Profile
@koenrh
koenrh / gh-org-bundle-audit.sh
Last active March 19, 2019 10:04
Run bundle-audit on all repositories in your GitHub organisations. Requires jsawk and bundler-audit.
#!/bin/bash
org=blendle
token=$GITHUB_BUNDLE_AUDIT_API_TOKEN
gh_api_host=api.github.com
gh_raw_host=raw.githubusercontent.com
gh_repos_url="https://$gh_api_host/orgs/$org/repos?type=sources&per_page=1000"
bundle-audit update
for repo in $(curl -s -H "Authorization: token $token" "$gh_repos_url" | jsawk -n 'out(this.name)'); do
@mkanchwala
mkanchwala / Kafka MultiNode - MultiBroker Cluster.md
Last active July 2, 2022 10:44
Create Kafka Multi Node, Multi Broker Cluster
require 'open-uri'
require 'rubocop'
require 'tmpdir'
url = 'https://raw.github.com/bbatsov/ruby-style-guide/master/README.md'
data = open(url).read
code_blocks = data.scan(/```ruby[\r\n]+(.*?)```/mi)
puts "Found #{code_blocks.length} code blocks"