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
# Clean, simple, compatible and meaningful. | |
# Tested on Linux, Unix and Windows under ANSI colors. | |
# It is recommended to use with a dark background. | |
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
# | |
# Mar 2013 Yad Smood | |
# VCS | |
YS_VCS_PROMPT_PREFIX1=" %{$fg[white]%}on%{$reset_color%} " | |
YS_VCS_PROMPT_PREFIX2=":%{$fg[cyan]%}" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
[ERROR: alfred.workflow.input.scriptfilter] Code 255: Warning: require(/Users/tamano/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.92ED01A8-58DA-45B9-AF7E-2152B71209F8/scripts/config/routes.php): failed to open stream: No such file or directory in /Users/tamano/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.92ED01A8-58DA-45B9-AF7E-2152B71209F8/scripts/vendor/composer/autoload_real.php on line 54 | |
Fatal error: require(): Failed opening required '/Users/tamano/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.92ED01A8-58DA-45B9-AF7E-2152B71209F8/scripts/config/routes.php' (include_path='.:') in /Users/tamano/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.92ED01A8-58DA-45B9-AF7E-2152B71209F8/scripts/vendor/composer/autoload_real.php on line 54 | |
[ERROR: alfred.workflow.input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDoma |
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
[vagrant@localhost ~]$ cat /etc/redhat-release | |
CentOS release 6.6 (Final) | |
[vagrant@localhost ~]$ wget https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chefdk-0.9.0-1.el6.x86_64.rpm --no-check-certificate | |
[vagrant@localhost ~]$ sudo rpm --install chefdk-0.9.0-1.el6.x86_64.rpm | |
[vagrant@localhost ~]$ sudo chef gem install knife-zero --no-document | |
[root@localhost ~]# ssh-keygen -N '' | |
[root@localhost ~]# cp ~/.ssh/{id_rsa.pub,authorized_keys} |
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
###################################### Precondition | |
[vagrant@localhost ~]$ cat /etc/redhat-release | |
CentOS release 6.6 (Final) | |
[vagrant@localhost ~]$ chef -v | |
Chef Development Kit Version: 0.9.0 | |
chef-client version: 12.5.1 | |
berks version: 4.0.1 | |
kitchen version: 1.4.2 |
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
require 'socket' | |
udp = UDPSocket.open() | |
sockaddr = Socket.pack_sockaddr_in(2425,"127.0.0.1") | |
udp.send("1:1:user:host:32:Hello",0,sockaddr) | |
udp.close |