This file contains hidden or 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
| echo "password"|openssl passwd -1 -stdin |
This file contains hidden or 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
| => Booting WEBrick | |
| => Rails 3.0.7 application starting in development on http://0.0.0.0:3000 | |
| => Call with -d to detach | |
| => Ctrl-C to shutdown server | |
| ActionView::Base included ViewHelpers | |
| ActionController::Base included ViewHelpers | |
| [2011-07-17 21:27:09] INFO WEBrick 1.3.1 | |
| [2011-07-17 21:27:09] INFO ruby 1.9.2 (2011-02-18) [x86_64-darwin10.7.0] | |
| [2011-07-17 21:27:09] INFO WEBrick::HTTPServer#start: pid=13393 port=3000 | |
| /Users/arthur/.rvm/gems/ruby-1.9.2-p180/gems/therubyracer-0.9.2/lib/v8/context.rb:17: [BUG] Segmentation fault |
This file contains hidden or 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 = included_scripts_source || "" | |
| source += " " + IO.read(isotope_file_path) | |
| context = ExecJS.compile(source) | |
| script = "Isotope(#{view_file_content.to_json}, #{options[:locals].to_json})" | |
| output = context.eval(script) |
This file contains hidden or 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
| awk -F' ' '{ print $1 " " $2 " "$3 " " $4 " " $(NF) }' mongod.log | grep 'ms' |
This file contains hidden or 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
| // from: | |
| // http://www.webtalkforums.com/showthread.php/37600-Simple-JavaScript-RegEx-to-Parse-Domain-Name | |
| var parts = /^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/.exec(item['url']) | |
| if (parts != null) { | |
| providerUrl = parts[1] + parts[6]; | |
| providerName = parts[6].replace("www.", ""); | |
| } else { | |
| // Graceful fail | |
| //console.debug("Failed URL parsing on: " + item['url']); |
This file contains hidden or 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
| var startTime = (new Date()).getTime(); | |
| var total = db.items.count({_sid: { $exists: false } }); | |
| diff = ((new Date()).getTime() - startTime) / 1000.0; | |
| print(diff + "s to count items without _sid"); | |
| print(total + " items need to be updated"); | |
| var done = 0; | |
| db.items.find({_sid: { $exists: false } }).forEach(function (item) { | |
| if (item.topic_ids != null && item.topic_ids.length > 0) { | |
| item._sid = item.topic_ids[0]; |
This file contains hidden or 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
| [alias] | |
| st = status | |
| hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
| co = checkout | |
| amend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend |
This file contains hidden or 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
| <html> | |
| <head> | |
| <meta name="format-detection" content="telephone=no" /> | |
| <style> | |
| h1 { | |
| font-size:14pt; | |
| } | |
| h2 { | |
| font-size:12pt; |
This file contains hidden or 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
| #initializers/i18n.rb | |
| I18n.module_eval do | |
| class << self | |
| def translate_with_puts(*args) | |
| Rails.logger.debug "#{args}" | |
| old_translate(*args) | |
| end | |
| alias :old_translate :translate | |
| alias :translate :translate_with_puts | |
| end |
This file contains hidden or 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
| curl -v -d code_url=http://mozilla.github.io/pdf.js/build/pdf.js -d compilation_level=SIMPLE_OPTIMIZATIONS -d output_info=errors -d output_format=text -d language=ECMASCRIPT5 http://closure-compiler.appspot.com/compile | |
| curl -v -d code_url=http://mozilla.github.io/pdf.js/build/pdf.js -d compilation_level=SIMPLE_OPTIMIZATIONS -d output_info=compiled_code -d output_format=text -d language=ECMASCRIPT5 http://closure-compiler.appspot.com/compile > pdf.min.js | |
| curl -v -d code_url=http://mozilla.github.io/pdf.js/build/pdf.worker.js -d compilation_level=SIMPLE_OPTIMIZATIONS -d output_info=compiled_code -d output_format=text -d language=ECMASCRIPT5 http://closure-compiler.appspot.com/compile > pdf.worker.min.js | |
| curl -v -d code_url=http://mozilla.github.io/pdf.js/web/viewer.js -d compilation_level=SIMPLE_OPTIMIZATIONS -d output_info=compiled_code -d output_format=text -d language=ECMASCRIPT5 http://closure-compiler.appspot.com/compile > viewer.min.js | |
| curl -v -d code_url=http://mozilla.github.io/pdf.js/web/l10n.js -d com |
OlderNewer