# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Desktop notification for OpenCode Agent | |
| * for Linux and MacOs | |
| * | |
| * Fox Linux, you will need notify-send and spd-say | |
| * notify-send utility is available on all the major Linux distributions as part of the libnotify library | |
| * spd-say is a command-line client for Speech Dispatcher that converts text to speech. | |
| * | |
| * For MacOs, you will need ´osascript´ and ´say´ | |
| * osacript: it is a command-line invoked application that can run AppleScripts and JavaScript for Automation scripts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trigger: | |
| - master | |
| resources: | |
| - repo: self | |
| variables: | |
| azureSubscription: '<azure-subscription>' | |
| dockerRegistryServiceConnection: '<service-connection>' | |
| imageRepository: '<repository-name>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # syntax = docker/dockerfile:1 | |
| # This Dockerfile is designed for production, not development. Use with Kamal or build'n'run by hand: | |
| # docker build -t my-app . | |
| # docker run -d -p 80:80 -p 443:443 --name my-app -e RAILS_MASTER_KEY=<value from config/master.key> my-app | |
| # Make sure RUBY_VERSION matches the Ruby version in .ruby-version | |
| ARG RUBY_VERSION=3.3.2 | |
| FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """A simple tool to document how to control AWS resources. | |
| AWS AUTHENTICATION | |
| ------------------- | |
| In order to run any of the code below, you need a profile with AWS credentials | |
| set up on your computer. It's very easy to do this. Google how to configure | |
| your profile with boto3, or visit the docs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if Rails.env.development? | |
| FileUtils.mkdir_p(Rails.root.join('config', 'certs')) | |
| key_path = Rails.root.join('config', 'certs', 'development.key') | |
| crt_path = Rails.root.join('config', 'certs', 'development.crt') | |
| unless File.exist?(key_path) && File.exist?(crt_path) | |
| def cert_domain | |
| 'localhost' # Setting[:cookie_domain] || 'localhost' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM dev as test | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \ | |
| wget \ | |
| unzip \ | |
| apt-utils \ | |
| libasound2 \ | |
| libatk1.0-0 \ |
$ uname -r
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rails_helper' | |
| RSpec.describe TodosController, :type => :controller do | |
| describe "GET #index" do | |
| #describe "POST #create" do | |
| #describe "GET #show" do | |
| #describe "PATCH #update" do (or PUT #update) | |
| #describe "DELETE #destroy" do | |
| #describe "GET #new" do |
NewerOlder