Skip to content

Instantly share code, notes, and snippets.


James Dennes jdennes

View GitHub Profile
View animation-test.html
<!DOCTYPE html>
<meta charset="UTF-8">
<title>animation test</title>
body {
text-align: center;
font-family: 'Courier New', Courier, monospace;
View benchmarking-kubeclient.rb
auth_options = {
bearer_token_file: "/var/run/secrets/"
ssl_options = {
ca_file: "/var/run/secrets/"
control_client = \
jdennes /
Last active January 21, 2021 20:56
Easily get Rails controller and action from a route

Easily get Rails controller and action from a route:

irb(main):001:0> Rails.application.routes.recognize_path "/github/github/issues", method: "GET"
=> {:controller=>"issues", :action=>"index", :user_id=>"github", :repository=>"github"}
jdennes /
Last active December 9, 2022 17:47
Shell script to get Site Admin reports on GitHub Enterprise
# REPORT_URL should look something like https://my.ghe/stafftools/reports/all_users.csv
# See:
set -e
for i in $(seq 1 5); do
echo "Trying to get report..."
result=$(curl -s -L -u $USERNAME:$PASSWORD $REPORT_URL)
jdennes /
Last active November 16, 2022 01:59
Convert a directory of .ogg files to .mp3 files
  • You need ffmpeg installed. If you have Homebrew installed on a Mac, you can do this by running:

    brew install ffmpeg
  • Put in directory containing .ogg files.

  • Ensure it's executable:

jdennes / buienradar-sparkline
Last active April 29, 2016 16:56
Example of how to pipe output from `script/scrape` provided by into `spark`
View buienradar-sparkline
$ script/scrape enschede
===> Scraping
Projected rainfall for the next two hours in enschede:
18:40 - 0.05mm/hour (light)
18:45 - 0.05mm/hour (light)
18:50 - 0.09mm/hour (light)
18:55 - 0.11mm/hour (light)
19:00 - 0.13mm/hour (light)
jdennes /
Last active February 17, 2022 19:20
Documents how to scrape (until their website changes)
View scraper details

A request to produces a chart that shows the projected rainfall for the next two hours in Rotterdam:


That page includes the following JavaScript that represents the data used to build the chart:

<script type="text/javascript">
jdennes /
Created August 14, 2014 14:59
Keybase proof

Keybase proof

I hereby claim:

  • I am jdennes on github.
  • I am jdennes ( on keybase.
  • I have a public key whose fingerprint is 9886 E863 A016 9D16 D60D 5B27 0078 B621 0DD0 ABB1

To claim this, I am signing this object:

jdennes / Gemfile
Last active September 22, 2022 16:31
Export a list of members from a GitHub organisation
View Gemfile
source ""
gem "octokit"
jdennes /
Last active December 26, 2015 20:58
Demonstrate repository url by ID included in the pagination details in the Link header.