This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple extension of Net::FTP to allow uploading a stream instead of a file | |
# This allows for transferring of files between servers without downloading entire file first | |
# The code below is a modification of the storbinary method in Net::FTP | |
# https://github.com/ruby/ruby/blob/trunk/lib/net/ftp.rb#L686 | |
# It goes without saying that the code may break at anytime and may or may not work with other | |
# features of Net::FTP such as using Resume. | |
require 'net/ftp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Run JSHint validation before commit | |
# Path to custom jshint config file if you have one (relative to root directory of repository) | |
jshint_config_file="" | |
# Get all changed js files (minus any minfied files) | |
files=$(git diff --cached --name-only --diff-filter=ACMR -- *.js **/*.js | grep -v 'min') | |
pass=true; |