We'll assume an OS X Mavericks (10.9) box here.
You'll need:
- Vagrant
- Vagrant's VMware Fusion provider
# this forces dpkg not to call sync() after package extraction and speeds up install | |
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup | |
# we don't need and apt cache in a container | |
RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
A micro-gem DSL for compound conditionals.
Allowable lets you decompose large/long conditional chains into readable, testable, and inspectable segments with Ruby blocks.
class Entities.Tasks extends Backbone.Collection | |
model: Entities.Task | |
url: -> "/project/#{@project_id}/tasks.json" | |
constructor: (options) -> | |
@project_id = options.project_id | |
super | |
project_tasks = new Entities.Tasks {project_id:project.id} |
Dashing widget to display a Jenkins build status and build progress
The widget is based on the meter-widget which is default in the Dashing installation
The widget can also see the progress of a "pre-build", i.e if you have a job triggering the actual build you want to define, you can configure this job in the jenkins_build.rb as a prebuild.
For more information, please see Coding Like a tosser
#!/usr/bin/env ruby | |
# ## Introduction | |
# | |
# Auto-labeling Git commits with issues tracker IDs found in the current | |
# branch name. This script is meant to be used as a Git commit-msg hook. It | |
# expects a single argument, the location of the temporary file with the commit | |
# message the user entered, and it outputs that same message with maybe some | |
# extra labels added to it. | |
# | |
# ## Example |
Below are the actual files we use in one of our latest production applications at Agora Games to achieve zero downtime deploys with unicorn. You've probably already read the GitHub blog post on Unicorn and would like to try zero downtime deploys for your application. I hope these files and notes help. I am happy to update these files or these notes if there are comments/questions. YMMV (of course).
Other application notes:
Salient points for each file:
hcl
https://github.com/zenhob/hclcd MyProject
curl -L https://gist.github.com/raw/3760898/commit-msg.sh > .git/hooks/commit-msg
chmod +x .git/hooks/commit-msg
git config hooks.harvesttask "ProjectID TaskID"
git config hooks.harvesttask "2551232 1441578"
# | |
# Incrental rsync backups using rsync's --link-dest | |
# | |
# This requires the 'develop' branch of the backup gem | |
# | |
require 'net/ssh' | |
Backup::Model.new(:test, 'Description for test') do |