Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
# config/enviroment.rb | |
config.gem 'mongo' | |
config.gem 'mongo_mapper' | |
# remove AR | |
config.frameworks -= [ :active_record, :active_resource ] |
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 \ |
# 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}" |
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) |
// 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: |
package proxy | |
import ( | |
"io" | |
"net" | |
"sync" | |
log "github.com/Sirupsen/logrus" | |
) |
### | |
### | |
### 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 |