Skip to content

Instantly share code, notes, and snippets.

View tuomasj's full-sized avatar

Tuomas Jomppanen tuomasj

View GitHub Profile
@tuomasj
tuomasj / nhl_games_tonight.rb
Created September 21, 2018 20:28
Fetch NHL game scores and post the results on a Telegram channel
require 'date'
require "open-uri"
require 'json'
# This is just one big file, because it's easy to copy&paste (a.k.a. deploy)
# this script on a cheap VPN and set up a cronjob to run this once per day.
#
#
# Example output with Telegram markdown formatting
# shows the winning team and players who have goals or assists
@tuomasj
tuomasj / ruby_on_rails.yml
Created May 6, 2022 09:15
Github Actions for CI -- Ruby on Rails, PostgreSQL, Redis, Elasticsearch in May 2022
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres
ports: ['5432:5432']
env: