start new:
tmux
start new with session name:
tmux new -s myname
| @scanner = RubyLex.new | |
| @scanner.exception_on_syntax_error = false | |
| a = @scanner.set_prompt do; puts 1; end | |
| => #<Proc:0x007f845529df70@(pry):37> | |
| a.call | |
| 1 | |
| => nil |
| ,-.--, _,.---._ .-._ .=-.-. ,---. _ __ _,.---._ ,---. | |
| .--.-. /=/, .' .-.,.---. ,-.' , - `. /==/ \ .-._ /==/_ /.--.' \ .-`.' ,`. ,-.' , - `. _.-. _.-. .--.' \ | |
| \==\ -\/=/- / /==/ ` \ /==/_, , - \ |==|, \/ /, /|==|, | \==\-/\ \ /==/, - \ /==/_, , - \ .-,.'| .-,.'| \==\-/\ \ | |
| \==\ `-' ,/ |==|-, .=., ||==| .=. ||==|- \| | |==| | /==/-|_\ | |==| _ .=. ||==| .=. ||==|, | |==|, | /==/-|_\ | | |
| |==|, - | |==| '=' /|==|_ : ;=: - ||==| , | -| |==|- | \==\, - \ |==| , '=',||==|_ : ;=: - ||==|- | |==|- | \==\, - \ | |
| /==/ , \ |==|- , .' |==| , '=' ||==| - _ | |==| ,| /==/ - ,| |==|- '..' |==| , '=' ||==|, | |==|, | /==/ - ,| | |
| /==/, .--, |
| ### INSTALLATION NOTES ### | |
| # 1. Install Homebrew (https://github.com/mxcl/homebrew) | |
| # 2. brew install zsh | |
| # 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh) | |
| # 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace | |
| # 5. Install iTerm2 | |
| # 6. In iTerm2 preferences for your profile set: | |
| # Character Encoding: Unicode (UTF-8) | |
| # Report Terminal Type: xterm-256color | |
| # 7. Put itunesartist and itunestrack into PATH |
| 👍 |
| class Greek | |
| APPROXIMATIONS = { | |
| "a" => "α", | |
| "b" => "μπ", | |
| "c" => "σι", | |
| "d" => "ντ", | |
| "e" => "ε", | |
| "f" => "εφ", | |
| "g" => "τζι", | |
| "h" => "ειτσ", |
| class Greek | |
| APPROXIMATIONS = { | |
| "A" => "Α", | |
| "a" => "α", | |
| "V" => "Β", | |
| "v" => "β", | |
| "G" => "Γ", | |
| "g" => "γ", | |
| "D" => "Δ", | |
| "d" => "δ", |
| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
| { | |
| "vars": { | |
| "@gray-base": "#000", | |
| "@gray-darker": "lighten(@gray-base, 13.5%)", | |
| "@gray-dark": "lighten(@gray-base, 20%)", | |
| "@gray": "lighten(@gray-base, 33.5%)", | |
| "@gray-light": "lighten(@gray-base, 46.7%)", | |
| "@gray-lighter": "lighten(@gray-base, 93.5%)", | |
| "@brand-primary": "darken(#428bca, 6.5%)", | |
| "@brand-success": "#5cb85c", |
| test config | |
| $ nginx -t | |
| nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok | |
| nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful | |
| It is also possible to enable the debugging for a particular IP address: | |
| events { | |
| debug_connection 127.0.0.1; |