start new:
tmux
start new with session name:
tmux new -s myname
| use_debug false | |
| use_bpm 130 | |
| # Our mixer! | |
| master = (ramp *range(0, 1, 0.01)) | |
| kick_volume = 1 | |
| bass_volume = 1 | |
| revbass_volume = 1 | |
| snare_volume = 0.5 | |
| hats_volume = 0.5 |
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |
This gist illustrates how you would add Google Analytics tracking into your Rails mailers. Add the tracking_interceptor.rb into your path and enable it for your mailers with:
register_interceptor TrackingInterceptor| <?php | |
| /** | |
| * Super-simple AWS CloudFront Invalidation Script | |
| * | |
| * Steps: | |
| * 1. Set your AWS access_key | |
| * 2. Set your AWS secret_key | |
| * 3. Set your CloudFront Distribution ID | |
| * 4. Define the batch of paths to invalidate | |
| * 5. Run it on the command-line with: php cf-invalidate.php |
| =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') |
| #!/bin/sh | |
| # License for any modification to the original (linked below): | |
| # ---------------------------------------------------------------------------- | |
| # "THE BEER-WARE LICENSE" (Revision 42): | |
| # Sebastiano Poggi wrote this file. As long as you retain this notice you | |
| # can do whatever you want with this stuff. If we meet some day, and you think | |
| # this stuff is worth it, you can buy me a beer in return. | |
| # ---------------------------------------------------------------------------- | |
| # | |
| # Based upon http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html |
| function hammer() { | |
| git checkout master | |
| git pull origin master | |
| git submodule update --init --recursive | |
| pip install -r requirements/requirements.txt -r requirements/dev-requirements.txt -r ⤷ requirements/prod-requirements.txt | |
| find . -name '*.pyc' -delete | |
| ./manage.py syncdb --migrate | |
| } |
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <color name="red_50">#fde0dc</color> | |
| <color name="red_100">#f9bdbb</color> | |
| <color name="red_200">#f69988</color> | |
| <color name="red_300">#f36c60</color> | |
| <color name="red_400">#e84e40</color> | |
| <color name="red_500">#e51c23</color> | |
| <color name="red_600">#dd191d</color> | |
| <color name="red_700">#d01716</color> |
| nnoremap yy "+yy | |
| vnoremap y "+y | |
| nnoremap p "+p | |
| vnoremap p "+p | |
| nnoremap P "+P | |
| vnoremap P "+P |