- Forecasting for Cloud computing on-demand resources based on pattern matching
- Auto-scaling Techniques for Elastic Applications in Cloud Environments
- Auto-Scaling Model for Cloud Computing System
- Rebalancing in a Multi-Cloud Environment
- Infrastructure Outsourcing in Multi-Cloud Environment
- Workload Classification for Efficient Auto-Scaling of Cloud Resources
- Dynamically Scaling Applications in the Cloud
- [Optimal Autoscaling in the IaaS Cloud](http://www.cse.yorku.ca/~hamoun/p
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
# extract whats in front of extension in bash script | |
# name = "jon.coffee" | |
# echo "${name %%coffee}" | |
# http://tldp.org/LDP/abs/html/string-manipulation.html | |
# using the % / # string modifiers | |
# name = JonMorehouse | |
# remove up to the element | |
# remove element and print after |
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
fu! GenerateUUID() | |
python << EOF | |
import uuid | |
import vim | |
# output a uuid to the vim variable for insertion below | |
vim.command("let generatedUUID = \"%s\"" % str(uuid.uuid4())) | |
EOF |
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
fu! GoTestPackage() | |
let command = "go test ." | |
call CleanShell(command) | |
endfunction | |
fu! GoTestFile() | |
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
package main | |
import ( | |
"os" | |
) | |
func main() { | |
path := "test.txt" |
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
package main | |
import ( | |
"os" | |
"archive/tar" | |
"log" | |
"io" | |
"compress/gzip" | |
) |
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/local/bin/bash | |
# create an ec2-instance and grab the instance id | |
instance_id=$(ec2-run-instances -g development -t t1.micro -k master $EC2_UBUNTU_AMI | grep INSTANCE | awk '{ print $2 }') | |
# create a tag for this instance as needed | |
ec2-create-tags -t Name=development $instance_id | |
# grab instance_id by tag | |
instance_id=$(ec2-describe-instances --filter "tag:Name=development" | grep INSTANCE | awk '{ print $2 }') |
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/local/bin/bash | |
alias_path="$1" | |
if [ $# -gt 1 ] | |
then | |
# if _ or "" is passed in, then we want to just pass in a blank | |
if [[ $2 == "_" || $2 == "" ]] | |
then | |
alias_prefix="" | |
else | |
alias_prefix="$2-" |
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
# create a new security group | |
ec2-add-group -d "Group description" $groupName | |
# now delete a group | |
ec2-delete-group $groupName | |
# authorize rules for a group | |
ec2-authorize $groupName | |
# authorize a group to expose all tcp ports |
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
[Unit] | |
Description=docker daemon | |
[Service] | |
PermissionsStartOnly=true | |
Type=forking | |
ExecStart=/usr/bin/docker -H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock -d | |
OlderNewer