Skip to content

Instantly share code, notes, and snippets.

<h1>New Post</h1>
<% form('/posts') do |f| %>
<%= f.text_field :title %>
<%= f.text_area :body %>
<%= f.submit 'Create' %>
<% end %>
# Relevant bits of Gemfile...
group :development do
gem 'guard'
gem 'listen', :github => 'guard/listen'
gem 'celluloid-io'
end
# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat shows number of connections from your computer and application/PID making it. Kill spyware!
#
# -- Pengo
#!/bin/bash
# Git status in git projects....
# in your .bashrc file:
# if [ -f ~/.prompt ]; then
# . ~/.prompt
# fi
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
@thecatwasnot
thecatwasnot / cucumber
Created October 6, 2011 04:12 — forked from onthespotqa/cucumber
cucumber examples
feature file:
Feature: Cucumber Question
Scenario Outline: Google Search for <search term>
Given I am on Google Search Home Page
When I search for <search term>
Then I should find <search term>
Examples:
|search term|
|Facebook|
@thecatwasnot
thecatwasnot / cucumber
Created October 6, 2011 23:11 — forked from onthespotqa/cucumber
cucumber examples
Feature: Cucumber Question
Scenario Outline: Google Search for <search term>
Given I am on Google Search Home Page
When I search for "<Search Term>"
Then I should find "<Search Term>"
Examples:
| Search Term |
| Facebook |
| Delicious |
@thecatwasnot
thecatwasnot / login.rb
Created October 20, 2011 20:33 — forked from onthespotqa/gist:1302270
login
it "should login to insight" do
$users.each do |user|
Bookmarks.new do |c|
c.home_page.company_id.set("resonancerecords")
c.home_page.user_id.set(user)
c.home_page.password.set($password)
c.home_page.login_button.click
if user == "qasupport"
c.home_page.add_app_button.should be_visible

Keybase proof

I hereby claim:

  • I am thecatwasnot on github.
  • I am thecatwasnot (https://keybase.io/thecatwasnot) on keybase.
  • I have a public key ASDv-aqcbjq_ncxYjOI9M52YjAl-NJ00ZSnJ43bYzxs-OQo

To claim this, I am signing this object:

@thecatwasnot
thecatwasnot / .conkyrc-todo
Created October 17, 2010 23:38
GTD w/Linux notify-send/conky/remind/task
# Create own window instead of using desktop (required in nautilus)
# own_window yes
# own_window_type override
background no
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
@thecatwasnot
thecatwasnot / arch_linux_installation.md
Last active November 30, 2019 03:09 — forked from OdinsPlasmaRifle/arch_linux_installation.md
LVM on LUKS Arch installation with systemd-boot

Arch Linux Installation

LVM on LUKS Arch installation with systemd-boot

USB

Download Arch Linux

Find out the name of your USB drive with lsblk. Make sure that it is not mounted.