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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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/perl | |
# This is a REPL loop for Perl. | |
# If you want to be able to navigate on the prompt with arrow keys | |
# and have up/down for history, then: | |
# For OSX, install: Term::EditLine, Term::ReadLine::EditLine | |
# For Linux, install Term::ReadLine::Gnu | |
use strict; |
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
# Source this file in your .profile/.bashrc in order to get tab autocomplete | |
# on ssh hosts as listed in your ~/.ssh/config file. | |
_ssh_autocomplete() { | |
local SSH_CONFIG_FILE="$HOME/.ssh/config" | |
local cur=${COMP_WORDS[COMP_CWORD]} | |
if [[ "$COMP_CWORD" -eq "1" && -f $SSH_CONFIG_FILE ]]; then | |
local hosts=`cat $SSH_CONFIG_FILE | grep ^Host | awk '{ $1=""; print $0 }' | tr '\n' ' '` | |
COMPREPLY=( $(compgen -W "$hosts" -- $cur) ) | |
else |