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
########################################################## | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2015 Samuel Ortiz Reina (@iamsortiz) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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 | |
################################################################################ | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2015 Samuel Ortiz Reina (@iamsortiz) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal |
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
/** | |
* README.md | |
* | |
* # Browser console, bulk delayed download from CSS selector and file extensions | |
* | |
* See below "var config" jsdoc for config details. | |
* | |
* All functionallity encapsulated in "function main()" | |
* | |
* main() is self executable (last line of the code). |
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
################################################################################ | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2016 Samuel Ortiz Reina (@iamsortiz) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
################################################################################ | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2016 Samuel Ortiz Reina (@iamsortiz) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
//////////////////////////////////////////////////////////////////////////////// | |
// | |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2016 Samuel Ortiz Reina (@iamsortiz) | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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 | |
# Given a folder structure | |
# | |
# * ./ | |
# * ./raw | |
# | |
# With the draw.ioong exports at raw | |
# | |
# It will leave all your JIRA-embed-ready images at ./ |
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
# Given you are in a project repo list at bitbucket (https://bitbucket.org/account/user/????/projects/??? | |
# Open the webbrowser console | |
# Paste code | |
# Ctrl+C on prompt | |
# Paste on a directory where you want all the clones + pulls | |
# Attribution for javascript clipboard: http://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript | |
var commands = ""; |
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
IMAGE=tomcat | |
IMAGE_TAG=8-jre8 | |
CONTAINER_NAME='tomcat' | |
CONTAINER_APPS_FOLDER='/usr/local/tomcat/webapps/' | |
function docker-app_container-run() { | |
echo $PWD | |
docker run -d -v $PWD/target:$CONTAINER_APPS_FOLDER --name $CONTAINER_NAME -p 8080:8080 $IMAGE:$IMAGE_TAG | |
} | |
alias docker-app_container-start="docker start $CONTAINER_NAME" |
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 | |
# Usage: Assuming a vagrant based kubernetes (as in https://coreos.com/kubernetes/docs/latest/kubernetes-on-vagrant-single.html), run this script in the same folder of the Vagrantfile (where you would normally do "vagrant up") | |
# * Then insert the password (by default: kubernetes) | |
# * Browse localhost:9090 | |
USERNAME='kubernetes' | |
PASSWORD='kubernetes' | |
function main() { |
OlderNewer