Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Byrnes jeffbyrnes

View GitHub Profile
@jeffbyrnes
jeffbyrnes / lastfm_nowplaying.js
Last active Feb 26, 2021 — 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.
View lastfm_nowplaying.js
/* ********************************************************************** */
/* 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 Nov 4, 2021 — forked from mainvoid007/installcdo.sh
install cdo with eccodes, hdf5, netcdf4
View installcdo.sh
#!/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 Aug 9, 2016
Dark Sky Terraform configs
View common.tf
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 Dec 17, 2014
Java help for aman
View default.rb
# 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 Aug 29, 2015 — forked from petecheslock/gist:7072317
@petecheslock’s grandma Evelyn’s challah recipe
View challah.md

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 Sep 24, 2014
Travis CI + Test Kitchen
View .kitchen.yml
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 Mar 7, 2014
Verification for keybase.io
View keybase.md

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
Capistrano recipe for Hubot deployments + Forever
View config.rb
# 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"