Skip to content

Instantly share code, notes, and snippets.

View nicksterious's full-sized avatar

CheckThisOut nicksterious

View GitHub Profile
@nicksterious
nicksterious / feature_macros.rb
Created October 1, 2021 18:51 — forked from skinofstars/feature_macros.rb
RSpec + Capybara + Devise + Factory Girl: login macro
# support/feature_macros.rb
module FeaturesMacros
def signin_admin
DatabaseCleaner.clean
@user ||= FactoryGirl.create(:user)
visit '/sign_in'
within("#new_user") do
fill_in 'user[email]', :with => user.email
@nicksterious
nicksterious / gist:c4a41ee8415512099edbe54a48ea1c8e
Created June 22, 2021 22:58
Github actions runner on Linode
#!/bin/bash
# <UDF name="REPO_URL" label="Github repo URL" default="" example="https://github.com/YOUR_USERNAME/REPO_NAME" />
# <UDF name="TOKEN" label="Github repo token" default="" example="Shown to you when you start adding your runner (under repo / settings / actions / runners)" />
yum -y install zip unzip wget curl
cd /root/
mkdir actions-runner && cd actions-runner