This is a general-purpose function to ask Yes/No questions in Bash, either with or without a default answer. It keeps repeating the question until it gets a valid answer.
View Lettuce Logs
This file has been truncated, but you can view the full file.
lettuce-epollEventLoop-101-2 | |
17:28:40 | |
Incident Start: 17:28:51 | |
Incident End: 17:29:04 | |
17:29:25 | |
2019-05-04 17:28:40.001 DEBUG [lettuce-epollEventLoop-101-2] i.l.c.p.CommandHandler: [channel=0x35b02b14, /172.17.0.3:51240 -> 10.29.174.127/10.29.174.127:6381, chid=0x99] write(ctx, SubscriptionCommand [type=PUBLISH, output=IntegerOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command], promise) [] | |
2019-05-04 17:28:40.001 DEBUG [lettuce-epollEventLoop-101-2] i.l.c.p.CommandEncoder: [channel=0x35b02b14, /172.17.0.3:51240 -> 10.29.174.127/10.29.174.127:6381] writing command SubscriptionCommand [type=PUBLISH, output=IntegerOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] [] |
View Homebrew install specific version
brew update | |
brew versions FORMULA | |
cd `brew --prefix` | |
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
brew install FORMULA | |
brew switch FORMULA VERSION | |
git checkout -- Library/Formula/FORMULA.rb # reset formula | |
## Example: Using Subversion 1.6.17 | |
# |
View fabfile.py
from fabric.api import env, local, require | |
def deploy(): | |
"""fab [environment] deploy""" | |
require('environment') | |
maintenance_on() | |
push() | |
syncdb() | |
migrate() |
View Preferences.sublime-settings.json
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Color Scheme - Default/Slush & Poppies.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 10, | |
"highlight_modified_tabs": true, | |
"open_files_in_new_window": false, | |
"save_on_focus_lost": true, | |
"tab_size": 4, | |
"theme": "Soda Light.sublime-theme", |