Skip to content

Instantly share code, notes, and snippets.

View americos's full-sized avatar
💭
Coding, coding, and coding some more

Americo Savinon americos

💭
Coding, coding, and coding some more
  • Malaga, Spain
  • 22:16 (UTC +02:00)
  • X @americos
View GitHub Profile
@davydany
davydany / how-to-tmux-background-process.md
Last active May 3, 2024 14:52
Using TMUX for running processes after you log off

How to Run a Process in the Background with TMUX

There are times when you need to log off your Linux Desktop, and you want a process to run in the background. TMUX manages this very well.

For this example, let's suppose you're running a long running task like running rspecs on your project and it is 5pm, and you need to go home.

Run Your Process

@ondrejbartas
ondrejbartas / how_to_setup_cypress_with_rails_app.md
Last active April 2, 2021 01:15
How to setup Cypress on Rails apps

How to setup Cypress on Rails apps

You need to update circle.yml:

machine:
  node: # add node dependency
    version:
      7.4

environment:
@soemarko
soemarko / theme.html
Created November 26, 2011 16:18
embed github gist to tumblr
<!-- Add the following lines to theme's html code right before </head> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script>
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script>
<!--
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist">https://gist.github.com/1395926</div>
-->
@Gregg
Gregg / gist:968534
Created May 12, 2011 13:54
Code School Screencasting Framework

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
@americos
americos / selenium_webrat_cucumber.rb
Created January 11, 2011 15:48
Lines needed on features/suppor/env.rb to enable selenium automated browser testing
#Remember to get the proper gems on your gem file:
# gem 'database_cleaner', '>= 0.5.2'
# gem 'selenium-client', '>= 1.2.18'
# then: bundle install
#Step 1 for using Selenium. This goes after ActionContoller allow_resque line /Americo
Cucumber::Rails::World.use_transactional_fixtures = false
#Step 2 for using Selenium This goes at the bottom of the file /Americo
class ActiveSupport::TestCase
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
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')