Skip to content

Instantly share code, notes, and snippets.

@chris-pilcher
chris-pilcher / TFSCommandLineMac.md
Last active August 17, 2023 09:52
Using TFS Online TFVC with command-line TFS utility on Mac

Install Command-Line TFS using HomeBrew on a Mac

Install Team Explorer Everywhere Command Line Client

  • Press Command+Space and type Terminal and press enter/return key.
  • Install HomeBrew by running command in Terminal app
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  • Run:
@mlocher
mlocher / codeship-to-shopify-theme-deploy
Last active June 21, 2018 16:25 — forked from hughker/codeship-to-shopify-theme-deploy.sh
Deploy a Shopify theme from Codeship
gem install shopify_theme
theme configure SHOPIFY_API_KEY SHOPIFY_API_PASSWORD SHOPIFY_STORE_URL SHOPIFY_THEME_ID
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $COMMIT_ID | xargs theme upload
git diff-tree -r --no-commit-id --name-only --diff-filter=D $COMMIT_ID | xargs theme remove
@ewherrmann
ewherrmann / resque.rake
Last active July 2, 2020 00:36
Collection of Resque related custom rake tasks from around the web
require 'resque/tasks'
namespace :resque do
def del(key)
Resque.redis.keys(key).each { |k| Resque.redis.del(k) }
end
desc "Resque setup according to installation guide"
task :setup => :environment
@TSMMark
TSMMark / s3.rb
Last active March 4, 2022 20:17
Process a remote CSV with SmarterCSV (also example with Paperclip and Amazon S3 AWS)
# this is the code I used to determine the csv_path to use when using Paperclip with Amazon S3 AWS
# necessary because my development environment doesn't upload to S3
# get an object that has_attachment with Paperclip
object = ModelWithPaperclip.last
# use url if no file exists at path
csv_path = File.exists?(object.csv.path) ? object.csv.path : object.csv.url
# this should probably be implemented as a model method
@soupmatt
soupmatt / Gemfile
Created January 16, 2012 21:50
BUNDLE_WITHOUT Heroku Cedar fix
gem 'rails'
# hack to make heroku cedar not install special groups
def hg(g)
(ENV['HOME'].gsub('/','') == 'app' ? 'test' : g)
end
group hg(:cucumber) do
gem 'cucumber-rails'
gem 'capybara'