Skip to content

Instantly share code, notes, and snippets.

View 5minpause's full-sized avatar

Holger Frohloff 5minpause

View GitHub Profile
@5minpause
5minpause / shell history
Created August 19, 2012 10:19 — forked from steveklabnik/log.txt
A fun shell script from #euruku
$ history | awk {'print $2, $3, $4'} | sort | uniq -c | sort -k1 -rn | head -n 30
577 gcoma
551 g st
533 g push
439 g add .
282 rails s
249 cap deploy
228 mvim .
167 g aa
143 g pull
@5minpause
5minpause / gemfile
Created August 20, 2012 14:09 — forked from janlelis/gemfile
Displays gem urls and summaries found in a Gemfile
#!/usr/bin/env ruby
# USAGE
# gemfile [--bundle] [--details] [--fetch] [--sorted] [--commentate]
# DESCRIPTION
# Displays gem urls and summaries found in a Gemfile.
# cd into a directory with a Gemfile and run `gemfile`
# PREREQUISITES
# gem install bundler paint
# FLAGS
@5minpause
5minpause / rspec-syntax-cheat-sheet.rb
Created March 9, 2016 11:17 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
add_index :attachments, :parent_id
add_index :attachments, :asset_id
add_index :domain_names, :user_id
add_index :domain_names, :event_id
add_index :event_memberships, :user_id
add_index :event_memberships, :event_id
remove_index :attachments, :parent_id
remove_index :attachments, :asset_id
remove_index:domain_names, :user_id
remove_index:domain_names, :event_id
chflags nohidden ~/Library
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
defaults write com.apple.dock autohide -bool true
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock launchanim -bool false
defaults write com.apple.dock magnification -bool false
defaults write com.apple.dock mru-spaces -bool false
defaults write com.apple.dock show-process-indicators -bool true
defaults write com.apple.dock size-immutable -bool true
@5minpause
5minpause / de.yml
Last active November 3, 2022 08:21 — forked from anny-goerl/de.yml
German: Formal Sie for Devise 4.6.2
de:
activerecord:
attributes:
user:
confirmation_sent_at: Bestätigung gesendet am
confirmation_token: Bestätigungs-Token
confirmed_at: Bestätigt am
created_at: Erstellt am
current_password: Bisheriges Passwort
current_sign_in_at: Aktuelle Anmeldung vom
@5minpause
5minpause / capybara cheat sheet
Created May 2, 2022 10:50 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=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')