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
# Usage from POSIX shell: . ./expAws.sh | |
PROFILES=$(awk configure list-profiles) | |
select PROFILE in $PROFILES; do | |
export AWS_ACCESS_KEY_ID="$(aws configure get aws_access_key_id --profile $PROFILE)" | |
export AWS_SECRET_ACCESS_KEY="$(aws configure get aws_secret_access_key --profile $PROFILE)" | |
export AWS_DEFAULT_REGION="$(aws configure get region --profile $PROFILE)" | |
export AWS_SESSION_TOKEN="$(aws configure get aws_session_token --profile $PROFILE)" | |
export AWS_SECURITY_TOKEN="$(aws configure get aws_security_token --profile $PROFILE)" |
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
me@win10desktop MINGW64 ~/Vagrant/centos7 | |
$ vagrant.exe scp /c/Users/me/Downloads/file.zip :/tmp/ | |
The machine with the name 'C' was not found configured for | |
this Vagrant environment. |
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
# Bash history settings | |
export HISTCONTROL=ignoredups:erasedups # no duplicate entries | |
export HISTSIZE=100000 # big big history | |
export HISTFILESIZE=100000 # big big history | |
shopt -s histappend # append to history, don't overwrite it | |
# Save and reload the history after each command finishes | |
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" | |
# ssh host autocomp |
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
startup_message off | |
term screen-256color | |
setenv LC_CTYPE en_US.UTF-8 | |
defutf8 on | |
setenv DISPLAY ':0' | |
nonblock on | |
vbell off | |
defscrollback 5000 | |
backtick 1 60 60 $HOME/Scripts/batstat |
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/ruby | |
# Example of how to unblock EventMachine's deffered callbacks | |
# Based on http://stackoverflow.com/a/11778588/632827 | |
# For output example see: http://goo.gl/d6E9E0 | |
require 'eventmachine' | |
iam = [ 'blocking', 'non-blocking' ] |
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
[2015-03-19 10:26:00 -0500] I'm a blocking worker, I'll be done in 2 secs | |
[2015-03-19 10:26:01 -0500] . | |
[2015-03-19 10:26:02 -0500] . | |
[2015-03-19 10:26:02 -0500] worker done! | |
[2015-03-19 10:26:02 -0500] I'm a blocking callback, I'll be done in 4 secs | |
[2015-03-19 10:26:06 -0500] callback done! | |
[2015-03-19 10:26:06 -0500] . | |
[2015-03-19 10:26:07 -0500] I'm a blocking worker, I'll be done in 2 secs | |
[2015-03-19 10:26:07 -0500] . | |
[2015-03-19 10:26:08 -0500] . |