This file contains hidden or 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
setup_env() { | |
if [[ -f ".env" ]]; then | |
for line in `cat .env`; do export $line; done | |
echo "Loaded .env file from this directory" | |
fi | |
} | |
bundled_commands=(foreman rackup rake rspec ruby shotgun thin pry) | |
_bundler-installed() { |
This file contains hidden or 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 'benchmark' | |
require 'rubygems' | |
require 'active_support/core_ext/string/inflections' # v4.1.4 | |
require 'lotus/utils/class' # v0.2.0 | |
TIMES = (ENV['TIMES'] || 1_000_000).to_i | |
class Foo | |
end |
This file contains hidden or 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
$EC2SettingsFile="C:\\Program Files\\Amazon\\Ec2ConfigService\\Settings\\BundleConfig.xml" | |
$xml = [xml](get-content $EC2SettingsFile) | |
$xmlElement = $xml.get_DocumentElement() | |
foreach ($element in $xmlElement.Property) | |
{ | |
if ($element.Name -eq "AutoSysprep") | |
{ | |
$element.Value="Yes" | |
} |
This file contains hidden or 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/sh | |
# Delete local branches whose upstream has been removed | |
# (useful for Github squashed and merged branches) | |
# WARNING: git branch -D will force delete branches! | |
git branch -vv | grep ' gone' | cut -d' ' -f1-3 | xargs -i git branch -D {} |
OlderNewer