Skip to content

Instantly share code, notes, and snippets.

View jeffbyrnes's full-sized avatar

Jeff Byrnes jeffbyrnes

View GitHub Profile
@jeffbyrnes
jeffbyrnes / lastfm_nowplaying.js
Last active February 26, 2021 00:37 — forked from trisweb/lastfm_nowplaying.css
Last.fm Now Playing Widget. Add to a <script> and <style> tag on your site, or load from files.
/* ********************************************************************** */
/* OLD SCHOOL CURRENT PLAYING STUFF */
const LFM_API = 'https://ws.audioscrobbler.com/2.0/'
// Get one at https://secure.last.fm/login?next=/api/account/create
const LFM_KEY = 'ce8a26c8204cd9994cb27278d682efe3'
const LFM_USER = 'jeffbyrnes'
async function getNowPlaying () {
const recentTracksUrl = `${LFM_API}?method=user.getrecenttracks&user=${LFM_USER}&api_key=${LFM_KEY}+&format=json&limit=1`
let httpRequest
@jeffbyrnes
jeffbyrnes / installcdo.sh
Last active September 3, 2023 15:09 — forked from mainvoid007/installcdo.sh
install cdo with eccodes, hdf5, netcdf4
#!/bin/bash
# This installs CDO with ecCodes, netCDF and HDF5 support. Uses standard locations, with binaries landing in /usr/local/bin
# Forked from https://gist.github.com/mainvoid007/e5f1c82f50eb0459a55dfc4a0953a08e
# Updated to latest versions
# The only “breaking” change for JasPer is the maintainer switched from make to cmake for its build
cdo_path=/opt/cdo-install
apt-get update && apt-get install -y wget build-essential checkinstall unzip m4 curl libcurl4-gnutls-dev
@jeffbyrnes
jeffbyrnes / common.tf
Last active August 9, 2016 19:24
Dark Sky Terraform configs
provider "aws" {
region = "us-east-1"
profile = "darksky"
}
data "aws_ami" "ubuntu_1604_hvm_ebs" {
most_recent = true
filter {
name = "name"
values = ["ubuntu/images/*/ubuntu-*-16.04*"]
@jeffbyrnes
jeffbyrnes / default.rb
Created December 17, 2014 19:00
Java help for aman
# Cookbook Name:: java_manual
# Recipe:: default
#
# If you don't need to change the owner or the mode,
# just use the recursive attribute
directory '/opt/app/workload/installed_apps' do
recursive true
end
@jeffbyrnes
jeffbyrnes / challah.md
Last active August 29, 2015 14:11 — forked from petecheslock/gist:7072317
@petecheslock’s grandma Evelyn’s challah recipe

Challah

This Makes 2 loaves — or one big ass challah.

INGREDIENTS:

  • 12 ounces water (105-115 degrees fahrenheit)
  • ¼ cup honey
  • 4 ¼ tsp. Active Dry-Yeast
  • 32 oz. Bread Flour, by weight (or approx 5-6 cups)
@jeffbyrnes
jeffbyrnes / .kitchen.yml
Created September 24, 2014 18:01
Travis CI + Test Kitchen
language: ruby
rvm:
- 1.9.3
before_install:
- openssl aes-256-cbc -K $encrypted_755628117be5_key -iv $encrypted_755628117be5_iv
-in travis_ci_ec2.pem.enc -out ~/.ssh/travis_ci_ec2.pem -d
- chmod 600 ~/.ssh/travis_ci_ec2.pem
install:
- bundle install --without vagrant
- bundle exec berks install
@jeffbyrnes
jeffbyrnes / keybase.md
Created March 7, 2014 19:47
Verification for keybase.io

Keybase proof

I hereby claim:

  • I am jeffbyrnes on github.
  • I am jeffbyrnes (https://keybase.io/jeffbyrnes) on keybase.
  • I have a public key whose fingerprint is 8BAA 9D73 D27C 97B3 BBAF 4F46 A27B EE04 8394 4AC8

To claim this, I am signing this object:

@jeffbyrnes
jeffbyrnes / config.rb
Created May 9, 2013 01:31
Capistrano recipe for Hubot deployments + Forever
# Lifted from this blog article & modified heavily:
# http://blog.nicolai86.eu/posts/2011-11-03/deploying-hubot-with-capistrano
set :application, "hubot"
set :repository, "repository"
set :scm, :git
set :ssh_options, { :forward_agent => true }
set :branch, "master"