I set up my static site to build with GitHub Actions and then deploy to Deno Deploy.
The workflow file is here:
https://github.com/croaky/blog/blob/main/.github/workflows/deno.yml
This is working great! The site is live at:
#!/usr/bin/env ruby | |
# createdb db | |
# chmod +x dataclips.rb | |
# DATABASE_URL=postgres:///db ./dataclips.rb | |
require "bundler/inline" | |
require "csv" | |
gemfile do |
I set up my static site to build with GitHub Actions and then deploy to Deno Deploy.
The workflow file is here:
https://github.com/croaky/blog/blob/main/.github/workflows/deno.yml
This is working great! The site is live at:
A few lines of Ruby with pg
driver
is a simple alternative to a job queuing library.
Job queues are defined as database tables
and workers are defined in one Ruby file.
queuea: bundle exec ruby queue/a.rb
queueb: bundle exec ruby queue/b.rb
#!/bin/bash | |
# Make a circular favicon from your GitHub avatar | |
# | |
# ./favicon.sh username | |
set -eu | |
if ! command -v convert >/dev/null; then | |
echo "error: ImageMagick isn't installed." >&2 |
import * as React from 'react' | |
// routing, etc. | |
import { Reset } from '~/ui/shared/Reset' | |
export class App extends React.Component { | |
public render() { | |
return ( | |
<div> | |
<title>Dashboard</title> |
I hereby claim:
To claim this, I am signing this object:
Read the script, then run:
https://gist.githubusercontent.com/croaky/51e896eb837fbdc6d1786893d215e120/raw/87beeec2e9de349d6d6af93fd9c1cd253cecfc2e/ubuntu
class User | |
include Clearance::User | |
include Mongoid::Document | |
field :confirmation_token, type: String | |
field :email, type: String | |
field :password, type: String | |
field :remember_token, type: String | |
end |
<?xml version="1.0" encoding="UTF-8"?> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<url> | |
<loc>http://robots.thoughtbot.com</loc> | |
<priority>1.0</priority> | |
<changefreq>daily</changefreq> | |
</url> | |
<% sitemap_articles.each do |page| %> | |
<url> | |
<loc>http://robots.thoughtbot.com/<%= page.destination_path.gsub("/index.html", "")%></loc> |
--- | |
rvm: | |
- 2.0.0 | |
before_install: | |
- "echo 'gem: --no-document' > ~/.gemrc" | |
- "echo '--colour' > ~/.rspec" | |
- gem install fog | |
- "./script/travis/bundle_install.sh" | |
- export DISPLAY=:99.0 |