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
includeTargets << grailsScript("Init") << grailsScript("War") | |
target(deployWar: "Deploy the project WAR.") { | |
depends(war) | |
println "Starting WAR deployment ..." | |
def warFile = new File(warName) | |
def warFileName = warFile.getName() | |
def webappName = "app" |
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
[alias] | |
st = status | |
stat = status | |
ci = commit | |
co = checkout | |
br = branch | |
ls = ls-files | |
undo = reset --soft HEAD^ | |
merge = merge --no-commit | |
cdiff = diff --cached |
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 | |
# Validate your project's gems from your gem cache against rightscale's mirror. | |
gem query --local --details --all | \ | |
sed -e ':a;N;$!ba' -e 's/\n/#/g' | \ | |
sed -e 's/##/\n/g' | \ | |
sed -ne '/^[^[:space:]]\+ ([^)]\+)#/p' | \ | |
while read line; do | |
name="${line%% *}" |
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 | |
case "${1}" in | |
disable) | |
# Disable chef-client cron job | |
knife ssh "${2}" 'sudo bash -c "crontab -l | sed -e /^[^#].*\\\\/usr\\\\/bin\\\\/chef-client/s/^/#/ | crontab -"' | |
;; | |
enable) | |
# Enable chef-client cron job | |
knife ssh "${2}" 'sudo bash -c "crontab -l | sed -e /^#.*\\\\/usr\\\\/bin\\\\/chef-client/s/^#// | crontab -"' |
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
i = Invite.find('54456520a263be3d05000f07') and (i.user_ids - i.invited_user_ids).each { |u| (puts u if Invite.invite_user(i.id, u, { :is_public => i.inviteable.public? })) if User.find(u).contactable_by?(i.company) } |
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
jobs = {} | |
Sidekiq::Queue.new('boule').each do |j| | |
if jobs.has_key?("#{j.klass}.#{j.args[0]}(#{j.args[1..-1]})") | |
j.delete and puts "Deleted jid #{j.jid} duplicate of #{jobs["#{j.klass}.#{j.args[0]}(#{j.args[1..-1]})"]}" | |
else | |
jobs["#{j.klass}.#{j.args[0]}(#{j.args[1..-1]})"] = j.jid | |
end | |
end |
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
#!/usr/bin/env ruby | |
require 'chef' | |
require 'fileutils' | |
app_name = ARGV[0] | |
run_list = ARGV[1] | |
if ENV.has_key?('CHEF_ENVIRONMENTS') && (!ENV.has_key?('TEST_GROUP') || ENV['TEST_GROUP'] == '1') | |
environments = ENV['CHEF_ENVIRONMENTS'].split(/\s+/) |
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
#!/usr/bin/env ruby | |
require 'chef' | |
require 'fileutils' | |
app_name = ARGV[0] | |
run_list = ARGV[1] | |
if ENV.has_key?('CHEF_ENVIRONMENTS') && (!ENV.has_key?('TEST_GROUP') || ENV['TEST_GROUP'] == '1') | |
environments = ENV['CHEF_ENVIRONMENTS'].split(/\s+/) |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
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
procedure_name,subject_name,file,start_date,end_date,subject,experiment,group,box,start_time,end_time,msn,a,b,e,f,g,h,i,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,c,d,j,k | |
PROBE_24H,1A-1 L,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 1 1-4pm\4--Probes\1A-1_L_PROBE_24H_040520,04/05/20,04/05/20,0,0,0,1,12:53:21,13:03:09,MOV_PROBE,22.0,60.0,22.0,0.0,15.0,13.62,60.0,5.0,5.0,493.0,5.0,0.0,0.0,0.0,0.0,493.0,5.0,0.0,0.0,0.0,0.0,0.0,"[87.7, 88.1, 88.4, 88.9, 89.2, 89.7, 89.9, 93.2, 93.6, 94.3, 95.2, 95.8, 99.2, 99.7, 100.2, 100.4, 100.6, 101.0, 294.2, 360.7, 362.7, 364.4]","[19.2, 19.8, 20.3, 20.6, 21.3, 21.6, 22.1, 22.5, 22.7, 23.4, 23.6, 24.2, 24.7, 25.2, 30.8, 31.4, 32.0, 32.5, 32.7, 33.6, 34.0, 34.6, 36.8, 37.1, 37.7, 38.0, 38.4, 38.9, 40.5, 40.8, 41.3, 41.6, 42.5, 46.8, 47.7, 107.0, 108.5, 109.5, 112.1, 112.8, 113.1, 113.4, 113.7, 132.9, 223.7, 224.3, 240.7, 243.5, 304.6, 305.2, 305.5, 305.7, 305.9, 308.8, 309.7, 309.9, 422.4, 424.6, 424.8, 425.2]","[58.0, 154.0, 250.0, 346.0, 442.0, 0.0]","[10.0, 106. |
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 38 columns, instead of 3 in line 3.
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
procedure_name,subject_name,file,start_date,end_date,subject,experiment,group,box,start_time,end_time,msn,a,b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,c | |
EXT5,1B-2 R,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 1 1-4pm\3--RF EXT Sessions\1B-2_R_EXT5_031420,03/14/20,03/14/20,0,0,0,2,13:08:32,13:10:41,MOV_EXT,0.0,0.0,0.0,15.0,0.0,9.0,8.12,0.0,6.5,0.0,15.0,20.0,53.0,0.0,0.0,0.0,0.0,0.0,53.9,0.0,0.0,0.0,0.0,0.0,0.0,"[6.5, 10.4, 12.6, 14.2, 14.9, 17.5, 18.3, 20.5, 23.1, 25.2, 26.7, 32.5, 35.0, 38.5, 50.9]" | |
EXT5,2A-2 L,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 1 1-4pm\3--RF EXT Sessions\2A-2_L_EXT5_031520,03/15/20,03/15/20,0,0,0,1,13:55:19,14:01:40,MOV_EXT,0.0,0.0,0.0,15.0,0.0,10.0,5.16,0.0,235.1,0.0,15.0,20.0,311.0,0.0,0.0,0.0,0.0,0.0,311.4,0.0,0.0,0.0,0.0,0.0,0.0,"[235.1, 238.9, 239.4, 240.9, 242.2, 244.2, 247.0, 249.7, 250.7, 252.7, 255.2, 256.1, 274.6, 275.7, 308.4]" | |
EXT5,1A-2 N,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 1 1-4pm\3- |
OlderNewer