Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |
| package proxy | |
| import ( | |
| "io" | |
| "net" | |
| "sync" | |
| log "github.com/Sirupsen/logrus" | |
| ) |
| // http://cocoawithlove.com/2009/10/ugly-side-of-blocks-explicit.html has a nice breakdown of the syntax--it helps to think of the ^ as similar to a pointer dereference symbol * | |
| // block typedef: | |
| typedef void(^Block)(); | |
| typedef void(^ConditionalBlock)(BOOL); | |
| typedef NSString*(^BlockThatReturnsString)(); | |
| typedef NSString*(^ConditionalBlockThatReturnsString)(BOOL); | |
| // block property with typedef: |
| module Memstat | |
| extend self | |
| def puts | |
| "memory=#{real_mem_size} ruby_objects=#{num_objects}" | |
| end | |
| def real_mem_size | |
| mb = `ps -o rsz #{$$}`.split("\n")[1].to_f / 1024.0 | |
| mb = mb.round(-2) # nearest 100 (i.e. 60.round(-2) == 100) |
| # silly but useful. | |
| # -> compresses nested hashes into dot separated key value pairs | |
| class Hash | |
| def nested_flatten(prefix = 'h') | |
| arr = [] | |
| each do |key, value| | |
| k = prefix + ".#{key}" |
| build: | |
| @echo "Combining files ..." | |
| @cat \ | |
| js/dep/jquery.easing.js \ | |
| js/dep/jquery.jsonp.js \ | |
| js/dep/json2.js \ | |
| js/dep/toolbox.expose.js \ | |
| js/lib/jquery.transloadit2.js > build/jquery.transloadit2.js | |
| @echo "Compiling with Closure REST API ..." | |
| @curl \ |
| # config/enviroment.rb | |
| config.gem 'mongo' | |
| config.gem 'mongo_mapper' | |
| # remove AR | |
| config.frameworks -= [ :active_record, :active_resource ] |